diff --git a/src/project/qianxinan/AppSignIn/AppSignIn.vue b/src/project/qianxinan/AppSignIn/AppSignIn.vue index b7afdb2e..1befe80b 100644 --- a/src/project/qianxinan/AppSignIn/AppSignIn.vue +++ b/src/project/qianxinan/AppSignIn/AppSignIn.vue @@ -7,7 +7,7 @@
{{ user.name }}
-
{{ today }}
+
每天需要完成2次打卡,中间间隔6小时以上,才算完成打卡任务。
打卡记录
@@ -19,13 +19,14 @@
{{ item.createDate }}
打卡成功
+
打卡{{ item.times}}次
-
-
{{ status==1? '已打卡':'打卡'}}
+
+
打卡
{{ time }}
@@ -41,7 +42,6 @@ export default { return { time: '', today: '', - status: 0, // 打卡状态:0、未打卡;1、已打卡 signlist: [], current: 1, } @@ -73,16 +73,22 @@ export default { }, // 打卡 signIn() { - if(this.status == 1) { - return this.$u.toast("已打卡,请勿重复打卡!") - } + if(this.flag) return + this.flag = true 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=> console.log(err)) + }).catch(err=> { + this.flag = false + this.$u.toast(err) + }) } }, onShow() { @@ -115,11 +121,10 @@ export default { box-sizing: border-box; .avatar_img { width: 96px; - height: 96px; img { - width: 100%; - height: 100%; + width: 96px; + height: 96px; border-radius: 50%; } } @@ -183,6 +188,14 @@ export default { margin-top: 8px; } } + + .count { + margin-left: auto; + align-self: center; + color: #4783FF; + font-weight: 600; + font-size: 36px; + } } } @@ -223,10 +236,6 @@ export default { font-size: 28px; } } - - .active { - background-image: linear-gradient(180deg, #bcff75 0%, hsl(132, 87%, 30%) 100%); - } } } \ No newline at end of file