Commit 584111f340f584957fa6a015933f139f817afbb5
Merge branch 'test' of http://git.vipzhuang.cn/wxd/MShopWeApp into qa
Showing
4 changed files
with
16 additions
and
3 deletions
packageC/pages/luckyGo/luckyGo_order/luckyGo_order.js
| ... | ... | @@ -316,6 +316,7 @@ Page({ |
| 316 | 316 | |
| 317 | 317 | //--------立即支付---------- |
| 318 | 318 | async jumpToCart4(e) { |
| 319 | + var th=this; | |
| 319 | 320 | |
| 320 | 321 | // 幸运购检查库存量 api/weshop/activitylist/getActLen/{store_id}/{prom_type}/{prom_id} |
| 321 | 322 | if (parseInt(this.data.order.order_goods['0']['prom_type']) == 9) { | ... | ... |
packageE/pages/cart/cart_wk/cart_wk.js
| ... | ... | @@ -290,11 +290,19 @@ Page({ |
| 290 | 290 | teamgroup = null, |
| 291 | 291 | teamlist=null, |
| 292 | 292 | th = this; |
| 293 | + | |
| 294 | + let ord_m=null; | |
| 293 | 295 | //---获取订单--- |
| 294 | 296 | await getApp().request.promiseGet("/api/weshop/order/get/" + oo.stoid + "/" + ord, {}).then(res => { |
| 295 | 297 | order = res.data.data; |
| 296 | 298 | }); |
| 297 | 299 | |
| 300 | + //-- 如果有数据的话 -- | |
| 301 | + let od_m=await getApp().request.promiseGet("/api/weshop/orderMore/get/" + os.stoid + "/" + order.order_sn, {}) | |
| 302 | + if(od_m && od_m.data.code==0 && od_m.data.data){ | |
| 303 | + ord_m=od_m.data.data; | |
| 304 | + } | |
| 305 | + | |
| 298 | 306 | //---获取订单从表--- |
| 299 | 307 | await getApp().request.promiseGet("/api/weshop/ordergoods/page", { |
| 300 | 308 | data: { |
| ... | ... | @@ -368,6 +376,10 @@ Page({ |
| 368 | 376 | |
| 369 | 377 | var tail_money = (price * order_goods.goods_num - order['order_amount'] - order['user_money']).toFixed(2); |
| 370 | 378 | |
| 379 | + if(ord_m && ord_m.pre_cut){ | |
| 380 | + tail_money-=ord_m.pre_cut; | |
| 381 | + } | |
| 382 | + | |
| 371 | 383 | tail_money = parseFloat(tail_money); |
| 372 | 384 | order.tail_money = tail_money; |
| 373 | 385 | ... | ... |
packageG/pages/user/order_detail/order_detail.wxml
| ... | ... | @@ -103,7 +103,7 @@ |
| 103 | 103 | |
| 104 | 104 | <view class="item pnew" wx:if="{{order.is_zsorder==4}}"> |
| 105 | 105 | <view>定金金额</view> |
| 106 | - <view>¥ {{filters.toFix(order.order_amount+order.user_money,2)}}元</view> | |
| 106 | + <view>¥ {{filters.toFix(order.order_amount+order.user_money+order.pre_cut,2)}}元</view> | |
| 107 | 107 | </view> |
| 108 | 108 | <view class="item pnew" wx:if="{{order.pt_tail_money>0}}"> |
| 109 | 109 | <view>尾款金额</view> | ... | ... |
pages/user/order_list/order_list.wxml
| ... | ... | @@ -224,7 +224,7 @@ |
| 224 | 224 | <view wx:if="{{item.is_zsorder==4}}" class="commodity_money flex baseline"> |
| 225 | 225 | <view>定金<text wx:if="{{item.discount!=underdefine && item.discount!=null && item.discount!=0}}" style="color:#d60021;">(改)</text>:</view> |
| 226 | 226 | <view class="fs24 c-r">¥</view> |
| 227 | - <view class="c-r">{{filters.toFix(item.order_amount+item.user_money+item.use_commission,2)}} | |
| 227 | + <view class="c-r">{{filters.toFix(item.order_amount+item.user_money+item.use_commission+item.pre_cut,2)}} | |
| 228 | 228 | </view> |
| 229 | 229 | </view> |
| 230 | 230 | <view class="commodity_money flex baseline" wx:else> |
| ... | ... | @@ -239,7 +239,7 @@ |
| 239 | 239 | <view wx:if="{{item.pt_tail_money>0}}" class="commodity_money flex baseline"> |
| 240 | 240 | <view>待支付尾款:</view> |
| 241 | 241 | <view class="fs24 c-r">¥</view> |
| 242 | - <view class="c-r">{{filters.toFix(item.pt_tail_money+item.use_commission-item.shipping_price,2)}} | |
| 242 | + <view class="c-r">{{filters.toFix(item.pt_tail_money+item.use_commission,2)}} | |
| 243 | 243 | </view> |
| 244 | 244 | </view> |
| 245 | 245 | ... | ... |