This commit is contained in:
shijingjing
2023-02-03 10:45:38 +08:00
parent ac0e4c044e
commit e8a8d12db3

View File

@@ -14,7 +14,7 @@
<div class="sign_btn">
<div class="btn" @click="signIn" :class="status==0? '': 'active'">
<div><span v-if="status==1"></span>签到</div>
<div>{{ status==1? '已签到':'签到'}}</div>
<div>{{ time }}</div>
</div>
</div>
@@ -56,16 +56,16 @@ export default {
},
// 签到
signIn() {
if(this.status == 1) return
if(this.status == 1) {
return this.$u.toast("已签到,请勿重复签到!")
}
this.$http.post(`/api/appwechatsigninfo/sign`).then(res=> {
if(res.code == 0) {
this.$confirm('签到成功!').then(() => {
this.getToday()
this.getList()
})
this.$u.toast(`签到成功`)
this.getToday()
this.getList()
}
}).finally(err=> console.log(err))
}).catch(err=> console.log(err))
}
},
onReachBottom() {