profile.wxml
13 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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
<wxs module="filters" src="../../../utils/filter.wxs"></wxs>
<view class="container">
<!-- 头像,昵称,多个卡 -->
<view class="head flex-space-between">
<view class="flex-center">
<view class="flex-center">
<image class="Headportrait" src="{{user.head_pic}}"></image>
</view>
<view class="flex-center vipmax">
<view>
<view class="fs32">
<view class="ellipsis-1 Nickname">{{user.nickname}}
</view>
</view>
</view>
</view>
</view>
</view>
<view class="user-container">
<view class="Bbottom">
<view bindtap="editUserInfo1" class="user-name flex-vertical" data-type="nickname">
<view class="user-name-txt">推荐人:</view>
<input bindblur="user_name" class="user-txt-right f1 pdl20 t-r" placeholder="请输入推荐人手机号码或卡号"/>
<view class="c-red pdl20 fs24">可获10积分</view>
</view>
<view bindtap="editUserInfo1" class="user-name flex-vertical" data-type="nickname">
<view class="user-name-txt">姓名:</view>
<input bindblur="user_name" class="user-txt-right f1 pdl20 t-r" placeholder="请输入您的真实姓名"/>
<view class="c-red pdl20 fs24">可获10积分</view>
</view>
<view bindtap="editUserInfo1" class="user-name flex-vertical" data-type="sex">
<view>性别:</view>
<view class="flex f1 pdl20 jc_fe">
<view class="flex-center {{isGender==1?'Gendercheck':'Gender'}}" data-sex="1" bindtap="isGender">
<block wx:if="{{isGender==1}}">
<image class="GenderImage" src="{{iurl}}/miniapp/images/userinfo/userinfo/malealready.png"></image>
</block>
<block wx:else>
<image class="GenderImage" src="{{iurl}}/miniapp/images/userinfo/userinfo/malenot.png"></image>
</block>
<view class="fs24">男</view>
</view>
<view class="flex-center {{isGender==2?'Gendercheck':'Gender'}} mgl20" data-sex="2" bindtap="isGender">
<block wx:if="{{isGender==2}}">
<image class="GenderImage" src="{{iurl}}/miniapp/images/userinfo/userinfo/femalealready.png"></image>
</block>
<block wx:else>
<image class="GenderImage" src="{{iurl}}/miniapp/images/userinfo/userinfo/femalenot.png"></image>
</block>
<view class="fs26">女</view>
</view>
</view>
<view class="c-red pdl20 fs24">可获10积分</view>
</view>
<view bindtap="editUserInfo1" class="user-name flex-vertical" data-type="sex">
<view class="shrink0">出生日期:</view>
<view class="flex fs28 Birth pdl20 jc_fe">
<view class="flex" bindtap="iscalendar">
<block wx:if="{{iscalendar}}">
<view class="flex-center">
<icon size="20" type="success" color="rgb(212,2,31)"></icon>
</view>
</block>
<block wx:else>
<icon size="20" type="success" color="rgb(0, 0, 0, 0.4)"></icon>
</block>
<view class="flex-center">
<view class="Mleft">农历</view>
</view>
</view>
<view class="user-txt-right pdl20">
<!-- 填充数据的时候要判断是否已经有出生日期,有值的话就不可修改 -->
<block wx:if="{{user.birthday==''||user.birthday==null}}">
<picker bindchange='bindChange' value="{{datet}}" mode="date" start="{{year-70}}-1-1" end="{{year}}-12-31">
{{datet?datet:"请选择时间"}}
</picker>
</block>
<block wx:else>
<view>{{datet==""? user.birthday==""?"":filters.replace_time2(user.birthday):datet}}</view>
</block>
</view>
</view>
<view class="c-red pdl20 fs24 shrink0">可获10积分</view>
</view>
<view bindtap="editUserInfo1" class="user-name flex-vertical" data-type="nickname">
<view class="user-name-txt shrink0">身份证号码:</view>
<input bindblur="identity_card" class="user-txt-right pdl20 f1 t-r" value="{{user.idcard}}" placeholder="请输入身份证号码"></input>
<view class="c-red pdl20 fs24 shrink0">可获10积分</view>
</view>
<view class="user-name flex-vertical" data-type="mobile">
<view class="user-name-txt">地址:</view>
<input bindblur="address" maxlength="30" value="{{user.address}}" class="user-txt-right f1" placeholder="请输入详细地址" style="text-align:right" />
<view class="c-red pdl20 fs24">可获10积分</view>
</view>
<view bindtap="" class="user-name flex-vertical" data-type="mobile">
<view class="user-name-txt">手机:</view>
<input bindblur="" class="user-txt-right f1 pdl20 t-r" placeholder="请输入手机号码"/>
<view class="c-red pdl20 fs24">可获10积分</view>
</view>
<view bindtap="editUserInfo1" class="user-name flex-vertical" data-type="nickname">
<view class="user-name-txt">验证码:</view>
<input bindblur="" class="user-txt-right f1 pdl20 t-r" placeholder="请输入"/>
<view class="mgl20 fs24 btn pd10">获取验证码</view>
</view>
<!-- 选择门店 -->
<view bindtap="onclickstore" class="user-name flex-vertical" data-type="email">
<view class="user-name-txt">所属门店:</view>
<view class="user-txt-right f1 flex ai_c jc_fe">
<view class="one-line">{{stoname}}</view>
<view class="angle">∟</view>
</view>
<view class="c-red pdl20 fs24">可获10积分</view>
</view>
<view bindtap="" class="user-name flex-vertical fs24">
<checkbox/>
<view class="user-name-txt">我已阅读同意 <text class="red">《用户使用协议》</text>与<text class="red">《隐私政策》</text></view>
</view>
</view>
</view>
<!-- 保存按钮 -->
<view class="confirm">
<view class="fs30 confirmtext" bindtap="confirm_revision">保存</view>
<view class="star fs24 t-c pdt10 c9">保存成功即可获得一张20.00元优惠券</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="{{user.head_pic}}" class="hd_img"></image>
<view class="ctent_txt">
<view class='txt1'>{{user.nickname}}
<image wx:if="{{user.sex==2}}" class="arrow-right" src="{{iurl}}/miniapp/images/user/wum.png"></image>
<image wx:else class="arrow-right" src="{{iurl}}/miniapp/images/user/man.png"></image>
</view>
<view class='txt2' wx:if="{{user.address}}">{{user.address}}</view>
</view>
</view>
<view class="m_ta">
<canvas class="g_img" canvas-id="qrcode" />
</view>
<view class="s_sao">扫一扫上面的二维码图案,即可消费</view>
</view>
</view>
</view>
<!-- 选择门店的弹框,1.1版最新的 -->
<block wx:if="{{store==1}}">
<view class="mongolia-layer" bindtap="onclickstore"></view>
<view class="popup-frame">
<block wx:if="{{sort_store==0}}">
<!-- 头部 标题 -->
<view class="popup-top flex-space-between">
<text class="fs32 nearby_store">{{choice_sort_store==0?'附近的门店':region_name}}</text>
<view>
<view>
<icon bindtap="onclickstore" class="modal-closes" color="black" size="22" type="cancel"></icon>
</view>
<view class="felx choose_more" bindtap="more_store">
<text class="fs26 red-co" wx:if="{{is_show_sto_cat}}">{{choice_sort_store==0?'更多门店':'返回'}}</text>
<view class="bg_rights"></view>
</view>
</view>
</view>
<!-- 门店列表,最外层的门店列表,一开始 -->
<view class="store-list">
<!--如果还没有点击更多门店的时候 -->
<block wx:if="{{choice_sort_store==0}}">
<!-- 需要for循环 -->
<block wx:if="{{is_show_sto_cat==1}}">
<view class="store_choose flex" wx:for="{{def_pickpu_list}}" bindtap="choose_for_store_fir" data-ind="{{index}}">
<view class="store flex-vertical">
<!-- 需要点击事件 -->
<block wx:if="{{index==fir_pick_index}}">
<view class="circle white xc-hook fs20 red-b">Г</view>
</block>
<block wx:else>
<view class="circle xc-hooks"></view>
</block>
<view class="address-frame xc-ash">
<view class="flex-vertical-between butttem5">
<view class="flex xc-ash">
<view class="fs30 xc-black3 address_name">{{item.pickup_name}}</view>
</view>
<view>
<view class="distance fs24 address-val" wx:if="{{item.distance!=null}}">
距离:{{item.distance>1000?filters.toFix(item.distance/1000,2)+'km':filters.toFix(item.distance,0)+"m"}}</view>
</view>
</view>
<view class="fs24 xc-ash-9f">地址:{{item.fulladdress}}</view>
</view>
</view>
</view>
</block>
<block wx:else>
<view class="store_choose flex" wx:for="{{only_pk}}" bindtap="choose_for_store_fir" data-ind="{{index}}">
<view class="store flex-vertical">
<!-- 需要点击事件 -->
<block wx:if="{{index==fir_pick_index}}">
<view class="circle white xc-hook fs20 red-b">Г</view>
</block>
<block wx:else>
<view class="circle xc-hooks"></view>
</block>
<view class="address-frame xc-ash">
<view class="flex-vertical-between ">
<view class="flex xc-ash">
<view class="fs30 xc-black3 address_name">{{item.pickup_name}}</view>
</view>
<view>
<view class="distance fs24 address-val" wx:if="{{item.distance!=null}}">距离:{{item.distance>1000?filters.toFix(item.distance/1000,2)+"km":filters.toFix(item.distance,0)+"m"}}
</view>
</view>
</view>
<view class="fs24 xc-ash-9f">地址:{{item.fulladdress}}</view>
</view>
</view>
</view>
</block>
</block>
<block wx:else>
<!-- 如果是点击选择门店分类后显示分类下的门店 -->
<view class="store_choose flex" wx:for="{{sec_sto.s_arr}}" data-ind="{{index}}" bindtap="choose_for_store">
<view class="store flex-vertical">
<!-- 需要点击事件 -->
<block wx:if="{{index==sec_pick_index}}">
<view class="circle white xc-hook fs20 red-b">Г</view>
</block>
<block wx:else>
<view class="circle xc-hooks"></view>
</block>
<view class="address-frame xc-ash">
<view class="flex-vertical-between ">
<view class="flex xc-ash">
<view class="fs28 xc-black3 address_name">{{item.pickup_name}}</view>
</view>
<view>
<view class="distance fs24 address-val" wx:if="{{item.distance!=null}}"> 距离:{{item.distance>1000?filters.toFix(item.distance/1000,2)+"km":filters.toFix(item.distance,0)+"m"}}</view>
</view>
</view>
<view class="fs24 xc-ash-9f">地址:{{item.fulladdress}}</view>
</view>
</view>
</view>
</block>
</view>
<!-- 门店列表底部 -->
<view class="store-bottom-frame">
<view class="store-bottom flex-center">
<view class="determine red-b fs30 white t-c" bindtap="sure_pick" data-openindstore="{{open_ind_store}}">确定</view>
<!-- <view class="default t-c fs28" bindtap="set_def_pick" data-openindstore="{{open_ind_store}}">设为默认</view> -->
</view>
</view>
</block>
<block wx:else>
<view class="popup-top flex-space-between">
<text class="fs32 nearby_store">门店分类选择</text>
<view>
<view>
<icon bindtap="onclickstore" class="modal-closes" color="black" size="22" type="cancel"></icon>
</view>
</view>
</view>
<view class="sort_store_list">
<view class="sort-store-frame" wx:for="{{all_sto}}" data-index="{{index}}" bindtap="choice_sort_store" data-region="{{item.name}}">
<view class="sort-store flex-vertical-between">
<view class="fs30" di>{{item.name}}</view>
<view class="black_rights-frame">
<view class="black_rights"></view>
</view>
</view>
</view>
</view>
</block>
</view>
</block>
</view>
<warn id="warn"></warn>