feat: present miniapp order details with formatted amounts
This commit is contained in:
@@ -1,25 +1,25 @@
|
||||
<view class="page" wx:if="{{order}}">
|
||||
<view class="card">
|
||||
<view class="section-title">{{order.orderNo}}</view>
|
||||
<view class="tag">{{order.status}}</view>
|
||||
<view class="tag">{{order.statusText}}</view>
|
||||
<view class="muted">类型:{{type}}</view>
|
||||
</view>
|
||||
<view class="card">
|
||||
<view wx:if="{{type === 'goods'}}">
|
||||
<view>商品金额:¥{{order.totalAmountCent / 100}}</view>
|
||||
<view>配送费:¥{{order.deliveryFeeCent / 100}}</view>
|
||||
<view class="price">应收:¥{{order.payableAmountCent / 100}}</view>
|
||||
<view>商品金额:{{order.totalAmountText}}</view>
|
||||
<view>配送费:{{order.deliveryFeeText}}</view>
|
||||
<view class="price">应收:{{order.payableAmountText}}</view>
|
||||
<view class="muted">{{order.deliveryMethod}}</view>
|
||||
</view>
|
||||
<view wx:if="{{type === 'express'}}">
|
||||
<view>{{order.expressCompany}} / {{order.pickupCode}}</view>
|
||||
<view class="muted">{{order.pickupAddress}}</view>
|
||||
<view class="price">服务费:¥{{order.feeCent / 100}}</view>
|
||||
<view class="price">服务费:{{order.feeText}}</view>
|
||||
</view>
|
||||
<view wx:if="{{type === 'group'}}">
|
||||
<view>{{order.groupBuyTitle}}</view>
|
||||
<view>数量:{{order.quantity}}</view>
|
||||
<view class="price">金额:¥{{order.amountCent / 100}}</view>
|
||||
<view class="price">金额:{{order.amountText}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="button-row">
|
||||
|
||||
Reference in New Issue
Block a user