From d3bb4d4f0bd347a4b1d4c64ecb071f9a11b19942 Mon Sep 17 00:00:00 2001
From: shijingjing <1789544664@qq.com>
Date: Thu, 9 Feb 2023 16:19:13 +0800
Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=A1=E6=AC=A1=E6=95=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/project/tongren/AppSignIn/AppSignIn.vue | 27 ++++++++++++---------
1 file changed, 16 insertions(+), 11 deletions(-)
diff --git a/src/project/tongren/AppSignIn/AppSignIn.vue b/src/project/tongren/AppSignIn/AppSignIn.vue
index b7afdb2e..d4c8e001 100644
--- a/src/project/tongren/AppSignIn/AppSignIn.vue
+++ b/src/project/tongren/AppSignIn/AppSignIn.vue
@@ -19,13 +19,14 @@
-
-
{{ status==1? '已打卡':'打卡'}}
+
@@ -41,9 +42,9 @@ export default {
return {
time: '',
today: '',
- status: 0, // 打卡状态:0、未打卡;1、已打卡
signlist: [],
current: 1,
+ flag: false,
}
},
computed: {
@@ -73,16 +74,16 @@ 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.$u.toast(`打卡成功`)
this.getToday()
this.getList()
}
- }).catch(err=> console.log(err))
+ }).catch(err=> this.$u.toast(err))
}
},
onShow() {
@@ -183,6 +184,14 @@ export default {
margin-top: 8px;
}
}
+
+ .count {
+ margin-left: auto;
+ align-self: center;
+ color: #4783FF;
+ font-weight: 600;
+ font-size: 36px;
+ }
}
}
@@ -223,10 +232,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