py 2 ani în urmă
părinte
comite
c24c3fe454
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      pages/order/index.vue

+ 3 - 3
pages/order/index.vue

@@ -248,6 +248,7 @@
 			};
 		},
 		onShow() {
+			uni.showTabBar()
 			let orderPayType = uni.getStorageSync('orderPayType')
 			let orderInfoType = uni.getStorageSync('orderInfoType')
 			console.log(orderPayType, 'orderPayType');
@@ -256,12 +257,12 @@
 				this.selectType(orderPayType)
 				console.log('固定type');
 			} else if (orderInfoType) {
-				return
+				
 			} else {
 				this.resetList();
 			}
 			uni.$on('takeOutData', (data) => {
-				console.log(data, '^^^^^^^^^^^^^^^^^^^^^^^^^^^^');
+				console.log(data, '^^^^^^^^^^^^^^^^^^^^^^^^^');
 				this.list.forEach((v, k) => {
 					if (v.id == data.id) {
 						v.order_status = data.order_status
@@ -272,7 +273,6 @@
 				uni.removeStorageSync('orderInfoType')
 				console.log(this.list, 'this.list');
 			})
-			uni.showTabBar()
 		},
 		onLoad() {},
 		onHide() {