From a8a9803caf1ea31b6ee939351662c66957c55073 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Wed, 27 Jul 2022 14:09:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E9=86=92=E5=8F=91=E9=80=81=E5=80=92?= =?UTF-8?q?=E8=AE=A1=E6=97=B6bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../saas/AppCooperationPropaganda/cooperationDetail.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/project/saas/AppCooperationPropaganda/cooperationDetail.vue b/src/project/saas/AppCooperationPropaganda/cooperationDetail.vue index 61ff4002..42acb857 100644 --- a/src/project/saas/AppCooperationPropaganda/cooperationDetail.vue +++ b/src/project/saas/AppCooperationPropaganda/cooperationDetail.vue @@ -66,7 +66,6 @@ :colConfigs="tabIndex==0? colConfigs0 : colConfigs1" v-if="tableData.length"> - @@ -120,6 +119,7 @@ export default { onLoad(o) { this.id = o.id; this.createTime = o.time; + this.firstClickTime = uni.getStorageSync('firstClick') }, methods: { tabClick(index) { @@ -140,7 +140,8 @@ export default { }, // 提醒发送 remindSend() { - this.firstClickTime = this.firstClickTime || +new Date(); + this.firstClickTime = this.firstClickTime || +new Date() + uni.setStorageSync('firstClick',this.firstClickTime) this.currentClickTime = +new Date(); let time = this.currentClickTime - this.firstClickTime; if (time >= 60 * 60 * 1000 && this.flag) { @@ -159,7 +160,6 @@ export default { .catch(() => { }); } else { - console.log(111); time = 60 * 60 * 1000 - time; const min = Math.floor(time / 1000 / 60); // 分钟 let second = Math.floor(time / 1000); // 秒