| | |
| | | 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) { |
| | |
| | | _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' }) |
| | | } |
| | | } |
| | | }) |
| | | }, |