diff --git a/pages/cart/cart2/cart2.js b/pages/cart/cart2/cart2.js index 565c793..6cf052b 100644 --- a/pages/cart/cart2/cart2.js +++ b/pages/cart/cart2/cart2.js @@ -2428,11 +2428,11 @@ Page({ 'shipping_code': th.data.bn_exp_type == 1 ? 0 : th.data.wu_arr[th.data.index].code, 'shipping_name': th.data.bn_exp_type == 1 ? '' : th.data.wu_arr[th.data.index].name, 'invoice_title': '', - 'goods_price': th.data.formData.all_price, //商品总价 - 'shipping_price': th.data.formData.shipping_price, //物流金额 - 'user_money': th.data.formData.user_money, //使用余额 - 'total_amount': th.data.formData.total_amount, //订单总价 - 'order_amount': th.data.formData.order_amount, //应付 + 'goods_price': parseFloat(th.data.formData.all_price).toFixed(2), //商品总价 + 'shipping_price': parseFloat(th.data.formData.shipping_price).toFixed(2), //物流金额 + 'user_money': parseFloat(th.data.formData.user_money).toFixed(2), //使用余额 + 'total_amount': parseFloat(th.data.formData.total_amount).toFixed(2), //订单总价 + 'order_amount': parseFloat(th.data.formData.order_amount).toFixed(2), //应付 'user_note': th.data.user_note['0'] ? th.data.user_note['0'] : 0, //用户备注 'store_id': oo.stoid, //商家 'pickup_id': th.data.bn_pick, //门店 @@ -2687,11 +2687,11 @@ Page({ 'shipping_code': th.data.is_all_zt == 1 ? 0 : th.data.wu_arr[t_item.wind].code, 'shipping_name': th.data.is_all_zt == 1 ? '' : th.data.wu_arr[t_item.wind].name, 'invoice_title': '', - 'goods_price': t_item.goods_price, //商品总价 - 'shipping_price': t_item.shipping_price, //物流金额 - 'user_money': t_item.user_money, //使用余额 - 'total_amount': t_item.total_amount, //订单总价 - 'order_amount': t_item.order_amount, //应付 + 'goods_price': parseFloat(t_item.goods_price).toFixed(2), //商品总价 + 'shipping_price': parseFloat(t_item.shipping_price).toFixed(2), //物流金额 + 'user_money': parseFloat(t_item.user_money).toFixed(2), //使用余额 + 'total_amount': parseFloat(t_item.total_amount).toFixed(2), //订单总价 + 'order_amount': parseFloat(t_item.order_amount).toFixed(2), //应付 'user_note': val_arr[i], //用户备注 'store_id': oo.stoid, //商家 'pickup_id': t_item.pickup_id, //门店