Commit b4c566fb authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 9262eb92
......@@ -23,14 +23,14 @@
</view>
</view>
<image style="width: 686rpx; margin-top: 20rpx; height: 370rpx"
<image style="width: 686rpx; margin-top: 30rpx; height: 370rpx"
src="https://mints-web.oss-cn-beijing.aliyuncs.com/images/bg_invite3.png" mode="scaleToFill">
</image>
<image style="
width: 686rpx;
margin-top: 20rpx;
margin-top: 30rpx;
height: 332rpx;
margin-bottom: 180rpx;
margin-bottom: 20rpx;
" src="https://mints-web.oss-cn-beijing.aliyuncs.com/images/bg_invite4.png" mode="scaleToFill"></image>
</view>
......@@ -45,17 +45,17 @@
align-items: center;flex-direction: column;">
<view @click="handleShare" class="bottomclass">
<view class="bottomtext">
<text style="
<button open-type="share" style="
display: flex;
color: #9d3c13;
font-size: 26rpx;
font-size: 26rpx;
background-color: #fdbd3d;
height: 80rpx;
padding-bottom: 20rpx;
justify-content: center;
align-items: center;
">
邀请好友
</text>
</button>
</view>
......@@ -75,7 +75,12 @@
mixins: [common],
data() {
return {
inviteData: {}
inviteData: {},
share: {
title: '更多好剧,等你来看',
imageUrl: 'https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_movie.png',
path: '/pages/loading?shareId='
}
};
},
methods: {
......@@ -90,6 +95,13 @@
}
});
},
onShareAppMessage(res) { //发送给朋友
return {
title: this.share.title,
imageUrl: this.share.imageUrl,
path: this.share.path,
}
},
handleRule(){
uni.showModal({
title: '邀请好友规则',
......@@ -172,7 +184,7 @@
align-items: center;
justify-content: center;
width: 100%;
margin-top: 20rpx;
margin-top: 30rpx;
height: 830rpx;
display: flex;
flex-direction: column;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment