From cb59e824634b5689f71b9c43ba84f4da605adb88 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Fri, 10 Feb 2023 18:12:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=94=E8=A5=BF=E5=8D=97=E6=89=93=E5=8D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/qianxinan/AppSignIn/AppSignIn.vue | 39 ++++++++++++------- 1 file changed, 24 insertions(+), 15 deletions(-) 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