|
|
|
@ -408,6 +408,7 @@
|
|
|
|
|
import pet from "@/pages/Pet/index.vue"; |
|
|
|
|
import {getConfig} from "@/api/other"; |
|
|
|
|
import log from "@/utils/log"; |
|
|
|
|
import {logSend} from "../../api/logSave"; |
|
|
|
|
export default { |
|
|
|
|
computed: { |
|
|
|
|
api() { |
|
|
|
@ -519,12 +520,15 @@
|
|
|
|
|
this.type = options.type || 1; |
|
|
|
|
this.sign = options.sign || ''; |
|
|
|
|
try{ |
|
|
|
|
if(this.sign!=='')this.getCacheOrder(); |
|
|
|
|
let workerToken = uni.getStorageSync('workerToken'); |
|
|
|
|
if(workerToken)this.is_worker = true; |
|
|
|
|
if(this.sign!=='') { |
|
|
|
|
this.getCacheOrder(); |
|
|
|
|
} |
|
|
|
|
if(uni.getStorageSync('workerToken')) { |
|
|
|
|
this.is_worker = true; |
|
|
|
|
} |
|
|
|
|
this.getTimeLine(); |
|
|
|
|
}catch (e){ |
|
|
|
|
console.log(e) |
|
|
|
|
logSend(e).then(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
updated() { |
|
|
|
@ -534,11 +538,23 @@
|
|
|
|
|
if(!this.isPay && this.sign === ''){ |
|
|
|
|
try { |
|
|
|
|
this.getDefaultAddress(); |
|
|
|
|
}catch (e){ |
|
|
|
|
logSend(e).then(); |
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
this.getUserCoupons(); |
|
|
|
|
}catch (e){ |
|
|
|
|
logSend(e).then(); |
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
this.getOrderCoupons(); |
|
|
|
|
}catch (e){ |
|
|
|
|
logSend(e).then(); |
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
this.$refs?.petPage?.closePop() |
|
|
|
|
}catch (e){ |
|
|
|
|
console.log(e) |
|
|
|
|
logSend(e).then(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -581,7 +597,10 @@
|
|
|
|
|
data.addServiceList = this.addServiceList; |
|
|
|
|
data.addServiceChecked = this.addServiceChecked; |
|
|
|
|
data.petChecked = this.petChecked; |
|
|
|
|
data.coupons = this.coupons; |
|
|
|
|
data.user_coupons = this.user_coupons; |
|
|
|
|
data.order_coupons = this.order_coupons; |
|
|
|
|
data.store_id = this.store_id; |
|
|
|
|
// data.coupons = this.coupons; |
|
|
|
|
data.add_time = this.add_time; |
|
|
|
|
data.basicServiceList = this.basicServiceList; |
|
|
|
|
data.basicServiceChecked = this.basicServiceChecked; |
|
|
|
@ -604,7 +623,10 @@
|
|
|
|
|
this.$refs.petPage.petCheckList = data.petChecked; |
|
|
|
|
this.addServiceList = data.addServiceList; |
|
|
|
|
this.addServiceChecked = data.addServiceChecked; |
|
|
|
|
this.coupons = data.coupons; |
|
|
|
|
// this.coupons = data.coupons; |
|
|
|
|
this.user_coupons = data.user_coupons; |
|
|
|
|
this.order_coupons = data.order_coupons; |
|
|
|
|
this.store_id = data.store_id; |
|
|
|
|
this.add_time = data.add_time; |
|
|
|
|
this.basicServiceList = data.basicServiceList; |
|
|
|
|
this.basicServiceChecked = data.basicServiceChecked; |
|
|
|
|