Commit 727e7243c15a4e6d59bb5bc65bf7cf9208638a9c

Authored by yvan.ni
1 parent 64681b7a

小数点的问题

Showing 1 changed file with 10 additions and 10 deletions
pages/cart/cart2/cart2.js
@@ -2428,11 +2428,11 @@ Page({ @@ -2428,11 +2428,11 @@ Page({
2428 'shipping_code': th.data.bn_exp_type == 1 ? 0 : th.data.wu_arr[th.data.index].code, 2428 'shipping_code': th.data.bn_exp_type == 1 ? 0 : th.data.wu_arr[th.data.index].code,
2429 'shipping_name': th.data.bn_exp_type == 1 ? '' : th.data.wu_arr[th.data.index].name, 2429 'shipping_name': th.data.bn_exp_type == 1 ? '' : th.data.wu_arr[th.data.index].name,
2430 'invoice_title': '', 2430 'invoice_title': '',
2431 - 'goods_price': th.data.formData.all_price, //商品总价  
2432 - 'shipping_price': th.data.formData.shipping_price, //物流金额  
2433 - 'user_money': th.data.formData.user_money, //使用余额  
2434 - 'total_amount': th.data.formData.total_amount, //订单总价  
2435 - 'order_amount': th.data.formData.order_amount, //应付 2431 + 'goods_price': parseFloat(th.data.formData.all_price).toFixed(2), //商品总价
  2432 + 'shipping_price': parseFloat(th.data.formData.shipping_price).toFixed(2), //物流金额
  2433 + 'user_money': parseFloat(th.data.formData.user_money).toFixed(2), //使用余额
  2434 + 'total_amount': parseFloat(th.data.formData.total_amount).toFixed(2), //订单总价
  2435 + 'order_amount': parseFloat(th.data.formData.order_amount).toFixed(2), //应付
2436 'user_note': th.data.user_note['0'] ? th.data.user_note['0'] : 0, //用户备注 2436 'user_note': th.data.user_note['0'] ? th.data.user_note['0'] : 0, //用户备注
2437 'store_id': oo.stoid, //商家 2437 'store_id': oo.stoid, //商家
2438 'pickup_id': th.data.bn_pick, //门店 2438 'pickup_id': th.data.bn_pick, //门店
@@ -2687,11 +2687,11 @@ Page({ @@ -2687,11 +2687,11 @@ Page({
2687 'shipping_code': th.data.is_all_zt == 1 ? 0 : th.data.wu_arr[t_item.wind].code, 2687 'shipping_code': th.data.is_all_zt == 1 ? 0 : th.data.wu_arr[t_item.wind].code,
2688 'shipping_name': th.data.is_all_zt == 1 ? '' : th.data.wu_arr[t_item.wind].name, 2688 'shipping_name': th.data.is_all_zt == 1 ? '' : th.data.wu_arr[t_item.wind].name,
2689 'invoice_title': '', 2689 'invoice_title': '',
2690 - 'goods_price': t_item.goods_price, //商品总价  
2691 - 'shipping_price': t_item.shipping_price, //物流金额  
2692 - 'user_money': t_item.user_money, //使用余额  
2693 - 'total_amount': t_item.total_amount, //订单总价  
2694 - 'order_amount': t_item.order_amount, //应付 2690 + 'goods_price': parseFloat(t_item.goods_price).toFixed(2), //商品总价
  2691 + 'shipping_price': parseFloat(t_item.shipping_price).toFixed(2), //物流金额
  2692 + 'user_money': parseFloat(t_item.user_money).toFixed(2), //使用余额
  2693 + 'total_amount': parseFloat(t_item.total_amount).toFixed(2), //订单总价
  2694 + 'order_amount': parseFloat(t_item.order_amount).toFixed(2), //应付
2695 'user_note': val_arr[i], //用户备注 2695 'user_note': val_arr[i], //用户备注
2696 'store_id': oo.stoid, //商家 2696 'store_id': oo.stoid, //商家
2697 'pickup_id': t_item.pickup_id, //门店 2697 'pickup_id': t_item.pickup_id, //门店