modifyPersonInformation.wxml
3.6 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
<!--pages/my/modifyPersonInformation/modifyPersonInformation.wxml-->
<view class='page'>
<view class='banner'>
<view class='iconfont icon-fanhui' catchtap='get_my'></view>
<view class='coupons'>修改个人信息</view>
</view>
<view class='content_item'>
<view class='item_list' bindtap='changePhoto'>
<view class='content_title'>头像</view>
<view class='person_information_box'>
<view class='head_portrait'>
<image src='{{photoPath}}'></image>
</view>
<view class='iconfont icon-jinru'></view>
</view>
</view>
<view class='item_list' bindtap='getamend_nickname'>
<view class='content_title'>昵称</view>
<view class='person_information_box'>
<view>
<view class='content_information' wx:if='{{!nick_names}}'>{{nick_name}}</view>
<view class='content_information' wx:else>{{nick_names}}</view>
</view>
<view class='iconfont icon-jinru'></view>
</view>
</view>
<view class='item_list'>
<view class='content_title'>性别</view>
<view class='person_information_box'>
<!-- <view class='content_information'>男</view> -->
<!-- <picker class='content_information'>
<text>男</text>
</picker> -->
<view>
<view class='content_information' bindtap='changeSex' wx:if='{{choose==10}}'>{{sex}}</view>
<view class='content_information' bindtap='changeSex' wx:elif='{{choose==1}}'>男</view>
<view class='content_information' bindtap='changeSex' wx:elif='{{choose==2}}'>女</view>
</view>
<view class='iconfont icon-jinru'></view>
</view>
</view>
<view class='item_list'>
<view class='content_title'>生日</view>
<view class='person_information_box'>
<!-- <picker mode="date" class='content_information'>
<text>{{user.birthday}}</text>
</picker> -->
<picker mode="date" value="{{date}}" start="1920-01-01" end="2019-06-01" bindchange="bindDateChange" class='content_information'>
<view>{{birthday}}</view>
</picker>
<view class='iconfont icon-jinru'></view>
</view>
</view>
<view class='item_list' bindtap='getamend_nickphone'>
<view class='content_title'>手机号</view>
<view class='person_information_box'>
<!-- <view class='content_information'>男</view> -->
<view class='content_information'>{{phone}}</view>
<view class='iconfont icon-jinru'></view>
</view>
</view>
<view class='new_address_btn' bindtap='confirmUpdate'>确认修改</view>
</view>
</view>
<view wx:if='{{flag}}' class='mask'>
<view class='show_change_sex'>
<view class='choose_sex'>选择性别</view>
<view class='choose'>
<view class='man'>
<view class='xuanzhong'>
<view class='iconfont icon-weixuanzhong {{choose===1?"active":""}}' bindtap='choose1'></view>
</view>
<view class='nan'>男</view>
</view>
<view class='man'>
<view class='xuanzhong'>
<view class='iconfont icon-weixuanzhong {{choose===2?"active":""}}' bindtap='choose2'></view>
</view>
<view class='nan'>女</view>
</view>
</view>
<view class='confirm' bindtap='hide'>确定 </view>
</view>
</view>