This commit is contained in:
曹辉 2023-04-27 16:09:54 +08:00
parent e5e8f915e3
commit 9fd524be32
2 changed files with 7 additions and 18 deletions

View File

@ -75,11 +75,6 @@
this.baseurl = baseurl
this.trainingOrderNo = options.trainingOrderNo
this.info();
if (this.timecount > 0) {
this.Timer = setInterval(() => {
this.timecount--;
}, 1000)
}
},
methods: {
info() {
@ -89,10 +84,13 @@
var time = new Date(ordertimes).getTime() / 1000 + (60 * 60 * 2)
var times = new Date().getTime() / 1000
this.timestamp = time - times
this.timecount = 10
if (this.timestamp > 0) {
this.timecount = this.timestamp
this.Timer = setInterval(() => {
this.timecount--;
}, 1000)
}
this.timecount = 10
})
},
//

View File

@ -47,25 +47,16 @@
};
},
onShow() {
this.baseurl = baseurl
const that = this
this.pageNum = 1
const value = uni.getStorageSync('Refresh');
const nursePersonId = uni.getStorageSync('nursePersonId');
if (value) {
uni.removeStorageSync('Refresh');
if (nursePersonId) {
that.nurseStationPersonId = nursePersonId
that.info();
} else {}
},
onLoad() {
this.baseurl = baseurl
const that = this
const value = uni.getStorageSync('nursePersonId');
if (value) {
that.nurseStationPersonId = value
that.info();
} else {}
},
onLoad() {},
methods: {
//
goOrderdetails(item) {