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