ensure.wxml
4.08 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<view class="container">
<view wx:if="{{choosedAddress}}" class="address" bindtap="chooseAddress">
<text class="iconfont icon-location"></text>
<view class="consignee">
<text class="name">*蛋蛋</text>
<text class="phone">183****8888</text>
<text class="direction">江苏省 南京市 建邺区 江陵江东街 国家广告产业园5栋17楼有货传媒</text>
</view>
<text class="iconfont icon-right"></text>
</view>
<view wx:else class="address address-empty">
<view class="add-address" bindtap="enterAddress">
<text class="left-icon">+</text>
<text class="text">手动新增收获地址</text>
<text class="iconfont icon-right"></text>
</view>
<view class="add-address add-wechat-address" bindtap="chooseWechatAddress">
<text class="iconfont icon-wechat left-icon"></text>
<text class="text">一键获取微信地址</text>
<text class="iconfont icon-right"></text>
</view>
</view>
<view class="split-line"></view>
<view class="goods-list">
<view class="goods-item">
<image class="thumb" src="http://img11.static.yhbimg.com/goodsimg/2017/07/26/14/011b6a77d9e4105c50811faba17ed72466.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/80"></image>
</view>
</view>
<view class="split-line"></view>
<view class="choose-wrap">
<view class="choose-item delivery-way">
配送方式
<view class="change-btn" bindtap="toggleDeliveryWayList">
<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-key="{{index}}" bindtap="changeDeliveryWay">
<text class="left-name">{{item.delivery_way_name}}: 运费¥{{item.delivery_way_cost}}</text>
<text class="iconfont {{item.ckecked ? 'icon-round-checked' : 'icon-round'}}"></text>
</view>
</view>
<view class="choose-item delivery-time">
送货时间
<view class="change-btn" bindtap="toggleDeliveryTimeList">
<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-key="{{index}}" bindtap="changeDeliveryTime">
<text class="left-name">{{item.delivery_time_string}}</text>
<text class="iconfont {{item.ckecked ? '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">
<text>{{invoiceName}}</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">{{paymentAmount}}</text>
</view>
</view>
<view class="submit-wrap">
<button bindtap="submitOrder" class="submit-btn">使用微信安全支付</button>
</view>
</view>