From c3aaf28f7316cce12eec007a9f85a96cbcddeec2 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 07 五月 2025 10:34:20 +0800
Subject: [PATCH] 最新版本541200007
---
h5/pages/notice/notice.vue | 39 ++++++++++++++++++++-------------------
1 files changed, 20 insertions(+), 19 deletions(-)
diff --git a/h5/pages/notice/notice.vue b/h5/pages/notice/notice.vue
index 4ad99a7..fcbd3ee 100644
--- a/h5/pages/notice/notice.vue
+++ b/h5/pages/notice/notice.vue
@@ -1,15 +1,12 @@
<template>
<view class="container">
- <!-- <video
- src="https://vdept3.bdstatic.com/mda-nj7gwfue9kdnbtsh/sc/cae_h264/1665488517815949255/mda-nj7gwfue9kdnbtsh.mp4?v_from_s=hkapp-haokan-hbe&auth_key=1715141591-0-0-6dfdf4d4c3d94b60b9adeb53368a72f3&bcevod_channel=searchbox_feed&pd=1&cr=2&cd=0&pt=3&logid=0791905773&vid=13790089500387859718&klogid=0791905773&abtest="
- ></video> -->
<scroll-view scroll-y class="content">
<view>
<view v-html="content"></view>
</view>
<view class="empty"></view>
</scroll-view>
- <view class="button" :class="{disable: num > 0}" @click="toapply">
+ <view class="button" :class="{ disable: num > 0 }" @click="toapply">
宸茬煡鏅擄紝涓嬩竴姝�
<text v-if="num > 0">({{ num }}绉�)</text>
</view>
@@ -31,14 +28,8 @@
onLoad() {
this.getInfo()
if (!this.$store.state.openId) {
- this.initToken()
+ // this.initToken()
}
- timer = setInterval(() => {
- this.num--
- if (this.num === 0) {
- clearInterval(timer)
- }
- }, 1000)
},
methods: {
initToken() {
@@ -59,6 +50,21 @@
this.content = res.data.code
}
})
+ // 鍊掕鏃舵椂闂�
+ getSystemDictData({
+ dictCode: 'SYSTEM',
+ label: 'NOTICE_CUTNTDOWN'
+ }).then(res => {
+ if (res.code === 200) {
+ this.num = res.data.code
+ timer = setInterval(() => {
+ this.num--
+ if (this.num === 0) {
+ clearInterval(timer)
+ }
+ }, 1000)
+ }
+ })
// 鏄惁闇�瑕佺瓟棰�
getSystemDictData({
dictCode: 'SYSTEM',
@@ -70,7 +76,7 @@
})
},
toapply() {
- if(this.num > 0) return
+ if (this.num > 0) return
if (this.answer === '0') {
uni.navigateTo({
url: '/pages/userinfo/userinfo'
@@ -93,13 +99,8 @@
box-sizing: border-box;
display: flex;
flex-direction: column;
- video {
- width: 690rpx;
- height: 388rpx;
- margin-bottom: 10rpx;
- }
.content {
- height: calc(100% - 170rpx);
+ height: calc(100% - 130rpx);
.title {
color: #333333;
font-weight: 600;
@@ -125,7 +126,7 @@
bottom: 30rpx;
left: 30rpx;
}
- .disable{
+ .disable {
background-color: #cccccc;
}
}
--
Gitblit v1.9.3