From d69d595fbe35a024c46848f0df1ab0f5472e87cf Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期二, 04 四月 2023 09:02:46 +0800 Subject: [PATCH] # --- pages/basics/notificationFile.vue | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pages/basics/notificationFile.vue b/pages/basics/notificationFile.vue index 7028b08..c0848a8 100644 --- a/pages/basics/notificationFile.vue +++ b/pages/basics/notificationFile.vue @@ -5,7 +5,7 @@ <view class="search-area"> <view class="search-icon"><uni-icons type="search" size="25" color="#a5a5a5"></uni-icons></view> <input type="text" v-model="zpallet" placeholder=" 鎵樼洏鏉$爜"/> - <view class="close-icon" v-show="zpallet" @click="remove(zpallet)"><uni-icons type="closeempty" size="25" color="#a5a5a5"></uni-icons></view> + <view class="close-icon" v-show="zpallet" @click="remove('zpallet')"><uni-icons type="closeempty" size="25" color="#a5a5a5"></uni-icons></view> </view> <view class="search-btn"><button @click="getList(zpallet)" class="cu-btn bg-blue">鎼滅储</button></view> </view> @@ -77,6 +77,7 @@ getList(barcode) { let that = this if (barcode == '') { + that.listData = [] uni.showToast({title: '璇疯緭鍏ユ墭鐩樼爜', icon: "none",position: 'center'}) return } @@ -90,14 +91,12 @@ header: {'token':uni.getStorageSync('token')}, method:'GET', success: result =>{ - console.log(result); let res = result.data if (res.code === 200) { - console.log(res.data.records.length); if (res.data.records.length>0) { that.listData = res.data.records } else { - console.log('-----------'); + that.listData = [] uni.showToast({title: '鎵樼洏鐮侊細' + barcode + ' 鏃犳暟鎹紒', icon: "none",position: 'center'}) } } else if(res.code === 403) { -- Gitblit v1.9.1