From edbd0076951445342a913531e2c66ea82f797ece Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期四, 27 六月 2024 13:29:26 +0800 Subject: [PATCH] # --- pages/mat/matSelected.vue | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pages/mat/matSelected.vue b/pages/mat/matSelected.vue index 8b35956..a625ec9 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 + } }) -- Gitblit v1.9.1