提示
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user