diff --git a/src/project/qianxinan/AppSignIn/AppSignIn.vue b/src/project/qianxinan/AppSignIn/AppSignIn.vue
index c148ee67..b7afdb2e 100644
--- a/src/project/qianxinan/AppSignIn/AppSignIn.vue
+++ b/src/project/qianxinan/AppSignIn/AppSignIn.vue
@@ -7,7 +7,7 @@
-
-
打卡
+
+
{{ status==1? '已打卡':'打卡'}}
{{ time }}
@@ -42,6 +41,7 @@ export default {
return {
time: '',
today: '',
+ status: 0, // 打卡状态:0、未打卡;1、已打卡
signlist: [],
current: 1,
}
@@ -73,22 +73,16 @@ export default {
},
// 打卡
signIn() {
- if(this.flag) return
- this.flag = true
+ if(this.status == 1) {
+ return this.$u.toast("已打卡,请勿重复打卡!")
+ }
this.$http.post(`/api/appwechatsigninfo/sign`).then(res=> {
if(res.code == 0) {
- this.flag = false
this.$u.toast(`打卡成功`)
this.getToday()
this.getList()
- } else {
- this.flag = false
- this.$u.toast(res.msg)
}
- }).catch(err=> {
- this.flag = false
- this.$u.toast(err)
- })
+ }).catch(err=> console.log(err))
}
},
onShow() {
@@ -106,7 +100,7 @@ export default {
\ No newline at end of file