Browse Source

添加异常捕获

master
396316021 1 year ago
parent
commit
a5b3c8ef41
  1. 2
      pages/OrderDetail/index.vue
  2. 24
      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>
无加时 无加时

24
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 || '';
if(this.sign!=='')this.getCacheOrder(); try{
let workerToken = uni.getStorageSync('workerToken'); if(this.sign!=='')this.getCacheOrder();
if(workerToken)this.is_worker = true; let workerToken = uni.getStorageSync('workerToken');
this.getTimeLine(); if(workerToken)this.is_worker = true;
this.getTimeLine();
}catch (e){
console.log(e)
}
}, },
updated() { updated() {
}, },
onShow(){ onShow(){
if(!this.isPay && this.sign === ''){ if(!this.isPay && this.sign === ''){
this.getDefaultAddress(); try {
this.getUserCoupons(); this.getDefaultAddress();
this.getOrderCoupons(); this.getUserCoupons();
this.$refs?.petPage?.closePop() this.getOrderCoupons();
this.$refs?.petPage?.closePop()
}catch (e){
console.log(e)
}
} }
}, },
onShareAppMessage() { onShareAppMessage() {

Loading…
Cancel
Save