调整分享,创建资料等bug
This commit is contained in:
@@ -13,12 +13,12 @@
|
||||
<l-painter class="qrcode-src">
|
||||
<l-painter-qrcode
|
||||
:text="'http://web.douhuofalv.com/login/register?invite_code=' + invite"
|
||||
css="width: 260rpx; height: 260rpx; background-color:white; padding: 20rpx; border-radius: 10rpx;"
|
||||
css="width: 130px; height: 130px; background-color:white; padding: 10px; border-radius: 10rpx;"
|
||||
/>
|
||||
</l-painter>
|
||||
<view class="qrcode-text">邀请码{{invite}}</view>
|
||||
<view class="qrcode-text" @click="copyInvite">邀请码{{invite}}</view>
|
||||
</view>
|
||||
<image class="btn" src="@/static/code/code_btn.png" mode="widthFix"></image>
|
||||
<image class="btn" src="@/static/code/code_btn.png" mode="widthFix" @click="onWx"></image>
|
||||
</view>
|
||||
<image class="footer" src="@/static/code/code_footer.png" mode="widthFix"></image>
|
||||
</view>
|
||||
@@ -43,6 +43,36 @@
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
copyInvite(){
|
||||
uni.setClipboardData({
|
||||
data: this.invite,
|
||||
success() {
|
||||
uni.showToast({
|
||||
title: '邀请码已复制',
|
||||
icon : 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
onWx(){
|
||||
uni.share({
|
||||
title : "抖火法律",
|
||||
provider: "weixin",
|
||||
scene : "WXSceneSession",
|
||||
imageUrl: require('@/static/logo.png'),
|
||||
href : "http://web.douhuofalv.com/login/register?invite_code=" + this.invite,
|
||||
type : 0,
|
||||
summary: "法律问题我们'抖'懂",
|
||||
fail: err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -102,23 +132,24 @@
|
||||
|
||||
.block {
|
||||
text-align: center;
|
||||
margin-bottom: 30rpx;
|
||||
|
||||
margin-bottom: 30rpx;
|
||||
width: 100%;
|
||||
.qrcode {
|
||||
display: inline-block;
|
||||
border: solid 2rpx #ECC997;
|
||||
background: #0E2660;
|
||||
border-radius: 20rpx;
|
||||
padding: 30rpx;
|
||||
.qrcode-src {
|
||||
width: 300rpx;
|
||||
height: 300rpx;
|
||||
}
|
||||
.qrcode-src{
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
}
|
||||
.qrcode-text {
|
||||
text-align: center;
|
||||
color: #FFF5C6;
|
||||
line-height: 50rpx;
|
||||
padding-top: 30rpx;
|
||||
padding-top: 30rpx;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
}
|
||||
.btn {
|
||||
|
||||
Reference in New Issue
Block a user