This commit is contained in:
shijingjing
2022-07-27 15:39:14 +08:00
parent 5b4cb43e0b
commit bf51401224
3 changed files with 14 additions and 14 deletions

View File

@@ -51,7 +51,8 @@
</div>
</div>
</div>
<div v-if="detail.status == 4" class="btn" @click="remindSend">提醒成员发送</div>
<!-- v-if="detail.status == 4" -->
<div class="btn" @click="remindSend">提醒成员发送</div>
</div>
</div>
@@ -119,7 +120,6 @@ export default {
onLoad(o) {
this.id = o.id;
this.createTime = o.time;
this.firstClickTime = uni.getStorageSync('firstClick')
},
methods: {
tabClick(index) {
@@ -140,11 +140,10 @@ export default {
},
// 提醒发送
remindSend() {
this.firstClickTime = this.firstClickTime || +new Date()
uni.setStorageSync('firstClick',this.firstClickTime)
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 >= 60 * 60 * 1000 || this.flag) {
this.$http
.post("/app/appmasssendingtask/remindSend", null, {
params: {
@@ -160,6 +159,7 @@ 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); // 秒