From 7eea32a9a7a034e951468bea279688e8db5c1c98 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期一, 09 九月 2024 14:31:51 +0800 Subject: [PATCH] bug --- pages/digitalCourses/index.js | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pages/digitalCourses/index.js b/pages/digitalCourses/index.js index 97960e4..e7d403b 100644 --- a/pages/digitalCourses/index.js +++ b/pages/digitalCourses/index.js @@ -20,6 +20,7 @@ active: 0, activeItem: null, loading: false, + contentLoading: false, shoppingCartGetId: [], sorter: { value: "*", @@ -46,7 +47,6 @@ ], }, sortActive: '', - otherType: null }, /** @@ -120,6 +120,9 @@ }, onTabsChange(event) { const value = event.detail.value + this.setData({ + contentLoading: true + }) this.getCourseList(this.data.tabList[value]) }, @@ -148,10 +151,6 @@ } } app.MG.store.getStoreChannelList(data).then((res) => { - // 鍘婚櫎鏁扮粍鏈�鍚庝竴涓厓绱� - // 鎵惧嚭鍏朵粬鍒嗙被鐨刾ath锛岀敤浜庢帓闄ゅ叾浠栧垎绫婚噷鐨勬暟鎹� - this.data.otherType = res.datas.find(item => item.refCode == "jsek_dCOther") - res.datas = res.datas.filter(item => item.state == 'Normal') const newData = res.datas.slice(0, res.datas.length - 1) newData.unshift({ name: "鍏ㄩ儴", @@ -181,8 +180,8 @@ if (this.data.searchValue) { searchObj = { 'Name*': this.data.searchValue.trim(), - '||isbn*': searchInputValue.value.trim(), - '||courseLeader*': searchInputValue.value.trim() + '||isbn*': this.data.searchValue.trim(), + '||courseLeader*': this.data.searchValue.trim() } } @@ -237,7 +236,8 @@ }) // 鎺掗櫎鍏朵粬鍒嗙被閲岀殑鏁版嵁 this.setData({ - courseList: res.datas.filter(item => item.productLinkInfo[0].LinkPath != this.data.otherType.pathList[0] + '\\' + this.data.otherType.id) + courseList: res.datas, + contentLoading: false, }) }) }, @@ -255,7 +255,7 @@ setNewView('productId', item.id) this.getCourseTypeListList() wx.navigateTo({ - url: '/pages/digitalCourses/digitalCoursesDetails/index?id=' + item.id + '&path=' + item.idPath, + url: '/pages/digitalCourses/digitalCoursesDetails/index?id=' + item.id + '&path=' + item.idPath }) }, -- Gitblit v1.9.1