h5/pages/notice/notice.vue
@@ -33,12 +33,6 @@ if (!this.$store.state.openId) { this.initToken() } timer = setInterval(() => { this.num-- if (this.num === 0) { clearInterval(timer) } }, 1000) }, methods: { initToken() { @@ -59,6 +53,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',