From 3ea56586c9df10c864946c71fe4b422d091feb0a Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期三, 10 四月 2024 19:16:14 +0800 Subject: [PATCH] # --- pages/phyz/order/pakinOrderSelect.vue | 39 ++++++++++++++++++++++++++++++++++----- 1 files changed, 34 insertions(+), 5 deletions(-) diff --git a/pages/phyz/order/pakinOrderSelect.vue b/pages/phyz/order/pakinOrderSelect.vue index 4d60b26..fd9bb87 100644 --- a/pages/phyz/order/pakinOrderSelect.vue +++ b/pages/phyz/order/pakinOrderSelect.vue @@ -52,6 +52,10 @@ </view> </uni-popup> </view> + <!-- 閬僵灞� --> + <view class="mask" v-if="mask"> + 鍔犺浇涓�傘�傘�� + </view> </view> </template> @@ -73,7 +77,7 @@ }, index: 0, count: 0, - + mask: false } }, @@ -86,6 +90,7 @@ methods: { getOrderDetlList(threeCode,limit) { let _this = this + _this.mask = true _this.data.three_code = threeCode _this.data.limit = limit uni.request({ @@ -107,6 +112,7 @@ } _this.dataList = res.data.records _this.total = res.data.total + _this.mask = false } } }) @@ -143,10 +149,10 @@ this.count = 0 }, addConfirm() { - if (this.count == 0) { - uni.showToast({ title: '鍏ュ簱鏁伴噺涓嶅悎娉曪紒', icon: "none", position: 'top' }) - return - } + // if (this.count == 0) { + // uni.showToast({ title: '鍏ュ簱鏁伴噺涓嶅悎娉曪紒', icon: "none", position: 'top' }) + // return + // } this.dataList[this.index]['used'] = true this.dataList[this.index]['pakinQty'] = this.count this.orderCarList.push(this.dataList[this.index]) @@ -157,6 +163,10 @@ // 鐐瑰嚮鍓嶅線 寰呯粍鎵樺垪琛� orderCar() { let _this = this + if (_this.orderCarList.length === 0) { + uni.showToast({ title: '璇锋坊鍔犲叆搴撳晢鍝侊紒', icon: "none", position: 'top' }) + return + } uni.navigateTo({ url: './orderCar', success(res) { @@ -167,6 +177,10 @@ events: { acceptDataFromOpenedPage: function(data) { console.log(data); + if (data.data == 1) { + _this.orderCarList = [] + _this.getOrderDetlList(uni.getStorageSync('threeCode'),999999) + } } } }) @@ -221,6 +235,21 @@ flex: 4; } + .mask { + position: absolute; + width: 100%; + height: 100vh; + z-index: 999; + top: 0; + left: 0; + background-color: rgba(0, 0, 0, .4); + display: flex; + align-items: center; + justify-content: center; + font-size: 16px; + color: #fff; + } + .popup { width: 80vw; min-height: 100rpx; -- Gitblit v1.9.1