调整签到按钮无法点击的bug

This commit is contained in:
唐明明
2021-09-29 18:13:17 +08:00
parent 292ec179cb
commit 34a0e6e499
19 changed files with 23 additions and 29 deletions

View File

@@ -39,7 +39,7 @@
</view>
<view class="signBtn">
<block v-if="sign.signCan">
<view class="signBtn-go" @tap="signClick" style="cursor:pointer" >
<view class="signBtn-go" @click="signClick" style="cursor:pointer" >
签到领取能量碎片
</view>
</block>
@@ -138,21 +138,17 @@
// 签到
signClick() {
uni.vibrateShort({
success: () => {
operateSign().then(res => {
this.sign.signSuccess = res.task_crystals
// 获取水晶签到信息
this.sign.signShow = true
this.signInfo();
}).catch(err => {
uni.showToast({
icon: 'none',
title: err
})
})
}
})
operateSign().then(res => {
this.sign.signSuccess = res.task_crystals
// 获取水晶签到信息
this.sign.signShow = true
this.signInfo();
}).catch(err => {
uni.showToast({
icon: 'none',
title: err
})
})
},
// 能量跳转
@@ -322,9 +318,7 @@
box-sizing: border-box;
width: 100%;
text-align: center;
margin-top: -50rpx;
position: relative;
z-index: 2;
margin-top: -50rpx;
.signBtn-go {
width: 100%;
height: 100rpx;