From 891d2069bbef2173ebac4f3b92a7e789492883ee Mon Sep 17 00:00:00 2001
From: zhangc <zc@123>
Date: 星期四, 20 三月 2025 18:57:05 +0800
Subject: [PATCH] 1
---
pages/phyz/order/pakinOrderSelectV2.vue | 26 +++++++++++++++++++-------
1 files changed, 19 insertions(+), 7 deletions(-)
diff --git a/pages/phyz/order/pakinOrderSelectV2.vue b/pages/phyz/order/pakinOrderSelectV2.vue
index 4e31f4a..437df68 100644
--- a/pages/phyz/order/pakinOrderSelectV2.vue
+++ b/pages/phyz/order/pakinOrderSelectV2.vue
@@ -131,7 +131,7 @@
maktx: '',
order_no: '',
brand: '',
- orderType: null
+ orderType: []
},
index: 0,
count: 0,
@@ -149,13 +149,25 @@
let _this = this
const eventChannel = this.getOpenerEventChannel();
eventChannel.on('param', function(data) {
- _this.data.orderType = data.param.orderType
+ var orderType = data.param.orderType
+ if (orderType != [] || orderType != null) {
+ uni.setStorageSync('dataOrderTypeIn', orderType);
+ _this.data.orderType = orderType
+ } else {
+ orderType = uni.getStorageSync('dataOrderTypeIn');
+ if (orderType != [] || orderType != null) {
+ _this.data.orderType = orderType
+ } else {
+ _this.data.orderType = []
+ }
+ }
+ _this.baseUrl = uni.getStorageSync('baseUrl');
+ _this.token = uni.getStorageSync('token');
+ _this.searchValue = uni.getStorageSync('threeCode');
+ _this.getOrderDetlList(_this.searchValue,10)
+ console.log("onLoad");
})
- this.baseUrl = uni.getStorageSync('baseUrl');
- this.token = uni.getStorageSync('token');
- this.searchValue = uni.getStorageSync('threeCode');
- this.getOrderDetlList(this.searchValue,10)
- console.log("onLoad");
+
},
onShow() {
console.log(uni.getStorageSync('pakinOrderCar'));
--
Gitblit v1.9.1