From c5df53716b70b190e22e4016d952f1aec25c9049 Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期二, 06 五月 2025 13:13:08 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/devlop' into devlop --- pages/listing/disc.vue | 19 ++++++++++++++++--- 1 files changed, 16 insertions(+), 3 deletions(-) diff --git a/pages/listing/disc.vue b/pages/listing/disc.vue index 6730113..114dd16 100644 --- a/pages/listing/disc.vue +++ b/pages/listing/disc.vue @@ -149,9 +149,15 @@ mounted() {}, methods: { async search() { - const find = this.list.find(el => el.trackCode === this.barcode); + if (this.barcode == undefined || this.barcode == '') { + uni.showToast({ + icon: "none", + title: '鐗╂枡鏍囩涓嶈兘涓虹┖锛侊紒' + }) + return + } + const find = this.list.find(el => el.trackCode === this.barcode); find ? this.scrollTo() : this.getDet(); - }, async getDet() { const { @@ -172,7 +178,14 @@ }) } }, - async getList() { + async getList() { + if (this.container == undefined || this.container == '') { + uni.showToast({ + icon: "none", + title: '瀹瑰櫒鍙蜂笉鑳戒负绌猴紒锛�' + }) + return + } const { code, data, -- Gitblit v1.9.1