From 5b19b0e39a91e566a835460bf1213e7b3a0582b9 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期一, 17 三月 2025 14:27:14 +0800 Subject: [PATCH] 图 --- packageBookService/pages/bookServices/detail/index.js | 25 ++++++++++++++++++------- 1 files changed, 18 insertions(+), 7 deletions(-) diff --git a/packageBookService/pages/bookServices/detail/index.js b/packageBookService/pages/bookServices/detail/index.js index 6faf542..212bf12 100644 --- a/packageBookService/pages/bookServices/detail/index.js +++ b/packageBookService/pages/bookServices/detail/index.js @@ -214,7 +214,8 @@ protocolShow: false, protocolTxt: '', learnMenu: null, - md5List: [] + md5List: [], + editDialog: false }, resetTree: function (e) { @@ -431,11 +432,14 @@ protectedEpub: [], probationPage: [], //pdf璇曡椤垫暟 freeEpubPage: [], //epub璇曡鐧惧垎姣� + bookEditor: [], //鍥句功缂栬緫 + contactInformation: [], //鑱旂郴鏂瑰紡 }, }; app.MG.store.getProductDetail(query).then(async (res) => { this.getResourceCode(id, res.datas.rootCmsItemId) - console.log(res.datas, "res.datas") + res.datas.bookEditor = res.datas.bookEditor ? res.datas.bookEditor : '-' + res.datas.contactInformation = res.datas.contactInformation ? res.datas.contactInformation : '-' this.setData({ bookDetail: res.datas, buyIdList: res.datas.purchasedSaleMethodIdList, @@ -755,6 +759,14 @@ } } }, + + // 鑱旂郴 + editPhone() { + this.setData({ + editDialog: true + }) + }, + // 鎴戣寤鸿 suggestBtn() { // 妫�鏌ョ櫥褰曠姸鎬� @@ -1032,7 +1044,6 @@ res.datas.cmsDatas[0].datas.forEach((item) => { // 浜戝涔犱笂鏈夐攢鍞柟寮忥紝鍘绘帀浜戝涔犱笅鎵�鏈夐攢鍞柟寮� if (this.data.tabValue == "jsek_teachingResources") { - if (item.file || item.freeFile) { let md5 = item.file ? item.file : item.freeFile md5s.push(md5) @@ -1041,7 +1052,7 @@ md5List: md5s, }); } - if (flags) item.saleMethod = [] + if (flags && cloundSaleMethod.Price > 0) item.saleMethod = [] item.checked = false; if (item.sysType == 'CmsItem') { // 鏁欏璧勬簮 绫诲瀷鍚嶇О璧嬪�� @@ -1089,7 +1100,7 @@ new Date(item.saleMethod.find((citem) => citem.SaleType == 'Normal').BeginDate).getTime() <= new Date().getTime() ) || (flags && cloundSaleMethod.Price == 0) // 鍒ゆ柇浜戝涔犲叏閮ㄨ喘涔版寜閽槸鍚︽樉绀� - let isShowBuyCloundMenu = flags && cloundSaleMethod.Price >= 0 && !this.data.buyIdList.includes(cloundSaleMethod.Id) + let isShowBuyCloundMenu = flags && cloundSaleMethod.Price > 0 && !this.data.buyIdList.includes(cloundSaleMethod.Id) // 鍒ゆ柇璧勬簮璐拱鎸夐挳鏄惁鏄剧ず let isShowBuyCloundBtn = !flags && res.datas.cmsDatas[0].datas.some(citem => citem.saleMethod.length != 0) // 鍒ゆ柇璐墿杞︽寜閽拰閿佹寜閽槸鍚︽樉绀� @@ -1102,7 +1113,7 @@ isshowDrawBtn, isShowBuyCloundMenu, isShowBuyCloundBtn, - isCloundHaveSaleMethod: flags, + isCloundHaveSaleMethod: flags && cloundSaleMethod.Price > 0, learn: list, loading: false, openLearnids: result, @@ -1661,7 +1672,7 @@ (item) => item == saleData.Id ); // 宸茬粡璐拱 - if (isShow) return false + if (isShow || saleData.Price == 0) return false // 鏈喘涔帮紝鏌ョ湅閿�鍞柟寮忔槸鍚﹁繃鏈� if (!isShow) { const flag = new Date(saleData.EndDate).getTime() >= new Date().getTime() && -- Gitblit v1.9.1