From 2b222a728e2aa4c1409e2fd26849df6fbc4d1e3b Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期一, 17 六月 2024 17:56:15 +0800 Subject: [PATCH] 专题 --- pages/specialDiscussion/index.js | 19 ++++++++++++++++--- 1 files changed, 16 insertions(+), 3 deletions(-) diff --git a/pages/specialDiscussion/index.js b/pages/specialDiscussion/index.js index 26717a1..d41a268 100644 --- a/pages/specialDiscussion/index.js +++ b/pages/specialDiscussion/index.js @@ -23,7 +23,8 @@ batList: [], specialDiscussionList: [], searchValue: '', - batListValue: '' + batListValue: '', + loading: false }, /** @@ -40,7 +41,11 @@ navBarHeight: navBarHeight, }); this.ceShiList() + + this.getCourseTypeListList() + + }, /** @@ -120,6 +125,9 @@ }, // 鑾峰彇鍥剧墖鏂囧瓧鍒楄〃 ceShiList() { + this.setData({ + loading: true + }) let searchObj = {} if (this.data.searchValue) { searchObj = { @@ -177,9 +185,10 @@ // console.log('涓や釜鏃堕棿鐩稿悓锛�') } }) + this.setData({ specialSubjectList, - + loading: false, "tabList[0].amount": specialSubjectList.length }) }) @@ -247,6 +256,7 @@ specialDiscussionGet(item) { + let searchObj = {} if (this.data.searchValue) { searchObj = { @@ -297,7 +307,10 @@ this.setData({ specialDiscussionList: data, - "tabList[1].amount": data.length + "tabList[1].amount": data.length, + + + }) console.log(this.data.specialDiscussionList); -- Gitblit v1.9.1