From 7eea32a9a7a034e951468bea279688e8db5c1c98 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期一, 09 九月 2024 14:31:51 +0800 Subject: [PATCH] bug --- pages/home/home.js | 44 +++++++++++++++++++++++--------------------- 1 files changed, 23 insertions(+), 21 deletions(-) diff --git a/pages/home/home.js b/pages/home/home.js index cfeb887..1b2f624 100644 --- a/pages/home/home.js +++ b/pages/home/home.js @@ -446,11 +446,11 @@ }); }, goSubjectDetail(e) { - return wx.showToast({ - title: "寤鸿涓�", - icon: 'none', - duration: 1000 - }) + // return wx.showToast({ + // title: "寤鸿涓�", + // icon: 'none', + // duration: 1000 + // }) const item = e.currentTarget.dataset.book console.log(item); wx.navigateTo({ @@ -458,16 +458,18 @@ }); }, goCourseDetail(e) { - return wx.showToast({ - title: "寤鸿涓�", - icon: 'none', - duration: 1000 - }) + // return wx.showToast({ + // title: "寤鸿涓�", + // icon: 'none', + // duration: 1000 + // }) + const { book } = e.currentTarget.dataset; + console.log(book); wx.navigateTo({ - url: '/pages/digitalCourses/digitalCoursesDetails/index?id=' + book.id, + url: '/pages/digitalCourses/digitalCoursesDetails/index?id=' + book.id + '&path=' + book.idPath, }); }, goReadBookDetail(e) { @@ -587,21 +589,21 @@ url: '/pages/home/digitalRead/index' }) } else if (type == "zhuantitaolun") { - return wx.showToast({ - title: "寤鸿涓�", - icon: 'none', - duration: 1000 - }) + // return wx.showToast({ + // title: "寤鸿涓�", + // icon: 'none', + // duration: 1000 + // }) wx.navigateTo({ url: '/pages/specialDiscussion/index' }) } else if (type == "jingxuankecheng") { - return wx.showToast({ - title: "寤鸿涓�", - icon: 'none', - duration: 1000 - }) + // return wx.showToast({ + // title: "寤鸿涓�", + // icon: 'none', + // duration: 1000 + // }) wx.navigateTo({ url: '/pages/digitalCourses/index?courseTypeActive=' + this.data.courseTypeActive }) -- Gitblit v1.9.1