Commit 2552da6b0114b4c41c97812c152688aaf5157cc6
1 parent
7657fdb5
1. 总金额的显示。
Showing
1 changed file
with
2 additions
and
3 deletions
pages/cart/cart2/cart2.js
@@ -958,12 +958,11 @@ Page({ | @@ -958,12 +958,11 @@ Page({ | ||
958 | for(var j=0;j<item.length;j++){ | 958 | for(var j=0;j<item.length;j++){ |
959 | o_price += item[j].goods_price * item[j].goods_num; | 959 | o_price += item[j].goods_price * item[j].goods_num; |
960 | } | 960 | } |
961 | - | 961 | + |
962 | + var f_o_price=o_price; | ||
962 | //如果又优惠的钱,就要减价 | 963 | //如果又优惠的钱,就要减价 |
963 | if(c_arr[i].cut_price>0) o_price-=c_arr[i].cut_price; | 964 | if(c_arr[i].cut_price>0) o_price-=c_arr[i].cut_price; |
964 | 965 | ||
965 | - var f_o_price=o_price; | ||
966 | - | ||
967 | //判断包邮券的钱 | 966 | //判断包邮券的钱 |
968 | var q_conditin=0; | 967 | var q_conditin=0; |
969 | q_conditin=o_price; | 968 | q_conditin=o_price; |