detail.wxml
2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<import src="./template/reason/reason.wxml"/>
<view wx:if="{{pageLoaded}}" class="container">
<view wx:if="{{attribute == 3}}" class="reciever-moble">
手机号码:<text class="right">{{mobile}}</text>
</view>
<view wx:else class="address-wrap">
<address-card address="{{receiveAddress}}"></address-card>
</view>
<view class="order-info">
<view>订单编号:{{orderCode}}</view>
<view class="gray">订单状态:{{orderStatus}}</view>
<view class="gray">下单时间:<b class="createTime">{{createTime}}</b></view>
</view>
<view class="goods-list">
<order-item wx:for="{{goodsList}}" wx:key="unique" item="{{item}}" index="{{index}}"></order-item>
</view>
<view class="payment-wrap">
<view wx:for="{{promotionList}}" wx:key="unique" class="payment-cell">
<text class="name">{{item.promotion}}</text>
<text class="price">{{item.promotion_amount}}</text>
</view>
<view class="payment-cell">
<text class="name">实付金额</text>
<text class="price red">¥{{paymentAmount}}</text>
</view>
</view>
<view class="bottom-options">
<view wx:if="{{payLeftTime}}" class="time-left">
<text class="iconfont icon-time-fill"></text>
<text>剩余 {{payLeftTime}}</text>
</view>
<view class="right-block">
<view wx:if="{{attribute == 9}}" class="only-app-tips">*此订单只能在APP端操作</view>
<form bindsubmit="submitFormId" report-submit='true'>
<block wx:for="{{links}}" wx:for-item="link" wx:key="unique">
<button wx:if="{{link === 'closeOrder'}}" formType="submit" class="option-btn" catchtap="cancelOrder">取消订单</button>
<view wx:if="{{link === 'buyNow'}}" class="option-btn red-btn" catchtap="payNow">立即付款</view>
<view wx:if="{{link === 'delOrder'}}" class="option-btn" catchtap="deleteOrder">删除订单</view>
<view wx:if="{{link === 'getExpress'}}" class="option-btn" catchtap="viewExpress">查看物流</view>
<button wx:if="{{link === 'confirm'}}" formType="submit" class="option-btn red-btn" catchtap="confirmOrder">确认收货</button>
<button wx:if="{{link === 'refundApply'}}" formType="submit" class="option-btn" catchtap="refundOrder">申请退款</button>
</block>
</form>
</view>
</view>
<template is="reason" data="{{reason, showReason}}"></template>
</view>