提醒发送倒计时bug
This commit is contained in:
@@ -66,7 +66,6 @@
|
||||
:colConfigs="tabIndex==0? colConfigs0 : colConfigs1"
|
||||
v-if="tableData.length">
|
||||
<u-td slot="groupOwnerId" slot-scope="{row}">
|
||||
<!-- <p>{{row.groupOwnerId}}</p> -->
|
||||
<AiOpenData v-if="row.groupOwnerId" type="userName" :openid="row.groupOwnerId"/>
|
||||
</u-td>
|
||||
</AiTable>
|
||||
@@ -120,6 +119,7 @@ export default {
|
||||
onLoad(o) {
|
||||
this.id = o.id;
|
||||
this.createTime = o.time;
|
||||
this.firstClickTime = uni.getStorageSync('firstClick')
|
||||
},
|
||||
methods: {
|
||||
tabClick(index) {
|
||||
@@ -140,7 +140,8 @@ export default {
|
||||
},
|
||||
// 提醒发送
|
||||
remindSend() {
|
||||
this.firstClickTime = this.firstClickTime || +new Date();
|
||||
this.firstClickTime = this.firstClickTime || +new Date()
|
||||
uni.setStorageSync('firstClick',this.firstClickTime)
|
||||
this.currentClickTime = +new Date();
|
||||
let time = this.currentClickTime - this.firstClickTime;
|
||||
if (time >= 60 * 60 * 1000 && this.flag) {
|
||||
@@ -159,7 +160,6 @@ 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