提醒成员发送

This commit is contained in:
shijingjing
2022-07-29 10:34:02 +08:00
parent 51fd8d4594
commit e667ed6628

View File

@@ -59,8 +59,7 @@
</div>
</div>
</div>
<!-- v-if="detail.status == 4" -->
<div class="btn" @click="remindSend">提醒成员发送</div>
<div v-if="detail.status == 4" class="btn" @click="remindSend">提醒成员发送</div>
</div>
</div>
@@ -216,13 +215,9 @@ export default {
// 提醒发送
remindSend() {
this.firstClickTime = new Date(this.detail.remindTime).getTime() || "";
console.log(this.firstClickTime);
this.currentClickTime = +new Date();
console.log(this.currentClickTime);
let time = this.currentClickTime - this.firstClickTime;
console.log(time);
if (time >= 60 * 60 * 1000 || this.flag) {
if (time >= 60 * 60 * 1000 && this.flag) {
this.$http
.post("/app/appmasssendingtask/remindSend", null, {
params: {
@@ -233,11 +228,11 @@ export default {
if (res?.code == 0) {
this.$u.toast("已提醒成员发送");
this.flag = false;
this.getDetail()
}
})
.catch(() => {});
} else {
console.log(111);
time = 60 * 60 * 1000 - time;
const min = Math.floor(time / 1000 / 60); // 分钟
let second = Math.floor(time / 1000); // 秒