From a2b19a5f5e21bb25d27c1b948adf2c1d6e386ba8 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Tue, 2 Aug 2022 09:46:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E7=AE=97=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../saas/AppCooperationPropaganda/cooperationDetail.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/project/saas/AppCooperationPropaganda/cooperationDetail.vue b/src/project/saas/AppCooperationPropaganda/cooperationDetail.vue index 384d8873..564aeb81 100644 --- a/src/project/saas/AppCooperationPropaganda/cooperationDetail.vue +++ b/src/project/saas/AppCooperationPropaganda/cooperationDetail.vue @@ -218,9 +218,8 @@ export default { this.firstClickTime = new Date(this.detail.remindTime).getTime() || ""; this.currentClickTime = +new Date(); let time = this.currentClickTime - this.firstClickTime; - if (time >= 60 * 60 * 1000 && this.flag) { + if (time >= 3600000 && this.flag) { console.log(time, 'time'); - console.log(60 * 60 * 1000, '60 * 60 * 1000'); console.log(this.flag, 'flag'); this.$http.post("/app/appmasssendingtask/remindSend", null, { params: { @@ -236,8 +235,8 @@ export default { }) .catch(() => {}); } else { - time = 60 * 60 * 1000 - time; - const min = Math.floor(time / 1000 / 60); // 分钟 + time = 3600000 - time; + const min = Math.floor(time / 60000); // 分钟 let second = Math.floor(time / 1000); // 秒 second %= 60; let msg = ``;