提示
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<div class="sign_btn">
|
<div class="sign_btn">
|
||||||
<div class="btn" @click="signIn" :class="status==0? '': 'active'">
|
<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>{{ time }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -56,16 +56,16 @@ export default {
|
|||||||
},
|
},
|
||||||
// 签到
|
// 签到
|
||||||
signIn() {
|
signIn() {
|
||||||
if(this.status == 1) return
|
if(this.status == 1) {
|
||||||
|
return this.$u.toast("已签到,请勿重复签到!")
|
||||||
|
}
|
||||||
this.$http.post(`/api/appwechatsigninfo/sign`).then(res=> {
|
this.$http.post(`/api/appwechatsigninfo/sign`).then(res=> {
|
||||||
if(res.code == 0) {
|
if(res.code == 0) {
|
||||||
this.$confirm('签到成功!').then(() => {
|
this.$u.toast(`签到成功`)
|
||||||
this.getToday()
|
this.getToday()
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}).finally(err=> console.log(err))
|
}).catch(err=> console.log(err))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
|
|||||||
Reference in New Issue
Block a user