From 05273ace3da665cb10c36ca0dac4413a8284302a Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期三, 17 五月 2023 18:10:36 +0800
Subject: [PATCH] 增加部分限制,增加新功能

---
 pages/customer-page/customer-index/customer-index.vue |   27 +++++++++++++--------------
 1 files changed, 13 insertions(+), 14 deletions(-)

diff --git a/pages/customer-page/customer-index/customer-index.vue b/pages/customer-page/customer-index/customer-index.vue
index 558f7c3..fd75770 100644
--- a/pages/customer-page/customer-index/customer-index.vue
+++ b/pages/customer-page/customer-index/customer-index.vue
@@ -209,7 +209,7 @@
 			return arrays;
 		},
 		popupDetermineClick() {
-			if (this.receiveNum) {
+			if (this.receiveNum > 0) {
 				this.getOrderNum.num = this.receiveNum;
 				uni.showLoading({ title: '鍔犺浇涓�...' });
 				this.$reqPost('customerGet', this.getOrderNum, 'params').then(res => {
@@ -217,6 +217,7 @@
 					if (res.code == 0) {
 						this.getOrderNum.num = '';
 						this.GetOrderPlan();
+						this.show = false;
 						uni.showToast({
 							title: '棰嗗彇鎴愬姛锛�',
 							icon: 'none',
@@ -226,13 +227,19 @@
 						this.$u.toast(res.msg ? res.msg : '棰嗗彇澶辫触');
 					}
 				});
+			} else if (Number(this.receiveNum) <= 0) {
+				uni.showToast({
+					title: '璇疯緭鍏ュ悎娉曠殑鏁板瓧',
+					icon: 'none'
+				});
+				this.show = true;
 			} else {
 				uni.showToast({
 					title: '璇疯緭鍏ラ鍙栨暟閲�',
 					icon: 'none'
 				});
+				this.show = true;
 			}
-			this.show = false;
 		},
 		/**
 		 * @瀹㈡埛棰嗗彇
@@ -314,7 +321,6 @@
 			width: 96%;
 			height: 34rpx;
 			font-size: 32rpx;
-			font-family: Microsoft YaHei;
 			font-weight: 300;
 			color: #303030;
 			@include flex;
@@ -324,7 +330,6 @@
 			width: 100%;
 			height: 31rpx;
 			font-size: 30rpx;
-			font-family: Microsoft YaHei;
 			font-weight: 300;
 			color: #515151;
 			margin: vww(10) vww(10) 0;
@@ -347,7 +352,6 @@
 			width: 96%;
 			height: 31rpx;
 			font-size: 30rpx;
-			font-family: Microsoft YaHei;
 			font-weight: 300;
 			color: #515151;
 			margin: vww(10) vww(10) 0;
@@ -366,7 +370,6 @@
 			width: 100%;
 			height: 31rpx;
 			font-size: 30rpx;
-			font-family: Microsoft YaHei;
 			font-weight: 300;
 			color: #515151;
 			margin: vww(10) vww(10) 0;
@@ -420,13 +423,11 @@
 						width: 15%;
 						text {
 							font-size: 24rpx;
-							font-family: Microsoft YaHei;
 							font-weight: 400;
 							color: #c78a64;
 						}
 						.residue {
 							font-size: 40rpx;
-							font-family: CTCuHeiSJ;
 							font-weight: 400;
 							color: #f81414;
 						}
@@ -435,7 +436,7 @@
 				.second-line {
 					width: 100%;
 					height: vww(30);
-					margin-left: vww(12);
+					margin-left: vww(16);
 					display: flex;
 					align-items: center;
 					justify-content: flex-start;
@@ -443,7 +444,6 @@
 						flex-grow: 1;
 						height: 30rpx;
 						font-size: 30rpx;
-						font-family: Microsoft YaHei;
 						font-weight: 300;
 						color: #515151;
 						position: relative;
@@ -461,7 +461,6 @@
 							height: 30rpx;
 							line-height: 30rpx;
 							font-size: 30rpx;
-							font-family: Microsoft YaHei;
 							font-weight: 300;
 							color: #515151;
 						}
@@ -480,7 +479,6 @@
 						height: 24rpx;
 						line-height: 24rpx;
 						font-size: 28rpx;
-						font-family: Microsoft YaHei;
 						font-weight: 300;
 						color: #515151;
 					}
@@ -508,12 +506,14 @@
 							background: url('../../../static/image/banner/button.png') no-repeat;
 							background-size: cover;
 							font-size: 28rpx;
-							font-family: Microsoft YaHei;
 							font-weight: 300;
 							color: #ffffff;
 							text-align: center;
 							line-height: vww(45);
 						}
+					}
+					.receive {
+						left: vww(20);
 					}
 					.forward {
 						width: vww(106);
@@ -524,7 +524,6 @@
 							background: url('../../../static/image/banner/transpartent.png') no-repeat;
 							background-size: cover;
 							font-size: 28rpx;
-							font-family: Microsoft YaHei;
 							font-weight: 300;
 							color: #3b56eb;
 							text-align: center;

--
Gitblit v1.9.1