Files
code-bang/frontend/miniapp/pages/order/order-detail/index.wxml
T
2026-09-22 11:16:56 +08:00

104 lines
4.6 KiB
Plaintext

<t-pull-down-refresh id="t-pull-down-refresh" bindrefresh="onPullDownRefresh_" t-class-indicator="t-class-indicator">
<!-- 页面内容 -->
<view class="order-detail">
<!-- 店铺及商品 -->
<order-card order="{{_order}}">
<order-goods-card wx:for="{{_order.goodsList}}" wx:key="id" wx:for-item="goods" wx:for-index="gIndex" goods="{{goods}}" no-top-line="{{gIndex === 0}}" bindtap="onGoodsCardTap" data-index="{{gIndex}}">
<order-button-bar slot="append-card" class="goods-button-bar" order="{{_order}}" bindrefresh="onRefresh" goodsIndex="{{gIndex}}" />
</order-goods-card>
<view class="pay-detail">
<view class="pay-item">
<text>商品总额</text>
<price fill decimalSmaller wr-class="pay-item__right font-bold" price="{{order.totalAmount || '0'}}" />
</view>
<view class="pay-item">
<text>活动优惠</text>
<view class="pay-item__right primary font-bold">
-
<price fill price="{{order.discountAmount || 0}}" />
</view>
</view>
<view class="pay-item">
<text>优惠券</text>
<view class="pay-item__right" catchtap="onOpenCoupons">
<block wx:if="{{order.couponAmount}}">
-
<price fill decimalSmaller price="{{order.couponAmount}}" />
</block>
<text wx:else>无可用</text>
<!-- <t-icon name="chevron-right" size="32rpx" color="#BBBBBB" /> -->
</view>
</view>
<view class="pay-item">
<text>{{isPaid ? '实付' : '应付'}}</text>
<price fill decimalSmaller wr-class="pay-item__right font-bold primary max-size" price="{{order.paymentAmount || '0'}}" />
</view>
</view>
</order-card>
<view class="pay-detail padding-inline">
<view class="pay-item">
<text>订单编号</text>
<view class="pay-item__right" bindtap="onOrderNumCopy">
<text class="order-no">{{order.orderNo}}</text>
<view class="pay-item__right__copy">复制</view>
</view>
</view>
<view class="pay-item">
<text>下单时间</text>
<view class="pay-item__right">
<text class="order-no normal-color">{{formatCreateTime}}</text>
</view>
</view>
<view class="border-bottom border-bottom-margin" />
<!-- <view class="pay-item">
<text>发票</text>
<view class="pay-item__right" bindtap="onOrderInvoiceView">
<text class="order-no normal-color">{{invoiceType}}</text>
<view class="pay-item__right__copy">查看</view>
</view>
</view> -->
<block wx:if="{{order.orderShip}}">
<view class="pay-item">
<text>下载地址</text>
<view class="pay-item__right">
<text class="order-no normal-color">{{order.orderGoods[0].goodsInfo.downloadFileBasename}}</text>
<view class="pay-item__right__copy" data-text="{{order.orderGoods[0].goodsInfo.downloadFile}}" bind:tap="copyText">复制</view>
</view>
</view>
<view class="border-bottom border-bottom-margin" />
<view class="pay-item">
<text>激活码</text>
<view class="pay-item__right">
<text class="order-no normal-color">{{order.orderShip.code}}</text>
<view class="pay-item__right__copy" data-text="{{order.orderShip.code}}" bind:tap="copyText">复制</view>
</view>
</view>
<view class="border-bottom border-bottom-margin" />
<view class="pay-item">
<text>使用说明</text>
<view class="pay-item__right">
<text class="order-no normal-color">{{order.orderShip.remark || '-'}}</text>
</view>
</view>
<view class="border-bottom border-bottom-margin" />
</block>
<view class="pay-item">
<text>备注</text>
<view class="pay-item__right">
<text class="order-no normal-color">{{order.remark || '-'}}</text>
</view>
</view>
<view class="border-bottom border-bottom-margin" />
<view class="pay-service" wx:if="{{storeDetail && storeDetail.storeTel}}" catch:tap="clickService">
<button open-type="contact" bindcontact="" plain class="contact-button">
<t-icon name="service" size="40rpx" style="margin-right: 8rpx;" />联系客服
</button>
</view>
</view>
</view>
<view wx:if="{{_order.buttons.length > 0}}" class="bottom-bar">
<order-button-bar order="{{_order}}" bindrefresh="onRefresh" isBtnMax />
</view>
</t-pull-down-refresh>
<t-toast id="t-toast" />
<t-dialog id="t-dialog" />