From 6305460f707e6e49137f101403de06f92da1042b Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期三, 13 十一月 2024 15:18:05 +0800 Subject: [PATCH] 支付价格,ziy --- pages/cart/paymentPage/index.js | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/pages/cart/paymentPage/index.js b/pages/cart/paymentPage/index.js index 14d62f8..21f05fd 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,7 +173,6 @@ } else { item.typeTxt = '鐢靛瓙涔�' item.productType = "鍥句功鏈嶅姟-鐢靛瓙涔�" - if (item.orderSaleMethod.type == 'createProductItemSaleMethod') { item.typeTxt = '浜戝涔�' item.productType = "鍥句功鏈嶅姟-浜戝涔�" -- Gitblit v1.9.1