From 04c7b0163caeae4ab1c5da62e301fa993101cfad Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期一, 31 三月 2025 10:40:45 +0800 Subject: [PATCH] bug修改 --- pages/study/index.js | 45 +++++++++++++++++++++++++-------------------- 1 files changed, 25 insertions(+), 20 deletions(-) diff --git a/pages/study/index.js b/pages/study/index.js index 45af0a6..fcd584b 100644 --- a/pages/study/index.js +++ b/pages/study/index.js @@ -64,6 +64,10 @@ this.getStaticsSum(); this.getDataList(false); this.getListCount() + } else { + wx.switchTab({ + url: '/pages/home/home', + }) } }) } else { @@ -132,23 +136,23 @@ titleBook: "鍥句功锛�" + res.totalSize + "鏈級", }) }) - // let data1 = { - // Size: 9999, - // Start: 0, - // sort: { - // type: "Desc", - // field: "CreateDate", - // }, - // searchList: [{ - // keywords: 'jsek_digitalCourses', - // field: "ProductType", - // }], - // } - // app.MG.store.getPurchasedProductList(data1).then((res) => { - // that.setData({ - // titleCourse: "璇剧▼锛�" + res.totalSize + "闂級", - // }) - // }) + let data1 = { + Size: 9999, + Start: 0, + sort: { + type: "Desc", + field: "CreateDate", + }, + searchList: [{ + keywords: 'jsek_digitalCourses', + field: "ProductType", + }], + } + app.MG.store.getPurchasedProductList(data1).then((res) => { + that.setData({ + titleCourse: "璇剧▼锛�" + res.totalSize + "闂級", + }) + }) let data2 = { Size: 9999, Start: 0, @@ -241,15 +245,16 @@ const { book } = e.currentTarget.dataset; + console.log(book); if (this.data.active == 0) { wx.navigateTo({ url: `/packageBookService/pages/bookServices/detail/index?id=${book.product.id}&name=${book.product.name}`, }); } if (this.data.active == 1) { - // wx.navigateTo({ - // url: `/packageBookService/pages/bookServices/detail/index?id=${book.product.id}&name=${book.product.name}`, - // }); + wx.navigateTo({ + url: `/pages/digitalCourses/digitalCoursesDetails/index?id=${book.product.id}&path=${book.product.linkPathList[1] + '\\' + book.product.id}`, + }); } if (this.data.active == 2) { wx.navigateTo({ -- Gitblit v1.9.1