| | |
| | | <view class="mask" v-if="mask"> |
| | | 加载中。。。 |
| | | </view> |
| | | <view class="buttom"> |
| | | <!-- <view class="buttom"> |
| | | <uni-search-bar :focus="searchValueFocus" v-model="searchValue" style="width: 100%;" |
| | | maxlength="500" ancel="cancel" @confirm="searchValueInput2()" @clear="clear" placeholder="输入 / 扫描 订单号"> |
| | | </uni-search-bar> |
| | | </view> |
| | | </view> --> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | 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' }) |
| | | } |
| | | } |
| | | }) |
| | | }, |