index.wxml
12.9 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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
<view class="xc-page">
<view class="xc-user">
<view class="xc-head rel">
<image class="xc-background" src="{{iurl}}/miniapp/images/user_index_powder.jpg">
<view class="flex-space-between abs xc-user-frame">
<view class="xc-user-left flex" wx:if="{{userInfo}}">
<image class="xc-user-img circle" bindtap="go_info" src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}"></image>
<view class="xc-uesr-name">
{{userInfo.nickname}}
<view class="hvip" wx:if='{{GradeName && is_init}}'>
<image class="vip-mem" src="{{iurl}}/miniapp/images/vip_hg0.png"></image>{{GradeName}}</view>
<view class="flex fs24 xc-grow-ups" style="margin-left:8rpx;margin-top:6rpx" wx:if="{{is_init && gradeId}}" bindtap='jump'>
<block wx:if="{{cz_val<full_cz_val}}">
{{" "}}
<text class="grow-up-val">成长值</text>
<view style='margin-left:5rpx; '>{{cz_val}} / {{need_money}}</view>
</block>
<block wx:else>
{{" "}}
<text class="grow-up-val">成长值</text> {{cz_val}}
</block>
</view>
</view>
</view>
<view class="xc-user-left flex" wx:else bindtap="gobindtel">
<image class="xc-user-img circle" src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}"></image>
<view class="xc-uesr-name">请点击注册</view>
</view>
</view>
<view wx:if="{{userInfo}}" class="xc-qrcode-frame abs flex-center ">
<!-- {{iurl}}/miniapp -->
<image bindtap='show_tc' class=" xc-qrcode " src="{{iurl}}/miniapp/images/qrcode1.png"></image>
</view>
<view class="flex-vertical abs xc-grow-frame rel" style="display: none">
<view class="xc-grow-up">成长值</view>
<view class="xc-line-not rel">
<image class="xc-bj-img abs" src="{{iurl}}/miniapp/images/baijing.png"></image>
<image class="xc-zs-img abs" src="{{iurl}}/miniapp/images/zhuangshi.png"></image>
<view class="xc-line-Yes abs" style="width:{{length}}rpx;"></view>
</view>
<view class="xc-grow-val">5000/10000</view>
</view>
<view class="flex-equality abs xc-assets">
<view class="t-c typefont" bindtap='balance'>{{yuer?yuer:0}}
<view class='numfont'>余额</view>
</view>
<view class="t-c typefont" bindtap='deposit'>{{udata.Balance?udata.Balance:0}}
<view class='numfont'>预存款</view>
</view>
<view class="t-c typefont" bindtap='integral'>{{udata.Integral?udata.Integral:0}}
<view class='numfont'>积分</view>
</view>
<view class="t-c typefont" bindtap='coupon'>{{udata.CashCount+byquan?udata.CashCount+byquan:0}}
<view class='numfont'>优惠券</view>
</view>
</view>
</image>
</view>
<view class="xc-add-member-frame flex-level rel addplus" wx:if="{{is_dengji==2}}">
<view class="xc-add-member flex-center-around ">
<view class="flex jc-center ai-center">
<image class="xc-icon" src="{{iurl}}/miniapp/images/user/user_vip.png"></image>
<view class="member fs28 "> 加入plus会员预计可省3031元</view>
</view>
<view class="xc-opening-button t-c" data-url="/pages/user/plus/plus" bindtap="goto">
<view class="xc-opening fs28">立即开通</view>
</view>
</view>
</view>
<view class="xc-add-member-frame flex-level rel addplus" wx:if="{{is_dengji==3}}">
<view class="xc-add-member flex-center-around ">
<view class="flex jc-center ai-center">
<image class="xc-icon" src="{{iurl}}/miniapp/images/user/user_vip.png"></image>
<view class="member fs28 "> 加入plus会员预计可省3031元</view>
</view>
<view class="xc-opening-button t-c" data-url="/pages/user/cardinfo/cardinfo" bindtap="goto">
<view class="xc-opening fs28">立即续费</view>
</view>
</view>
</view>
</view>
<view class="xc-after-sale rel">
<view class="xc-after-sale-left flex-center-around">
<view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=1">
<image class="xc-no-money" src="{{iurl}}/miniapp/images/daifuk.png"></image>
<view class=" xc-word-color four-level-word">待付款</view>
<text class="order-num" hidden='{{toji.wait_pay>0?"":"true"}}'>{{toji.wait_pay}}</text>
</view>
<view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=3">
<image class="xc-await" src="{{iurl}}/miniapp/images/shouhuo1.png"></image>
<view class="xc-word-color four-level-word">待收货</view>
<text class="order-num" hidden='{{toji.wait_receive>0?"":"true"}}'>{{toji.wait_receive}}</text>
</view>
<view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=4">
<image class="xc-no-money" src="{{iurl}}/miniapp/images/dpr1.png"></image>
<view class="xc-word-color four-level-word">待评论</view>
<text class="order-num" hidden='{{toji.wait_pj>0?"":"true"}}'>{{toji.wait_pj}}</text>
</view>
<view class="t-c margin-auto rel" style='margin-left:30rpx;' bindtap="go_order" data-url="/pages/user/return_goods_list/return_goods_list">
<image class="xc-no-money" src="{{iurl}}/miniapp/images/shouh1.png"></image>
<view style='height:36rpx;'> </view>
<view class="xc-word-color four-level-word abs">售后/退款</view>
<!--<text class="order-num" hidden='{{toji.wait_return>0>0?"":"true"}}' style="right: -20rpx">{{toji.wait_return}}</text>-->
</view>
<view class='xc-hump abs'></view>
<view class="flex-verticalr xc-after-sale-right">
<view class=" xc-order t-c" bindtap="go_order" data-url="/pages/user/order_list/order_list">
<image class="xc-no-money xc-my-order" src="{{iurl}}/miniapp/images/dindan.png"></image>
<view class="xc-word-color four-level-word" style='margin-left:20rpx;'>我的订单</view>
</view>
</view>
</view>
</view>
<!-- 我的权益 -->
<view class="xc-my-equity-frame" wx:if="{{qy_list!=null && is_init && gradeId}}">
<view class="xc-equity-title flex-level" bindtap="go_qy">
<view class="xc-title-frame flex-space-between">
<view class="flex-vertical xc-title-content">
<image class="xc-title-img" src="{{iurl}}/miniapp/images/medal.png"></image>
<view class="three-level-word">
我的权益
</view>
</view>
</view>
<view class="three-level-word xc-more-frame flex-vertical">
<view class="three-level-word xc-more">更多</view>
<view class="bg_right xc-more-click bcolor"></view>
</view>
</view>
<view class="xc-specific-more-frame flex-vertical">
<view bindtap="click_pre">
<view class="bg_left xc-left bcolor"></view>
</view>
<swiper current="{{sw_index}}" style='width:82.7%; height:108rpx' bindchange='onSli' indicator-dots="{{false}}" autoplay="{{false}}">
<swiper-item wx:for="{{qy_list}}" wx:for-item="aitem" wx:for-index="pidx">
<view class="flex xc-middle">
<view class="xc-center-frame t-c" wx:for="{{aitem}}" data-img="{{item.PrivilegeImageUrl}}" data-no="{{item.PrivilegeType}}" data-ind="{{index}}" data-find="{{pidx}}" bindtap="go_qy_url">
<!-- <text>qy_list.privilegeICOUrl</text> -->
<image class="xc-center-img {{item.ishas==1?'':'img_gray'}}" src="{{item.PrivilegeICOUrl}}"></image>
<view class="four-level-word">{{item.PrivilegeName}}</view>
</view>
</view>
</swiper-item>
</swiper>
<view bindtap="click_next">
<view class="bg_right xc-right bcolor mt"></view>
</view>
</view>
</view>
<!-- 生日营销 is_banner-->
<block wx:if="{{is_banner==0}}">
<view class="t-c banner-frame" bindtap="clike_banne">
<image class="banner-img" src="{{iurl}}/miniapp/images/banner-img.jpg">
</image>
</view>
</block>
<!-- 工具与服务 -->
<view class="xc-tool-service">
<view class="xc-tool-service-title flex-vertical">
<image class="xc-tool-service-img" src="{{iurl}}/miniapp/images/gj.png"></image>
<view class="three-level-word xc-tool-service-word">工具与服务</view>
</view>
<view class="xc-project-frame">
<!-- 跳转页面 -->
<view class="center_v">
<view class="item t-c" data-url="/pages/team/team_ping/team_ping" bindtap="goto">
<image class="xc-center-img " src="{{iurl}}/miniapp/images/pindan.png"></image>
<view class="fs26">我的拼单</view>
</view>
<view class="item t-c" data-url="/pages/activity/seckill_list/seckill_list" bindtap="goto">
<image class="xc-center-img " src="{{iurl}}/miniapp/images/miaosha.png"></image>
<view class="fs26">秒杀活动</view>
</view>
<view class="item t-c" bindtap="go_qy" wx:if="{{qy_list!=null && is_init && gradeId}}">
<image class="xc-center-img " src="{{iurl}}/miniapp/images/quanyi2.png"></image>
<view class="fs26">我的权益</view>
</view>
<view class="item t-c" bindtap="contactService">
<image class="xc-center-img " src="{{iurl}}/miniapp/images/kefu.png"></image>
<view class="fs26">联系客服</view>
</view>
<view class="item t-c" data-url="/pages/user/cardinfo/cardinfo" bindtap="goto" wx:if="{{is_dengji==1}}">
<image class="xc-center-img " src="{{iurl}}/miniapp/images/plus/privilege_o.png"></image>
<view class="fs26">plus会员</view>
</view>
<view class="item t-c" data-url="/pages/user/collect_list/collect_list" bindtap="goto">
<image class="xc-center-img " src="{{iurl}}/miniapp/images/collections.png"></image>
<view class="fs26">收藏夹</view>
</view>
<view class="item t-c" data-url="/pages/user/comment/comment" bindtap="goto">
<image class="xc-center-img " src="{{iurl}}/miniapp/images/evaluate.png"></image>
<view class="fs26">我的评价</view>
</view>
<view class="item t-c" data-url="/pages/user/address_list/address_list" bindtap="goto">
<image class="xc-center-img " src="{{iurl}}/miniapp/images/add2.png"></image>
<view class="four-level-word">我的地址</view>
</view>
<view class="item t-c" data-url="/pages/user/my_service/i_service" bindtap="goto_nav" >
<image class="xc-center-img " src="{{iurl}}/miniapp/images/yyservice/myservice.png"></image>
<view class="four-level-word">我的服务</view>
</view>
<view class="item t-c" data-url="/pages/giftpack/mygiftpack/mygiftpack" bindtap="goto_nav">
<image class="xc-center-img " src="{{iurl}}/miniapp/images//user/wdlb.png"></image>
<view class="four-level-word">我的礼包</view>
</view>
</view>
</view>
</view>
<view style='width:100%;height:73rpx;'>
<view class="xc-recommend-goods flex-center">
<view class="circle xc-small">
</view>
<view class="circle xc-zhong">
</view>
<view class="circle xc-big">
</view>
<view class="three-level-word xc-recommend">为你推荐</view>
<view class="circle xc-big">
</view>
<view class="circle xc-zhong">
</view>
<view class="circle xc-small" style='margin-left:15rpx;'>
<!-- </view> -->
</view>
</view>
<!-- 显示商品 -->
<!-- 好物推荐 -->
<goods_recommend id="goods_recommend"></goods_recommend>
</view>
</view>
<!--弹出层内容,其中的“我知道”中绑定让弹出层消失的函数:bindtap="hide"-->
<view class="tc_view" hidden='{{tc_hide}}' bindtap='hide_tc'>
<view class="modal-box" hidden="{{flag}}" bindtap="hide"></view>
<view class="modal-body">
<view class="modal-content">
<view class="flex">
<image src="{{userInfo.head_pic}}" class="hd_img"></image>
<view class="ctent_txt">
<view class='txt1'>{{userInfo.nickname}}
<image wx:if="{{userInfo.sex==2}}" class="arrow-right" src="{{iurl}}/miniapp/images/user/wum.png"></image>
<image wx:else class="arrow-right fu" src="{{iurl}}/miniapp/images/user/man.png"></image>
</view>
<view wx:if="{{userInfo.address}}" class='txt2'>{{userInfo.address}}</view>
</view>
</view>
<view class="m_ta">
<!--<image class='g_img' src='https://mshop.yolipai.net//index.php?m=Home&c=Index&a=qr_code&data={{userInfo.mobile}}'></image>-->
<canvas class="g_img" canvas-id="qrcode" />
</view>
<view class="s_sao">扫一扫上面的二维码图案,即可消费</view>
</view>
</view>
</view>
<pop_txt id="pop_txt"></pop_txt>