Commit e56e155e authored by Junling Bu's avatar Junling Bu
Browse files

fix[litemall-wx, litemall-wx-api]: 显示物流公司和物流单号

parent 3cf1e4a7
......@@ -203,6 +203,7 @@ public class WxOrderService {
orderVo.put("orderStatusText", OrderUtil.orderStatusText(order));
orderVo.put("handleOption", OrderUtil.build(order));
orderVo.put("expCode", order.getShipChannel());
orderVo.put("expName", expressService.getVendorName(order.getShipChannel()));
orderVo.put("expNo", order.getShipSn());
List<LitemallOrderGoods> orderGoodsList = orderGoodsService.queryByOid(order.getId());
......@@ -215,7 +216,15 @@ public class WxOrderService {
//"YTO", "800669400640887922"
if (order.getOrderStatus().equals(OrderUtil.STATUS_SHIP)) {
ExpressInfo ei = expressService.getExpressInfo(order.getShipChannel(), order.getShipSn());
result.put("expressInfo", ei);
if(ei == null){
result.put("expressInfo", new ArrayList<>());
}
else {
result.put("expressInfo", ei);
}
}
else{
result.put("expressInfo", new ArrayList<>());
}
return ResponseUtil.ok(result);
......
......@@ -73,12 +73,11 @@
</view>
</view>
<!-- 物流信息,仅收货状态下可见 -->
<view class="order-express" bindtap="expandDetail" wx:if="{{ handleOption.confirm }}">
<view class="order-express" bindtap="expandDetail" wx:if="{{ orderInfo.expNo }}">
<view class="order-express">
<view class="title">
<view class="t">快递公司:{{expressInfo.shipperName}}</view>
<view class="b">物流单号:{{expressInfo.logisticCode}}</view>
<view class="t">快递公司:{{orderInfo.expName}}</view>
<view class="b">物流单号:{{orderInfo.expNo}}</view>
</view>
<image class="ti" src="/static/images/address_right.png" background-size="cover"></image>
</view>
......
......@@ -73,12 +73,11 @@
</view>
</view>
<!-- 物流信息,仅收货状态下可见 -->
<view class="order-express" bindtap="expandDetail" wx:if="{{ handleOption.confirm }}">
<view class="order-express" bindtap="expandDetail" wx:if="{{ orderInfo.expNo}}">
<view class="expand">
<view class="title">
<view class="t">快递公司:{{expressInfo.shipperName}}</view>
<view class="b">物流单号:{{expressInfo.logisticCode}}</view>
<view class="t">快递公司:{{orderInfo.expName}}</view>
<view class="b">物流单号:{{orderInfo.expNo}}</view>
</view>
<image class="ti" src="/static/images/address_right.png" background-size="cover"></image>
</view>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment