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 | 24 ++++++++++++++++--------
1 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/h5/pages/notice/notice.vue b/h5/pages/notice/notice.vue
index b114ef8..4e60ae9 100644
--- a/h5/pages/notice/notice.vue
+++ b/h5/pages/notice/notice.vue
@@ -9,26 +9,33 @@
</div>
<div class="empty"></div>
</scroll-view>
- <div class="button" @click="toapply">纭浜嗚В</div>
+ <div class="button" @click="toapply">宸茬煡鏅擄紝涓嬩竴姝�({{ num }}绉�)</div>
</div>
</template>
<script>
+let timer
import { getSystemDictData } from "@/api"
export default {
name: 'Index',
data() {
return {
content: ``,
- answer: ''
+ answer: '',
+ num: 5
}
},
onLoad() {
this.getInfo()
- if(!this.$store.state.openId){
+ if (!this.$store.state.openId) {
this.initToken()
}
-
+ timer = setInterval(() => {
+ this.num--
+ if (this.num === 0) {
+ this.toapply()
+ }
+ }, 1000)
},
methods: {
initToken() {
@@ -40,7 +47,7 @@
window.location.href = authURL
},
getInfo() {
- // 鍏ュ満椤荤煡璇︽儏
+ // 鍏ュ洯椤荤煡璇︽儏
getSystemDictData({
dictCode: 'SYSTEM',
label: 'VISIT_NOTICE'
@@ -60,6 +67,7 @@
})
},
toapply() {
+ clearInterval(timer)
if (this.answer === '0') {
uni.navigateTo({
url: '/pages/userinfo/userinfo'
@@ -91,7 +99,7 @@
height: calc(100% - 170rpx);
.title {
color: #333333;
- font-weight: 500;
+ font-weight: 600;
margin-bottom: 16rpx;
}
.text {
@@ -110,8 +118,8 @@
border-radius: 44rpx;
font-size: 32rpx;
color: #ffffff;
- position: absolute;
- bottom: 42rpx;
+ position: fixed;
+ bottom: 30rpx;
left: 30rpx;
}
}
--
Gitblit v1.9.3