Commit d9404859 by liimin

refactor(order): 优化订单详情页面布局和内容

- 移除了 afterSaleDetail 页面中的快递公司选择器
- 在 detail 页面中添加了 TitleBox 组件
- 新增了订单信息展示区域
- 删除了订单商品列表下方的优惠信息展示
1 parent 544e6f6c
...@@ -9,5 +9,4 @@ ...@@ -9,5 +9,4 @@
<!-- 重新提交按钮组件 --> <!-- 重新提交按钮组件 -->
<re-submit-button wx:if="{{orderInfo.refundStatus >5}}" bindresubmit="confirm"></re-submit-button> <re-submit-button wx:if="{{orderInfo.refundStatus >5}}" bindresubmit="confirm"></re-submit-button>
</view> </view>
<mp-actionSheet bindactiontap="selectExpress" show="{{isShowExpressSelector}}" actions="{{expressList}}" title="选择快递公司"></mp-actionSheet>
</block> </block>
\ No newline at end of file \ No newline at end of file
// packageMine/pages/order/index/components/bottom/bottom.js
Component({
properties: {
title: {
type: String,
value: "",
},
},
});
{
"component": true,
"style": "v2",
"usingComponents": {
"BlockBox": "../BlockBox/BlockBox"
}
}
\ No newline at end of file \ No newline at end of file
<BlockBox>
<view>
<view class="box-title">{{title}}</view>
<slot></slot>
</view>
</BlockBox>
\ No newline at end of file \ No newline at end of file
.box-title{
color: #1B233D;
font-size: 32rpx;
font-weight: 500;
margin-bottom: 24rpx;
}
\ No newline at end of file \ No newline at end of file
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
"navigationBarTitleText": "订单详情", "navigationBarTitleText": "订单详情",
"usingComponents": { "usingComponents": {
"Status":"../components/Status/Status", "Status":"../components/Status/Status",
"BlockBox": "../components/BlockBox/BlockBox" "BlockBox": "../components/BlockBox/BlockBox",
"TitleBox":"../components/TitleBox/TitleBox"
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -38,6 +38,21 @@ ...@@ -38,6 +38,21 @@
</view> </view>
</block> </block>
</view> </view>
<TitleBox title="订单信息" >
<view class="box">
<block wx:for="{{orderObj}}" wx:key="index">
<view class="item {{item.alignItems}}">
<view class="label">{{item.label}}:</view>
<view class="value">
<block wx:if="{{item.enum}}">
{{statusEnum[orderInfo[item.key]]|| ''}}
</block>
<block wx:else>{{orderInfo[item.key] || ''}}</block>
</view>
</view>
</block>
</view>
</TitleBox>
<view class=" box"> <view class=" box">
<view class="title">订单商品</view> <view class="title">订单商品</view>
<view class="merchantName text-hide"> <view class="merchantName text-hide">
...@@ -73,11 +88,6 @@ ...@@ -73,11 +88,6 @@
运费: 运费:
<view class="price"><text class="unit">¥</text>{{orderInfo.expressFee}}</view> <view class="price"><text class="unit">¥</text>{{orderInfo.expressFee}}</view>
</view> </view>
<view class="price-item line discounts" wx:if="{{orderInfo.subOrderCoupon.denomination}}">
优惠:
<view class="selected">已选一张</view>
<view class="price"><text class="unit">¥</text>{{(orderInfo.subOrderCoupon.discountAmount)/100}}</view>
</view>
<view class="price-item"> <view class="price-item">
订单金额: 订单金额:
<view class="price sum"><text class="unit">¥</text>{{orderInfo.payPrice}}</view> <view class="price sum"><text class="unit">¥</text>{{orderInfo.payPrice}}</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!