From 06330fa829986204ca49bb2daeeb0c42cfa31114 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期六, 06 七月 2024 15:26:49 +0800
Subject: [PATCH] #
---
pages/mat/matSelected.vue | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/pages/mat/matSelected.vue b/pages/mat/matSelected.vue
index 8b35956..38a0300 100644
--- a/pages/mat/matSelected.vue
+++ b/pages/mat/matSelected.vue
@@ -64,11 +64,14 @@
eventChannel.on('mat', function(data) {
that.mat = data.data
console.log(data.data);
- if (data.data.maxNum) {
+ if (data.data.maxNum > 0) {
that.mat.anfme = data.data.maxNum
- } else {
+ that.max = data.data.maxNum
+ } else if (data.data.maxNum == 0) {
+ uni.showToast({title: '褰撳墠鐗╂枡鏈�澶у彲鍏ユ暟閲忎负 0', icon: "none", position: 'top'});
that.mat.anfme = 0
- }
+ that.max = data.data.maxNum
+ }
})
@@ -83,12 +86,15 @@
},
changeValue(value) {
this.mat.anfme = value
+ console.log(this.mat);
},
back() {
+
if (this.mat.anfme === 0) {
uni.showToast({title: '璇疯緭鍏ユ暟閲�', icon: "none", position: 'top'});
return;
}
+ console.log(this.mat);
this.getOpenerEventChannel().emit('matList', {data: this.mat});
uni.navigateBack({
--
Gitblit v1.9.1