h5/pages/polling/detail.vue
@@ -78,9 +78,9 @@ this.id = option.id this.getDetail() }, onShow() { this.getDetail() }, // onShow() { // this.getDetail() // }, methods: { itemClick(item) { if(!this.flag) return @@ -94,7 +94,8 @@ } = this ywPatrolDetail(id).then(res => { this.info = res.data let time = new Date(res.data.startDate.slice(0, 10) + ' 00:00:00').getTime() let time = new Date(res.data.startDate).getTime() console.log('res.data.startDate', new Date().getTime()); this.flag = new Date().getTime() > time }) ywPatrolTaskRecord({