From ae1aad66a165ee7253bed2127a3b53baa40c2361 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期三, 17 五月 2023 08:35:33 +0800
Subject: [PATCH] 修复错误,增加验证
---
pages/customer-page/customer-index/customer-index.vue | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/pages/customer-page/customer-index/customer-index.vue b/pages/customer-page/customer-index/customer-index.vue
index 5cb4eb9..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;
},
/**
* @瀹㈡埛棰嗗彇
--
Gitblit v1.9.1