修改
This commit is contained in:
parent
765ea63f51
commit
312d372bae
@ -179,12 +179,6 @@
|
||||
that.patientId = value
|
||||
that.openid = value2
|
||||
}
|
||||
this.getlist()
|
||||
if (this.timecount > 0) {
|
||||
this.Timers = setInterval(() => {
|
||||
this.timecount--;
|
||||
}, 1000)
|
||||
}
|
||||
},
|
||||
watch: { //监听
|
||||
timecount() {
|
||||
@ -345,7 +339,13 @@
|
||||
var time = new Date(ordertimes).getTime() / 1000 + (60 * 60 * 2)
|
||||
var times = new Date().getTime() / 1000
|
||||
this.timestamp = time - times
|
||||
this.timecount = this.timestamp
|
||||
this.timecount = 10
|
||||
if (this.timestamp > 0) {
|
||||
this.timecount = this.timestamp
|
||||
this.Timers = setInterval(() => {
|
||||
this.timecount--;
|
||||
}, 1000)
|
||||
}
|
||||
})
|
||||
},
|
||||
cancelorderment() {
|
||||
|
||||
@ -94,7 +94,7 @@
|
||||
list: null,
|
||||
orderNo: '',
|
||||
timestamp: 0,
|
||||
timecount: undefined,
|
||||
timecount: null,
|
||||
Timers: null,
|
||||
}
|
||||
},
|
||||
@ -103,8 +103,8 @@
|
||||
},
|
||||
onLoad(options) {
|
||||
var that = this
|
||||
this.baseurl = baseurl
|
||||
this.orderNo = JSON.parse(options.list).orderNo
|
||||
this.baseurl = baseurl
|
||||
const value = uni.getStorageSync('patientId');
|
||||
if (value) {
|
||||
that.patientId = value
|
||||
@ -113,12 +113,6 @@
|
||||
if (value2) {
|
||||
that.openid = value2
|
||||
}
|
||||
this.getlist()
|
||||
if (this.timecount > 0) {
|
||||
this.Timers = setInterval(() => {
|
||||
this.timecount--;
|
||||
}, 1000)
|
||||
}
|
||||
},
|
||||
onUnload() {
|
||||
clearInterval(this.Timers); //清除该函数
|
||||
@ -212,7 +206,13 @@
|
||||
var time = new Date(ordertimes).getTime() / 1000 + (60 * 60 * 2)
|
||||
var times = new Date().getTime() / 1000
|
||||
this.timestamp = time - times
|
||||
this.timecount = this.timestamp
|
||||
this.timecount = 10
|
||||
if (this.timestamp > 0) {
|
||||
this.timecount = this.timestamp
|
||||
this.Timers = setInterval(() => {
|
||||
this.timecount--;
|
||||
}, 1000)
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
|
||||
@ -280,7 +280,13 @@
|
||||
var time = new Date(ordertimes).getTime() / 1000 + (60 * 60 * 2)
|
||||
var times = new Date().getTime() / 1000
|
||||
this.timestamp = time - times
|
||||
this.timecount = this.timeStamp
|
||||
this.timecount = 10
|
||||
if (this.timestamp > 0) {
|
||||
this.timecount = this.timestamp
|
||||
this.Timers = setInterval(() => {
|
||||
this.timecount--;
|
||||
}, 1000)
|
||||
}
|
||||
})
|
||||
},
|
||||
//跳转售后详情
|
||||
@ -292,11 +298,6 @@
|
||||
},
|
||||
onShow() {
|
||||
this.goodsOrderinfo()
|
||||
if (this.timecount > 0) {
|
||||
this.Timers = setInterval(() => {
|
||||
this.timecount--;
|
||||
}, 1000)
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
this.baseurl = baseurl
|
||||
|
||||
@ -180,6 +180,13 @@
|
||||
var times = new Date().getTime() / 1000
|
||||
this.timestamp = time - times
|
||||
this.timecount = this.timeStamp
|
||||
this.timecount = 10
|
||||
if (this.timestamp > 0) {
|
||||
this.timecount = this.timestamp
|
||||
this.Timers = setInterval(() => {
|
||||
this.timecount--;
|
||||
}, 1000)
|
||||
}
|
||||
})
|
||||
},
|
||||
//跳转售后详情
|
||||
@ -204,11 +211,6 @@
|
||||
},
|
||||
onShow() {
|
||||
this.goodsOrderinfo(this.goodsOrderId)
|
||||
if (this.timecount > 0) {
|
||||
this.Timers = setInterval(() => {
|
||||
this.timecount--;
|
||||
}, 1000)
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user