#
whycq
2024-04-19 a9c5e6472fb609e23d6cfdf6fd7ad10af382a8b1
pages/phyz/order/pakinOrderSelect.vue
@@ -93,6 +93,18 @@
         this.token = uni.getStorageSync('token');
         this.searchValue = uni.getStorageSync('threeCode');
         this.getOrderDetlList(this.searchValue,30)
         console.log("onLoad");
      },
      onShow() {
         console.log(uni.getStorageSync('pakinOrderCar'));
         // if (uni.getStorageSync('pakinOrderCar')) {
         //    this.orderCarList = uni.getStorageSync('pakinOrderCar');
         // } else {
         //    this.orderCarList = []
         // }
      },
      onHide() {
         uni.setStorageSync('pakinOrderCar', this.orderCarList);
      },
      methods: {
         getOrderDetlList(threeCode,limit) {
@@ -120,7 +132,12 @@
                     _this.dataList = res.data.records
                     _this.total = res.data.total
                     _this.mask = false
                  }
                  } else if (res.code == 403) {
                     uni.showToast({ title: res.msg, icon: "error", position: 'top' })
                     setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
                  } else {
                     uni.showToast({ title: res.msg, icon: "error", position: 'top' })
                  }
               }
            })
         },