Files
LinHelp/miniapp/miniprogram/pages/orders/detail.wxml
2026-07-07 16:38:13 +08:00

30 lines
1.2 KiB
Plaintext

<view class="page" wx:if="{{order}}">
<view class="card">
<view class="section-title">{{order.orderNo}}</view>
<view class="tag">{{order.status}}</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 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>
<view wx:if="{{type === 'group'}}">
<view>{{order.groupBuyTitle}}</view>
<view>数量:{{order.quantity}}</view>
<view class="price">金额:¥{{order.amountCent / 100}}</view>
</view>
</view>
<view class="button-row">
<button class="ghost" bindtap="cancel">取消订单</button>
<button wx:if="{{type === 'express'}}" class="primary" bindtap="completeExpress">确认完成</button>
</view>
</view>