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>
<view class="item-content" v-if="detail.add_time>0"> <view class="item-content" v-if="detail.add_time>0">
{{detail.add_time}} 小时 加时 {{detail.add_time}} 小时
</view> </view>
<view class="item-content" v-else> <view class="item-content" v-else>
无加时 无加时

8
pages/OrderPage/index.vue

@ -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() {

Loading…
Cancel
Save