vip_index.wxml
14.4 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<!--pages/vip/vip_index/vip_index.wxml-->
<view class='page {{mask||back_shop?"active":""}}'>
<view class='vip_one {{user.user.is_vip==1?"":"active"}}'>
<!-- <image src='../../imgs/vip_index.png' class='vip_one_image'></image> -->
<view class='banner_top'>
<view class='iconfont icon-fanhui' catchtap='get_my'></view>
<view class='hello'>会员中心</view>
<view class='charge_code' catchtap="cancel_mask">省钱计算器</view>
</view>
<view class='vip_one_center'>
<view class='vip_box {{user.user.is_vip==1?"":"active"}}'>
<view class='vip_avatar'>
<image src='{{user.user.avatar}}'></image>
</view>
<view class='vip_name'>
<view class='vip_name_one'>{{user.user.user_nickname}}</view>
<view>
<view class='vip_name_two' wx:if='{{user.user.is_vip==1}}'>HIGO会员</view>
<view class='vip_name_two' wx:else>普通会员</view>
</view>
</view>
<view class='vipvipvip'>
<view>
<text wx:if='{{user.user.is_vip==1}}'>{{user.vip_expire_time}}天</text>
<text wx:else>尚未开通</text>
</view>
<view class='vip_time'>会员有效期</view>
</view>
</view>
<view class='vip_line'></view>
<view class='vip_upgrade'>
<text>升级超级会员\t\t每单返{{user.cashback}}%现金\t\t更享{{user.slide.length}}大特权</text>
</view>
</view>
</view>
<view class='bigbig {{user.user.is_vip==1?"":"active"}}'>
<view class='vip_one-bottom'>
<view class='vip_one_bottom_auto'>
<image src='{{imgUrl}}vip_left.png'></image>
<text>会员特权</text>
<image src='{{imgUrl}}vip_right.png'></image>
</view>
</view>
<view class='vip_two'>
<view class='vip_two_one' bindtap='show_back_shop' data-index='{{index}}' wx:for-index='index' wx:for='{{user.slide}}' wx:key='{{item.id}}'>
<view class='vip_two_one_icon'>
<image src='{{item.icon}}'></image>
</view>
<view class='vip_two_one_font'>{{item.title}}</view>
</view>
</view>
</view>
<view class='vip_three'>
<view class='vip_three_one'>
<view class='vip_three_one_left'>开通SVIP超级</view>
<view class='vip_three_one_right' bindtap='jump_detail_vip'>
<view class='wenhao'>
<image src='{{imgUrl}}wenhao.png'></image>
</view>
<view class='wenhao_right'>尊享会员说明</view>
</view>
</view>
<view class='vip_three_two'>
<view class='vip_three_two_item {{id==item.id?"active":""}}' wx:for='{{user.vips}}' wx:key='{{item.id}}' wx:for-index='index' bindtap='change_vip_id' data-id='{{item.id}}'>
<view class='trilateral' wx:if='{{id==item.id}}'>
<view class='iconfont icon-duigou'></view>
</view>
<view class='grade_vip_name'>{{item.title}}</view>
<view class='grade_vip_count'>{{item.remark}}</view>
<view class='grade_vip_price'>
<text>¥</text> {{item.sale_price}}
</view>
</view>
</view>
</view>
<view class='vip_four' bindtap='pay_vip'>升级尊享会员,每单返{{user.cashback}}%现金</view>
</view>
<!-- 省钱计算器-->
<view class='vip_mask' wx:if='{{mask}}'>
<view class='vip_mask_diceng'>
<image src='{{imgUrl}}queen_crown.png' class='queen_crown'></image>
<view class='iconfont icon-quxiao cancel_mask' bindtap='opposite_mask'></view>
<view class='vip_mask_one'>
<view class='vip_mask_one_one'>会员有效期:{{user.vip_expire_time}}天</view>
<view class='vip_mask_one_two'>会员期间曾为您节省</view>
<view class='vip_mask_one_three'>
<text>¥</text> {{user.sheng_price}}
</view>
</view>
<view class='vip_mask_two'>
<view class='vip_mask_two_item'>
<view class='vip_mask_two_item_left'>
<view class='back_price'>购物返现</view>
<view class='back_price_content'>单单返现{{user.cashback}}%无上限</view>
</view>
<view class='vip_mask_two_item_right'>¥{{user. cashback_price}}</view>
</view>
<view class='vip_mask_two_item'>
<view class='vip_mask_two_item_left'>
<view class='back_price'>会员专享红包</view>
<view class='back_price_content'>各种优惠享不停</view>
</view>
<view class='vip_mask_two_item_right'>¥0.00</view>
</view>
<view class='vip_mask_two_item'>
<view class='vip_mask_two_item_left'>
<view class='back_price'>商品会员价</view>
<view class='back_price_content'>优质商品专属优惠</view>
</view>
<view class='vip_mask_two_item_right'>¥{{user.diff_price}}</view>
</view>
</view>
<view class='vip_mask_three' bindtap='becomeMonthVip'>成为月度会员,每单返{{user.cashback}}%现金</view>
</view>
</view>
<!-- 购物返现弹框 -->
<view wx:if='{{back_shop}}'>
<view class='back_shop'>
<view class='swiper_box'>
<swiper previous-margin='80rpx' next-margin='40rpx' circular='true' display-multiple-items='1' current='{{current}}' class='swiper_banner_box' bindchange='bindChange'>
<block wx:for='{{slide}}' wx:key='{{item.id}}' wx:for-index='index'>
<swiper-item>
<view class="img_box {{current == index ? 'active': ''}}">
<image src='{{item.image}}' class="slide-image {{current == index ? 'active': ''}}"></image>
</view>
</swiper-item>
</block>
</swiper>
<view class="dots">
<block wx:for="{{slide}}" wx:key="item.id" wx:for-index='index'>
<view class="dot {{current == index ? ' active' : ''}}"></view>
</block>
</view>
</view>
<view class='exit_back_shop' bindtap='hide_back_shop'>退出</view>
</view>
</view>
<!-- 专享客服弹框-->
<view wx:if='{{customer_service}}'>
<view class='back_shop'>
<view class='swiper_box'>
<swiper previous-margin='40rpx' next-margin='60rpx' circular='true' display-multiple-items='1' current='{{current}}' class='swiper_banner_box' bindchange='bindChange'>
<swiper-item wx:for='{{slide}}' wx:key='{{item.id}}' wx:for-index='index' class="swiper-item">
<view class="img_box {{current == index ? 'active': ''}}">
<image src='{{item.image}}' class="slide-image {{current == index ? 'active': ''}}"></image>
<view class="slide_font {{current == index ? 'active': ''}}">
<text>尊享会员</text> 每一单都可以享受5%现金返现,订单签收后,返现金额将直接存入你的余额账户,返利金额无上限。这里的字符数将控制在65字以内。
</view>
<view class="slide_fonts {{current == index ? 'active': ''}}">
<text class='slide_fonts_text'><text>温馨提示</text>\n01\t尊享会员返现金额为订单实付金额的5%\n02\t返现金额不可提现,可用于下次消费</text>
</view>
</view>
</swiper-item>
</swiper>
<view class="dots">
<block wx:for="{{slide}}" wx:key="item.id" wx:for-index='index'>
<view class="dot{{current == index ? ' active' : ''}}"></view>
</block>
</view>
</view>
<view class='exit_back_shop' bindtap='hide_customer_service'>退出</view>
</view>
</view>
<!-- 无门槛券弹框-->
<view wx:if='{{coupons}}'>
<view class='back_shop'>
<view class='swiper_box'>
<swiper previous-margin='40rpx' next-margin='60rpx' circular='true' display-multiple-items='1' current='{{current}}' class='swiper_banner_box' bindchange='bindChange'>
<swiper-item wx:for='{{slide}}' wx:key='{{item.id}}' wx:for-index='index' class="swiper-item">
<view class="img_box {{current == index ? 'active': ''}}">
<image src='{{item.image}}' class="slide-image {{current == index ? 'active': ''}}"></image>
<view class="slide_font {{current == index ? 'active': ''}}">
<text>尊享会员</text> 每一单都可以享受5%现金返现,订单签收后,返现金额将直接存入你的余额账户,返利金额无上限。这里的字符数将控制在65字以内。
</view>
<view class="slide_fonts {{current == index ? 'active': ''}}">
<text class='slide_fonts_text'><text>温馨提示</text>\n01\t尊享会员返现金额为订单实付金额的5%\n02\t返现金额不可提现,可用于下次消费</text>
</view>
</view>
</swiper-item>
</swiper>
<view class="dots">
<block wx:for="{{slide}}" wx:key="item.id" wx:for-index='index'>
<view class="dot{{current == index ? ' active' : ''}}"></view>
</block>
</view>
</view>
<view class='exit_back_shop' bindtap='hide_coupons'>退出</view>
</view>
</view>
<!-- 无门槛券弹框-->
<view wx:if='{{more}}'>
<view class='back_shop'>
<view class='swiper_box'>
<swiper previous-margin='40rpx' next-margin='60rpx' circular='true' display-multiple-items='1' current='{{current}}' class='swiper_banner_box' bindchange='bindChange'>
<swiper-item wx:for='{{slide}}' wx:key='{{item.id}}' wx:for-index='index' class="swiper-item">
<view class="img_box {{current == index ? 'active': ''}}">
<image src='{{item.image}}' class="slide-image {{current == index ? 'active': ''}}"></image>
<view class="slide_font {{current == index ? 'active': ''}}">
<text>尊享会员</text> 每一单都可以享受5%现金返现,订单签收后,返现金额将直接存入你的余额账户,返利金额无上限。这里的字符数将控制在65字以内。
</view>
<view class="slide_fonts {{current == index ? 'active': ''}}">
<text class='slide_fonts_text'><text>温馨提示</text>\n01\t尊享会员返现金额为订单实付金额的5%\n02\t返现金额不可提现,可用于下次消费</text>
</view>
</view>
</swiper-item>
</swiper>
<view class="dots">
<block wx:for="{{slide}}" wx:key="item.id" wx:for-index='index'>
<view class="dot{{current == index ? ' active' : ''}}"></view>
</block>
</view>
</view>
<view class='exit_back_shop' bindtap='hide_more'>退出</view>
</view>
</view>