ensure.wxml
3.67 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<wxs src="../../../wxs/helper.wxs" module="helper" />
<view class="container">
<view class="address-wrap">
<address-card address="{{choosedAddress}}" bind:chooseAddress="chooseAddress" bind:addAddressByLocal="enterAddress" bind:addAddressByWechat="chooseWechatAddress"></address-card>
</view>
<view class="split-line"></view>
<view class="goods-list">
<block wx:if="{{goodsList.length}}">
<order-item wx:for="{{goodsList}}" wx:key="unique" item="{{item}}" index="{{index}}"></order-item>
</block>
<order-item wx:else frame="true"></order-item>
</view>
<view class="split-line"></view>
<view class="choose-wrap">
<view class="choose-item delivery-way">
配送方式
<view class="change-btn" bindtap="toggleDeliveryWayList">
<text class="btn-text">{{deliveryWayText}}</text>
<text class="iconfont {{deliveryWayEditStatus ? 'icon-top' : 'icon-bottom'}}"></text>
</view>
</view>
<view wx:if="{{deliveryWayEditStatus}}" class="edit-wrap delivery-way-wrap">
<view wx:for="{{deliveryWayList}}" wx:key="{{index}}" class="edit-item delivery-way-item" data-id="{{item.delivery_way_id}}" data-name="{{item.delivery_way_name}}:运费¥{{item.delivery_way_cost}}" bindtap="changeDeliveryWay">
<text class="left-name">{{item.delivery_way_name}}: 运费¥{{item.delivery_way_cost}}</text>
<text class="iconfont {{item.checked ? 'icon-round-checked' : 'icon-round'}}"></text>
</view>
</view>
<view class="choose-item delivery-time">
送货时间
<view class="change-btn" bindtap="toggleDeliveryTimeList">
<text class="btn-text">{{deliveryTimeText}}</text>
<text class="iconfont {{deliveryTimeEditStatus ? 'icon-top' : 'icon-bottom'}}"></text>
</view>
</view>
<view wx:if="{{deliveryTimeEditStatus}}" class="edit-wrap delivery-way-wrap">
<view wx:for="{{deliveryTimeList}}" wx:key="unique" class="edit-item delivery-way-item" data-id="{{item.delivery_time_id}}" data-name="{{item.delivery_time_string}}" bindtap="changeDeliveryTime">
<text class="left-name">{{item.delivery_time_string}}</text>
<text class="iconfont {{item.checked ? 'icon-round-checked' : 'icon-round'}}"></text>
</view>
</view>
<view class="choose-item invoice">
发票
<switch checked="{{invoiceNeedStatus}}" class="switch" bindchange="toggleInvoiceWrap"/>
</view>
<view wx:if="{{invoiceNeedStatus}}" class="choose-item invoice">
发票信息
<view class="change-btn" bindtap="changeInvoiceInfo">
<text class="btn-text">{{invoiceInfo.invoiceType === 2 ? '电子发票' : '纸质发票'}} - {{invoiceInfo.invoiceTitleShow}}</text>
<text class="iconfont icon-right"></text>
</view>
</view>
</view>
<view class="split-line"></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">¥{{helper.round(paymentAmount)}}</text>
</view>
</view>
<view class="submit-wrap">
<form bindsubmit="submitOrder" report-submit='true'>
<button formType="submit" class="submit-btn">使用微信安全支付</button>
</form>
</view>
</view>