taocanpay.wxml
5.2 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<view class="content">
<!-- 地址信息 -->
<view class="address_box" wx:if="{{info.address}}" bindtap="add_address">
<view class="name">{{info.address.name}}
<text>{{info.address.tel}}</text>
</view>
<view class="address">
<image class="tips_img" src="/images/icon_54.png" />
<view>{{info.address.area}}{{info.address.address}}</view>
</view>
<image src="/images/icon_41.png" class="youjiantou" />
</view>
<view class="on_address" wx:else bindtap="add_address">
<image src="/images/icon_46.png" />
<view>暂无收货地址,
<text>去添加</text>
</view>
</view>
<view class="line">
<image src="/images/line.png" />
</view>
<view class="content">
<view class="list">
<view class="listitem flex" bindtap="newdetail" wx:for="{{info.products}}" wx:key="no" data-id="{{item.id}}">
<view class="listright">
<image src="{{item.images[0]}}" mode="widthFix "></image>
</view>
<view class="listleft ">
<!-- x{{item.sold}} -->
<view class="commontwo ">{{item.name}} <text class="sold"></text></view>
<view class="leftbottom flexone ">
<view class="botleft ">¥{{item.price2==null?item.price:item.price2}}</view>
<view>x{{item.num}}</view>
</view>
</view>
</view>
</view>
<view class='recommend' wx:if="{{info.coudanProduct.length>0}}">
<view class='re_one'>*您支付后还剩{{info.choudan}}积分为您推荐了以下凑单产品!</view>
<scroll-view class='re_goods' scroll-x scroll-left="0">
<view class='re_item' wx:for='{{info.coudanProduct}}' wx:key='index' bindtap='chooseGoods' data-index="{{index}}" data-id="{{item.id}}" data-num="{{item.num?item.num:1}}" data-check='{{item.check}}' data-price='{{item.price}}'>
<view class='re_re_item {{item.check?"active":""}}'>
<view class='triangle' wx:if='{{item.check}}'>
<image src='/images/bingo.png' class='bingo'></image>
</view>
<view class='re_re_img'>
<image src='{{item.images[0]}}' mode='aspectFill'></image>
</view>
<view class='re_bottom'>
<view class='re_re_name'>{{item.name}}</view>
<view class='re_re_score'>{{item.price}}积分</view>
</view>
<!-- 数量操作 -->
<view class="num_box">
<image class="num_btn" src="/images/reduce.png" data-check='{{item.check}}' data-index="{{index}}" data-id="{{item.id}}" data-type="0" data-num="{{item.num?item.num:1}}" catchtap="num_change" />
<text>{{item.num?item.num:1}}</text>
<image class="num_btn" src="/images/add.png" data-check='{{item.check}}' data-index="{{index}}" data-id="{{item.id}}" data-type="1" data-num="{{item.num?item.num:1}}" catchtap="num_change" />
</view>
</view>
</view>
</scroll-view>
</view>
<view class='three'>
<view class='mask_two'>
<view>订单编号</view>
<view class='score'>{{info.order_odd}}</view>
</view>
<view class='mask_two'>
<view>创建时间</view>
<view class='score'>{{info.date}}</view>
</view>
<view class='mask_two'>
<view>邮费</view>
<view class='score' style="color:rgba(242, 0, 0, 1)">{{info.yunfei}}积分</view>
</view>
</view>
</view>
</view>
<view class="footer">
<view class="submit" catchtap="show_cover">提交</view>
<view class="jifen"> 合计:
<text>{{choudan_money?choudan_money + totalmoney: totalmoney}}积分</text>
</view>
<view class="num">共{{info.totalnum}}件</view>
</view>
<concat/>
<!-- 支付成功弹框开始 -->
<view class='success_mask' wx:if='{{success}}'>
<view class='success_diceng'>
<view class='success_one'>
<image src='/images/success.png'></image>
</view>
<view class='success_font'>支付成功</view>
<navigator class='success_confirm_btn' open-type="navigateBack">确定</navigator>
</view>
</view>
<!-- 支付成功弹框结束 -->
<!-- 支付失败弹框开始 -->
<view class='success_mask' wx:if='{{fail}}'>
<view class='success_diceng'>
<view class='success_one'>
<image src='/images/icon_55.png'></image>
</view>
<view class='success_font'>支付失败</view>
<!-- status为1的时候才能支付 -->
<view class='fail_font' wx:if="{{info.status == 0}}">不在活动时间,您不能支付</view>
<view class='fail_font' wx:else>所需积分{{order.xy}},积分余额{{order.syjf}}</view>
<navigator class='success_confirm_btn' open-type="navigateBack">取消支付</navigator>
</view>
</view>
<!-- 支付失败弹框结束 -->
<view class="cover_box" wx:if="{{cover_type}}">
<view class="cover_order">
<view class="all_money">{{choudan_money?choudan_money + totalmoney: totalmoney}}积分</view>
<view class="money_item">
<text>商品积分</text>
<text>{{choudan_money?choudan_money + info.total:info.total}}积分</text>
</view>
<view class="money_item">
<text>邮费</text>
<text>{{info.yunfei}}积分</text>
</view>
<view class="cover_submit" catchtap="submit">确认支付</view>
<image src="/images/close.png" class="cover_close" catchtap="show_cover" />
</view>
</view>