提醒成员发送
This commit is contained in:
@@ -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); // 秒
|
||||
|
||||
Reference in New Issue
Block a user