From 80cee152c8c7f314d43a05ae1994aeeecd28b08a Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期五, 20 九月 2024 18:35:47 +0800 Subject: [PATCH] Merge refs/remotes/origin/master into refs/heads/master --- pages/digitalCourses/index.js | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/pages/digitalCourses/index.js b/pages/digitalCourses/index.js index a99fbbf..b09fa0b 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 + courseList: [], + noData: true, + contentLoading: false }) } res.datas.forEach(item => { -- Gitblit v1.9.1