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

View File

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