From 4b5f1f7ed3460df9465e5071a59b8105cbc9146e Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期五, 29 三月 2024 14:35:30 +0800 Subject: [PATCH] 修改 --- pages/home/home.js | 20 +++++++++++--------- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/pages/home/home.js b/pages/home/home.js index add28de..58b5b7a 100644 --- a/pages/home/home.js +++ b/pages/home/home.js @@ -16,7 +16,7 @@ tabList: [], //鐩綍 current: 1, //杞挱鍥惧弬鏁� autoplay: true, //杞挱鍥惧弬鏁� - duration: '500', //杞挱鍥惧弬鏁� + duration: '500', //杞挱鍥惧弬鏁� interval: 5000, //杞挱鍥惧弬鏁� navigation: { type: 'dots' @@ -303,8 +303,8 @@ //鏁板瓧闃呰 getReadBookList() { const obj = { - storeInfo: app.config.digitalTextbooks, - path: 'jsek_homepageDigitalTextbooks', + storeInfo: app.config.digitalRead, + path: 'jsek_homepageDigitalReading', coverSize: { width: 150 }, @@ -412,11 +412,9 @@ const { book } = e.currentTarget.dataset; - wx.showToast({ - title: "寤鸿涓�", - icon: 'none', - duration: 1000 - }) + wx.navigateTo({ + url: '/pages/home/digitalRead/index?productId=' + book.id, + }); }, goTextBookDetail(e) { const { @@ -505,6 +503,10 @@ wx.navigateTo({ url: '/packageBookService/pages/bookServices/list/index?assorName=' + this.data.bookTypeData.name }) + } else if (type == "shuziyuedu") { + wx.navigateTo({ + url: '/pages/home/digitalRead/index' + }) } else { wx.showToast({ title: "寤鸿涓�", @@ -519,7 +521,7 @@ // 鐩戝惉婊氬姩鏉� onScroll(e) { this.setData({ - isWhite: e.detail.scrollTop > 10 ? true : false + isWhite: e.detail.scrollTop > 20 ? true : false }) }, onRetrievalPage() { -- Gitblit v1.9.1