From 5b19b0e39a91e566a835460bf1213e7b3a0582b9 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期一, 17 三月 2025 14:27:14 +0800 Subject: [PATCH] 图 --- pages/digitalCourses/index.js | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/pages/digitalCourses/index.js b/pages/digitalCourses/index.js index a99fbbf..10b6d06 100644 --- a/pages/digitalCourses/index.js +++ b/pages/digitalCourses/index.js @@ -21,7 +21,7 @@ activeItem: null, loading: false, contentLoading: false, - noData:false, + noData: false, shoppingCartGetId: [], sorter: { value: "*", @@ -175,6 +175,9 @@ }, getCourseList(item) { + this.setData({ + noData: false, + }) let searchObj = {} let sort = {} // // 鎼滅储妗� @@ -231,10 +234,11 @@ } } app.MG.store.getProductList(obj).then((res) => { - if(!res.datas.length) { + if (!res.datas.length) { return this.setData({ - noData:true, - contentLoading:false + noData: true, + courseList: [], + contentLoading: false }) } res.datas.forEach(item => { @@ -306,7 +310,7 @@ ) ) { wx.showToast({ - title: "璇ヤ功宸插湪璐墿杞︼紝璇峰嬁閲嶅娣诲姞绌�", + title: "璇ヨ绋嬪凡鍦ㄨ喘鐗╄溅锛岃鍕块噸澶嶆坊鍔�", icon: 'none', duration: 1000 }) -- Gitblit v1.9.1