Browse Source

分批发货

master
jiazhipeng 9 months ago
parent
commit
cb2e9e7292
  1. 4
      pages/order/orderList/index.js
  2. 6
      pages/order/orderList/index.wxml

4
pages/order/orderList/index.js

@ -52,8 +52,8 @@ Page({
}
if (!app.globalData.kjId && !this.data.gp_id) {
price = price + item.sku.price * item.productNum;
postFee += item.postFee
price = price + item.sku.price * item.productNum ;
postFee += item.sku.batch_shipment?item.postFee*(item.sku.batch_count || 0):item.postFee;
}
else if (this.data.gp_id) {
price = price + item.sku.event_price * item.productNum;

6
pages/order/orderList/index.wxml

@ -11,7 +11,13 @@
</view>
<view class="item-box">
<view>运费</view>
<view style="display: flex;text-align: right;">
<view class="price">¥{{item.postFee/100 || 0}}</view>
<view wx:if="{{item.postFee>0 && item.sku.batch_shipment==1}}">
<text style="padding-left: 10rpx;">x{{item.sku.batch_count}}</text>
<text style="padding-left: 40rpx;">¥{{(item.postFee/100)*item.sku.batch_count}}</text>
</view>
</view>
</view>
<view wx:if="{{item.sku.is_batch_shipment==1}}">
<view class="item-box item-title">物流信息</view>

Loading…
Cancel
Save