From 2ee8ddb1ecac7df4198e54e08ec7f22daf4b07c0 Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期五, 03 一月 2025 16:57:38 +0800 Subject: [PATCH] 111 --- pages/cart/paymentPage/index.js | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/pages/cart/paymentPage/index.js b/pages/cart/paymentPage/index.js index 14d62f8..8a28a08 100644 --- a/pages/cart/paymentPage/index.js +++ b/pages/cart/paymentPage/index.js @@ -158,10 +158,12 @@ if (Number(this.data.payPrice) < Number(this.data.price)) { this.handleChange() } + console.log(res, "res") res.saleMethodLinks.forEach(item => { const type = item.orderSaleMethod.type == 'createProductItemSaleMethod' ? 'item' : 'product'; item.type = type; // 灏唗ype璁剧疆涓篿tem瀵硅薄鐨勫睘鎬э紝鑰屼笉鏄娇鐢╯etData item.paymentIcon = getPublicImage(item.orderSaleMethod.product.icon) + item.price = item.orderSaleMethod.price.toFixed(2) if (item.orderSaleMethod.product.cmsTypeRefCode == 'jsek_digitalTextbooks') { item.typeTxt = '鏁板瓧鏁欐潗' item.productType = "鏁板瓧鏁欐潗" @@ -171,11 +173,14 @@ } else { item.typeTxt = '鐢靛瓙涔�' item.productType = "鍥句功鏈嶅姟-鐢靛瓙涔�" - if (item.orderSaleMethod.type == 'createProductItemSaleMethod') { item.typeTxt = '浜戝涔�' item.productType = "鍥句功鏈嶅姟-浜戝涔�" } + if (item.orderSaleMethod.cmsItemList.length && item.orderSaleMethod.cmsItemList[0].type == "questionBankFolder") { + item.typeTxt = '棰樺簱' + item.productType = "鍥句功鏈嶅姟-浜戞祴璇�" + } } }) this.setData({ -- Gitblit v1.9.1