pages/home/home.js
@@ -41,6 +41,10 @@ loading: true }, onShow() { this.setData({ searchVal: "", }); console.log(this.data.searchVal) this.loadHomePage(); this.getBannerList() @@ -147,6 +151,7 @@ //点击目录 toPages(item) { let info = item.target.dataset.info console.log(info); if (info.url) { if (info.text == "图书服务") { wx.switchTab({ @@ -602,7 +607,6 @@ } } }, isChange(data) { this.setData({ isWhite: data