30620
This commit is contained in:
@@ -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); // 秒
|
||||
|
||||
Reference in New Issue
Block a user