Browse Source

添加异常捕获

master
396316021 1 year ago
parent
commit
a5b3c8ef41
  1. 2
      pages/OrderDetail/index.vue
  2. 8
      pages/OrderPage/index.vue

2
pages/OrderDetail/index.vue

@ -114,7 +114,7 @@
订单加时
</view>
<view class="item-content" v-if="detail.add_time>0">
{{detail.add_time}} 小时
加时 {{detail.add_time}} 小时
</view>
<view class="item-content" v-else>
无加时

8
pages/OrderPage/index.vue

@ -518,20 +518,28 @@
this.id = options.id;
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;
this.getTimeLine();
}catch (e){
console.log(e)
}
},
updated() {
},
onShow(){
if(!this.isPay && this.sign === ''){
try {
this.getDefaultAddress();
this.getUserCoupons();
this.getOrderCoupons();
this.$refs?.petPage?.closePop()
}catch (e){
console.log(e)
}
}
},
onShareAppMessage() {

Loading…
Cancel
Save