| | |
| | | }; |
| | | 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, |
| | |
| | | } |
| | | } |
| | | this.setData({ |
| | | "bookDetail.publicationDate": moment(this.data.bookDetail.publicationDate).format("YYYY年MM月"), |
| | | "bookDetail.publicationDate": this.data.bookDetail.publicationDate ? moment(this.data.bookDetail.publicationDate).format("YYYY年MM月") : '', |
| | | "bookDetail.price": this.numFormat(this.data.bookDetail.price), |
| | | "bookDetail.oldPrice": this.numFormat(this.data.bookDetail.oldPrice), |
| | | "bookDetail.paperPrice": this.numFormat( |
| | |
| | | |
| | | 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.refCode != 'jsek_interaction' |
| | | item.name !== '判断题' && |
| | | item.name !== '多选题' && |
| | | item.name !== '简答题') && item.name !== '单选题') |
| | | that.setData({ |
| | | jslx: false, |
| | | }); |