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,6 +316,7 @@ Page({ | ||
| 316 | 316 | ||
| 317 | //--------立即支付---------- | 317 | //--------立即支付---------- |
| 318 | async jumpToCart4(e) { | 318 | async jumpToCart4(e) { |
| 319 | + var th=this; | ||
| 319 | 320 | ||
| 320 | // 幸运购检查库存量 api/weshop/activitylist/getActLen/{store_id}/{prom_type}/{prom_id} | 321 | // 幸运购检查库存量 api/weshop/activitylist/getActLen/{store_id}/{prom_type}/{prom_id} |
| 321 | if (parseInt(this.data.order.order_goods['0']['prom_type']) == 9) { | 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,11 +290,19 @@ Page({ | ||
| 290 | teamgroup = null, | 290 | teamgroup = null, |
| 291 | teamlist=null, | 291 | teamlist=null, |
| 292 | th = this; | 292 | th = this; |
| 293 | + | ||
| 294 | + let ord_m=null; | ||
| 293 | //---获取订单--- | 295 | //---获取订单--- |
| 294 | await getApp().request.promiseGet("/api/weshop/order/get/" + oo.stoid + "/" + ord, {}).then(res => { | 296 | await getApp().request.promiseGet("/api/weshop/order/get/" + oo.stoid + "/" + ord, {}).then(res => { |
| 295 | order = res.data.data; | 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 | await getApp().request.promiseGet("/api/weshop/ordergoods/page", { | 307 | await getApp().request.promiseGet("/api/weshop/ordergoods/page", { |
| 300 | data: { | 308 | data: { |
| @@ -368,6 +376,10 @@ Page({ | @@ -368,6 +376,10 @@ Page({ | ||
| 368 | 376 | ||
| 369 | var tail_money = (price * order_goods.goods_num - order['order_amount'] - order['user_money']).toFixed(2); | 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 | tail_money = parseFloat(tail_money); | 383 | tail_money = parseFloat(tail_money); |
| 372 | order.tail_money = tail_money; | 384 | order.tail_money = tail_money; |
| 373 | 385 |
packageG/pages/user/order_detail/order_detail.wxml
| @@ -103,7 +103,7 @@ | @@ -103,7 +103,7 @@ | ||
| 103 | 103 | ||
| 104 | <view class="item pnew" wx:if="{{order.is_zsorder==4}}"> | 104 | <view class="item pnew" wx:if="{{order.is_zsorder==4}}"> |
| 105 | <view>定金金额</view> | 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 | </view> | 107 | </view> |
| 108 | <view class="item pnew" wx:if="{{order.pt_tail_money>0}}"> | 108 | <view class="item pnew" wx:if="{{order.pt_tail_money>0}}"> |
| 109 | <view>尾款金额</view> | 109 | <view>尾款金额</view> |
pages/user/order_list/order_list.wxml
| @@ -224,7 +224,7 @@ | @@ -224,7 +224,7 @@ | ||
| 224 | <view wx:if="{{item.is_zsorder==4}}" class="commodity_money flex baseline"> | 224 | <view wx:if="{{item.is_zsorder==4}}" class="commodity_money flex baseline"> |
| 225 | <view>定金<text wx:if="{{item.discount!=underdefine && item.discount!=null && item.discount!=0}}" style="color:#d60021;">(改)</text>:</view> | 225 | <view>定金<text wx:if="{{item.discount!=underdefine && item.discount!=null && item.discount!=0}}" style="color:#d60021;">(改)</text>:</view> |
| 226 | <view class="fs24 c-r">¥</view> | 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 | </view> | 228 | </view> |
| 229 | </view> | 229 | </view> |
| 230 | <view class="commodity_money flex baseline" wx:else> | 230 | <view class="commodity_money flex baseline" wx:else> |
| @@ -239,7 +239,7 @@ | @@ -239,7 +239,7 @@ | ||
| 239 | <view wx:if="{{item.pt_tail_money>0}}" class="commodity_money flex baseline"> | 239 | <view wx:if="{{item.pt_tail_money>0}}" class="commodity_money flex baseline"> |
| 240 | <view>待支付尾款:</view> | 240 | <view>待支付尾款:</view> |
| 241 | <view class="fs24 c-r">¥</view> | 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 | </view> | 243 | </view> |
| 244 | </view> | 244 | </view> |
| 245 | 245 |