From 04c7b0163caeae4ab1c5da62e301fa993101cfad Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期一, 31 三月 2025 10:40:45 +0800 Subject: [PATCH] bug修改 --- packageBookService/pages/bookServices/detail/index.js | 31 +++++++++++++++++++++---------- 1 files changed, 21 insertions(+), 10 deletions(-) diff --git a/packageBookService/pages/bookServices/detail/index.js b/packageBookService/pages/bookServices/detail/index.js index f9aefe9..4a1ea38 100644 --- a/packageBookService/pages/bookServices/detail/index.js +++ b/packageBookService/pages/bookServices/detail/index.js @@ -301,6 +301,7 @@ } this.setData({ num: Number(this.data.paperBookList.length) + Number(this.data.electronicBookList.length), + editDialog: false }); if (this.data.bookDetail.id) { this.getBookInfo(this.data.bookDetail.id) @@ -771,7 +772,11 @@ editDialog: true }) }, - + closeEditDialog() { + this.setData({ + editDialog: false + }) + }, // 鎴戣寤鸿 suggestBtn() { // 妫�鏌ョ櫥褰曠姸鎬� @@ -2099,12 +2104,6 @@ }, // 璐拱缁勫嵎 buyMock() { - const token = wx.getStorageSync(app.config.tokenKey); - if (token) { - buyMockFun() - } else { - this.logInFun(() => {}) - } const buyMockFun = async () => { let res; if (!this.data.mockData.id) @@ -2153,6 +2152,13 @@ console.log(error); } } + const token = wx.getStorageSync(app.config.tokenKey); + if (token) { + buyMockFun() + } else { + this.logInFun(() => {}) + } + }, // 璁板綍璐拱缁勫嵎鏃堕棿 recordBuyMock() { @@ -2679,9 +2685,14 @@ //鍘绘牱涔︾敵璇峰崟 goApply() { - wx.navigateTo({ - url: "/packageDomain/pages/sampleBookList/applicationForm/index", - }); + const token = wx.getStorageSync(app.config.tokenKey); + if (token) { + wx.navigateTo({ + url: "/packageDomain/pages/sampleBookList/applicationForm/index", + }); + } else { + this.logInFun(() => {}) + } }, handleTree() { // const child = this.selectComponent('#teach-tree') -- Gitblit v1.9.1