|
|
@ -518,20 +518,28 @@ |
|
|
|
this.id = options.id; |
|
|
|
this.id = options.id; |
|
|
|
this.type = options.type || 1; |
|
|
|
this.type = options.type || 1; |
|
|
|
this.sign = options.sign || ''; |
|
|
|
this.sign = options.sign || ''; |
|
|
|
|
|
|
|
try{ |
|
|
|
if(this.sign!=='')this.getCacheOrder(); |
|
|
|
if(this.sign!=='')this.getCacheOrder(); |
|
|
|
let workerToken = uni.getStorageSync('workerToken'); |
|
|
|
let workerToken = uni.getStorageSync('workerToken'); |
|
|
|
if(workerToken)this.is_worker = true; |
|
|
|
if(workerToken)this.is_worker = true; |
|
|
|
this.getTimeLine(); |
|
|
|
this.getTimeLine(); |
|
|
|
|
|
|
|
}catch (e){ |
|
|
|
|
|
|
|
console.log(e) |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
updated() { |
|
|
|
updated() { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
onShow(){ |
|
|
|
onShow(){ |
|
|
|
if(!this.isPay && this.sign === ''){ |
|
|
|
if(!this.isPay && this.sign === ''){ |
|
|
|
|
|
|
|
try { |
|
|
|
this.getDefaultAddress(); |
|
|
|
this.getDefaultAddress(); |
|
|
|
this.getUserCoupons(); |
|
|
|
this.getUserCoupons(); |
|
|
|
this.getOrderCoupons(); |
|
|
|
this.getOrderCoupons(); |
|
|
|
this.$refs?.petPage?.closePop() |
|
|
|
this.$refs?.petPage?.closePop() |
|
|
|
|
|
|
|
}catch (e){ |
|
|
|
|
|
|
|
console.log(e) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
onShareAppMessage() { |
|
|
|
onShareAppMessage() { |
|
|
|