From ebc96a1cf0424c04dceacbc42f9ad2a897223be9 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 25 六月 2024 14:42:04 +0800
Subject: [PATCH] css
---
h5/pages/notice/notice.vue | 25 +++++++++----------------
1 files changed, 9 insertions(+), 16 deletions(-)
diff --git a/h5/pages/notice/notice.vue b/h5/pages/notice/notice.vue
index f12ec94..4e60ae9 100644
--- a/h5/pages/notice/notice.vue
+++ b/h5/pages/notice/notice.vue
@@ -9,10 +9,7 @@
</div>
<div class="empty"></div>
</scroll-view>
- <div class="button" @click="handleAgree" v-if="num === 6">纭浜嗚В</div>
- <div class="button" @click="toapply" v-else>
- 宸茬煡鏅擄紝涓嬩竴姝�({{ num }}绉�)
- </div>
+ <div class="button" @click="toapply">宸茬煡鏅擄紝涓嬩竴姝�({{ num }}绉�)</div>
</div>
</template>
@@ -25,7 +22,7 @@
return {
content: ``,
answer: '',
- num: 6
+ num: 5
}
},
onLoad() {
@@ -33,18 +30,14 @@
if (!this.$store.state.openId) {
this.initToken()
}
-
+ timer = setInterval(() => {
+ this.num--
+ if (this.num === 0) {
+ this.toapply()
+ }
+ }, 1000)
},
methods: {
- handleAgree() {
- this.num--
- timer = setInterval(() => {
- this.num--
- if (this.num === 0) {
- this.toapply()
- }
- }, 1000)
- },
initToken() {
const appID = 'wxac2a80c2144c4ee0'
// const AppSecret = '922c93596d134fedf5bd22a9354b3bfe'
@@ -106,7 +99,7 @@
height: calc(100% - 170rpx);
.title {
color: #333333;
- font-weight: 500;
+ font-weight: 600;
margin-bottom: 16rpx;
}
.text {
--
Gitblit v1.9.3