From 85fb718ae06cb0b5a74782cb6cbd081bfc870fcb Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期一, 16 十二月 2024 10:12:55 +0800 Subject: [PATCH] 出版日期 --- packageBookService/pages/bookServices/detail/index.js | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packageBookService/pages/bookServices/detail/index.js b/packageBookService/pages/bookServices/detail/index.js index 123be36..ef3187d 100644 --- a/packageBookService/pages/bookServices/detail/index.js +++ b/packageBookService/pages/bookServices/detail/index.js @@ -436,6 +436,7 @@ }; app.MG.store.getProductDetail(query).then(async (res) => { this.getResourceCode(id, res.datas.rootCmsItemId) + console.log(res.datas, "res.datas") this.setData({ bookDetail: res.datas, buyIdList: res.datas.purchasedSaleMethodIdList, @@ -507,7 +508,7 @@ } } this.setData({ - "bookDetail.publicationDate": moment(this.data.bookDetail.publicationDate).format("YYYY骞碝M鏈�"), + "bookDetail.publicationDate": this.data.bookDetail.publicationDate ? moment(this.data.bookDetail.publicationDate).format("YYYY骞碝M鏈�") : '', "bookDetail.price": this.numFormat(this.data.bookDetail.price), "bookDetail.oldPrice": this.numFormat(this.data.bookDetail.oldPrice), "bookDetail.paperPrice": this.numFormat( @@ -1165,14 +1166,16 @@ if (isTSFW.length > 0) { data = res.datas.cmsDatas[0].datas.filter((item) => item.type == 'questionBankFolder' && (item.childrenFolderCount > 0 || item.childrenCount > 0) && (item.name !== '濉┖棰�' && - item.name !== '鍒ゆ柇棰�' && - item.name !== '澶氶�夐' && - item.name !== '绠�绛旈')) + item.name !== '鍒ゆ柇棰�' && + item.name !== '澶氶�夐' && + item.name !== '绠�绛旈')) && + item.refCode != 'jsek_interaction' that.setData({ jslx: false, }); } else { - data = res.datas.cmsDatas[0].datas.filter((item) => item.type == 'questionBankFolder') + data = res.datas.cmsDatas[0].datas.filter((item) => item.type == 'questionBankFolder' && + item.refCode != 'jsek_interaction') that.setData({ jslx: true, }); -- Gitblit v1.9.1