Skip to content

Commit f75bf9d

Browse files
committed
feat[litemall-wx, litemall-wx-api]: 显示订单留言
1 parent 285d164 commit f75bf9d

File tree

5 files changed

+9
-26
lines changed

5 files changed

+9
-26
lines changed

litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/service/WxOrderService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ public Object detail(Integer userId, Integer orderId) {
191191
Map<String, Object> orderVo = new HashMap<String, Object>();
192192
orderVo.put("id", order.getId());
193193
orderVo.put("orderSn", order.getOrderSn());
194+
orderVo.put("message", order.getMessage());
194195
orderVo.put("addTime", order.getAddTime());
195196
orderVo.put("consignee", order.getConsignee());
196197
orderVo.put("mobile", order.getMobile());

litemall-wx/pages/ucenter/orderDetail/orderDetail.wxml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<view class="container">
22
<view class="order-info">
3-
<view class="item-a">下单时间:{{orderInfo.addTime}}</view>
4-
<view class="item-b">订单编号:{{orderInfo.orderSn}}</view>
3+
<view class="item">下单时间:{{orderInfo.addTime}}</view>
4+
<view class="item">订单编号:{{orderInfo.orderSn}}</view>
5+
<view class="item">订单留言:{{orderInfo.message}}</view>
56
<view class="item-c">
67
<view class="l">实付:
78
<text class="cost">¥{{orderInfo.actualPrice}}</text>

litemall-wx/pages/ucenter/orderDetail/orderDetail.wxss

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ page {
1111
overflow: hidden;
1212
}
1313

14-
.item-a {
14+
.item {
1515
padding-left: 31.25rpx;
1616
height: 42.5rpx;
1717
padding-bottom: 12.5rpx;
@@ -20,16 +20,6 @@ page {
2020
color: #666;
2121
}
2222

23-
.item-b {
24-
padding-left: 31.25rpx;
25-
height: 29rpx;
26-
line-height: 29rpx;
27-
margin-top: 12.5rpx;
28-
margin-bottom: 41.5rpx;
29-
font-size: 30rpx;
30-
color: #666;
31-
}
32-
3323
.item-c {
3424
margin-left: 31.25rpx;
3525
border-top: 1px solid #f4f4f4;

renard-wx/pages/ucenter/orderDetail/orderDetail.wxml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<view class="container">
22
<view class="order-info">
3-
<view class="item-a">下单时间:{{orderInfo.addTime}}</view>
4-
<view class="item-b">订单编号:{{orderInfo.orderSn}}</view>
3+
<view class="item">下单时间:{{orderInfo.addTime}}</view>
4+
<view class="item">订单编号:{{orderInfo.orderSn}}</view>
5+
<view class="item">订单留言:{{orderInfo.message}}</view>
56
<view class="item-c">
67
<view class="l">实付:
78
<text class="cost">¥{{orderInfo.actualPrice}}</text>

renard-wx/pages/ucenter/orderDetail/orderDetail.wxss

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ page {
1111
overflow: hidden;
1212
}
1313

14-
.item-a {
14+
.item {
1515
padding-left: 31.25rpx;
1616
height: 42.5rpx;
1717
padding-bottom: 12.5rpx;
@@ -20,16 +20,6 @@ page {
2020
color: #666;
2121
}
2222

23-
.item-b {
24-
padding-left: 31.25rpx;
25-
height: 29rpx;
26-
line-height: 29rpx;
27-
margin-top: 12.5rpx;
28-
margin-bottom: 41.5rpx;
29-
font-size: 30rpx;
30-
color: #666;
31-
}
32-
3323
.item-c {
3424
margin-left: 31.25rpx;
3525
border-top: 1px solid #f4f4f4;

0 commit comments

Comments
 (0)