From 23f872505d56a06183f55964f40ee697817e1858 Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期三, 23 七月 2025 15:24:22 +0800 Subject: [PATCH] 修改提示词、修改扫码icon颜色 --- packageDomain/pages/resourceDetails/document/index.js | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packageDomain/pages/resourceDetails/document/index.js b/packageDomain/pages/resourceDetails/document/index.js index ae51bb6..9f1643a 100644 --- a/packageDomain/pages/resourceDetails/document/index.js +++ b/packageDomain/pages/resourceDetails/document/index.js @@ -86,6 +86,7 @@ applyState: options.applyState, deadline: options.deadline, formPath: options.formPath, + source: options.source, }) if (options.formPath == 'jsek_cloudLearning') { this.setData({ @@ -232,7 +233,8 @@ if (this.data.storeInfo) query['storeInfo'] = this.data.storeInfo app.MG.store.getProductDetail(query).then(async (res) => { this.setData({ - bookDetail: res.datas + bookDetail: res.datas, + bookName: res.datas.name, }) this.resourceDetailsData(); }); @@ -284,12 +286,13 @@ if (data) return data; }) let isBuy = 1; + // ###杩欓噷鐨勯�昏緫鏄粠鏈�瀛愬眰寮�濮嬪垽鏂紝鏈�瀛愬眰鐨剆alemethod浼樺厛绾ф渶楂橈紝濡傛灉灏嗕簯瀛︿範鐨剆alemethod浼樺厛绾ц涓烘渶楂橈紝闇�瑕佸湪鍒ゆ柇鍓嶏紝灏哾ataList涓殑浜戝涔犻�氳繃refcode婊ゅ嚭锛屽厛鍒ゆ柇浜戝涔狅紝鍐嶅垽鏂悗缁殑浠g爜 for (let i = 0; i < dataList.length; i++) { const dataItem = dataList[i]; if (dataItem) { if (dataItem.saleMethod.length > 0) { isBuy = 2; - if (this.data.bookDetail.purchasedSaleMethodIdList.indexOf(dataItem.saleMethod[0].Id) > -1) { + if (this.data.bookDetail.purchasedSaleMethodIdList.indexOf(dataItem.saleMethod[0].Id) > -1 || dataItem.saleMethod[0].Price == 0) { isBuy = 3; break; } else { @@ -306,7 +309,7 @@ wx.hideLoading(); wx.showModal({ title: '娓╅Θ鎻愮ず', - content: '璇ヨ祫婧愭湭璐拱锛屽皢杩斿洖璐拱', + content: '璇ヨ祫婧愭湭婵�娲绘垨璐拱锛屽嵆灏嗚繑鍥炲浘涔﹁鎯呴〉闈�', success: (res) => { if (res.confirm) { if (this.data.source == 'qrcode') { -- Gitblit v1.9.1