This commit is contained in:
shijingjing
2022-07-27 10:39:08 +08:00
parent 7f72e28f81
commit cdaaa0c5d1

View File

@@ -143,7 +143,7 @@ export default {
this.firstClickTime = this.firstClickTime || +new Date();
this.currentClickTime = +new Date();
let time = this.currentClickTime - this.firstClickTime;
if (time >= 60 * 60 * 1000 || this.flag) {
if (time >= 60 * 60 * 1000 && this.flag) {
this.$http
.post("/app/appmasssendingtask/remindSend", null, {
params: {
@@ -159,9 +159,10 @@ export default {
.catch(() => {
});
} else {
console.log(111);
time = 60 * 60 * 1000 - time;
const min = Math.floor(time / 1000 / 60); // 分钟
const second = Math.floor(time / 1000);
let second = Math.floor(time / 1000); // 秒
second %= 60;
let msg = ``;
if (min > 0 && second > 0) {