Commit 53deb3470f1bfee8c7f7ebc01d9199f5b2033ba8
1 parent
a94019ee
把线下取价提前
Showing
1 changed file
with
5 additions
and
5 deletions
packageE/pages/cart/cart2/cart2.js
@@ -3040,6 +3040,11 @@ Page({ | @@ -3040,6 +3040,11 @@ Page({ | ||
3040 | th.data.lon=0; | 3040 | th.data.lon=0; |
3041 | th.data.lat=0; | 3041 | th.data.lat=0; |
3042 | 3042 | ||
3043 | + //如果有线下取价的时候 | ||
3044 | + if (good.is_offline) { | ||
3045 | + allpice = good.offline_price * good.buynum; | ||
3046 | + } | ||
3047 | + | ||
3043 | if (good.prom_type == 3 && good.prom_price !== null) { | 3048 | if (good.prom_type == 3 && good.prom_price !== null) { |
3044 | cut_price = allpice - good.prom_price; | 3049 | cut_price = allpice - good.prom_price; |
3045 | } | 3050 | } |
@@ -3052,11 +3057,6 @@ Page({ | @@ -3052,11 +3057,6 @@ Page({ | ||
3052 | th.setData({ [c_txt]: cut_price, }); | 3057 | th.setData({ [c_txt]: cut_price, }); |
3053 | } | 3058 | } |
3054 | 3059 | ||
3055 | - //如果有线下取价的时候 | ||
3056 | - if (good.is_offline) { | ||
3057 | - allpice = good.offline_price * good.buynum; | ||
3058 | - } | ||
3059 | - | ||
3060 | //to.getwuliuprice(async function (rs) { | 3060 | //to.getwuliuprice(async function (rs) { |
3061 | 3061 | ||
3062 | var o_shipping_price = 0, goods_weight = -1, goods_piece = -1; | 3062 | var o_shipping_price = 0, goods_weight = -1, goods_piece = -1; |