11 changed files with 341 additions and 118 deletions
@ -1,43 +1,140 @@ |
|||||
<!--pages/user/myInfo/index.wxml--> |
<!--pages/user/myInfo/index.wxml--> |
||||
<view class="container"> |
<view class="container"> |
||||
<mp-cells ext-class="page_bd"> |
<mp-cells ext-class="page_bd" > |
||||
<mp-cell |
<view class="cellAll"> |
||||
bindtap="onTapItem" data-type="userIcon" |
<mp-cell |
||||
title="头像" |
bindtap="onTapItem" data-type="userIcon" |
||||
link="true" |
title="头像" |
||||
ext-class="cell-item"> |
link="true" |
||||
<image slot="footer" class="user_logo" src="{{avatarUrl}}" /> |
ext-class="cell-item"> |
||||
</mp-cell> |
<image slot="footer" class="user_logo" src="{{avatarUrl}}" /> |
||||
<mp-cell |
</mp-cell> |
||||
bindtap="onTapItem" data-type="userName" |
<mp-cell link="true" |
||||
title="名字" |
data-type="userName" |
||||
ext-class="cell-item"> |
title="姓名" bindtap="onTapItem" |
||||
<!-- <view slot="footer" class="msg_footer" >{{nikeName}}</view> --> |
ext-class="cell-item"> |
||||
<input slot="footer" class="footer_input_phone" maxlength="120" bindinput="bindNickNameInput" value="{{nickName}}" disabled></input> |
<!-- <view slot="footer" class="msg_footer" >{{nikeName}}</view> --> |
||||
</mp-cell> |
<input slot="footer" style="text-align:right;" class="footer_input_phone" maxlength="120" bindinput="bindNickNameInput" value="{{nickName}}" disabled placeholder="请输入"></input> |
||||
<mp-cell |
</mp-cell> |
||||
bindtap="onTapItem" data-type="userPhone" |
<mp-cell link="true" |
||||
title="手机号" |
data-type="userPhone" |
||||
ext-class="cell-item"> |
title="手机号" bindtap="onTapItem" |
||||
<!-- <view slot="footer" class="msg_footer" >{{phone}}</view> --> |
ext-class="cell-item"> |
||||
<input slot="footer" class="footer_input_phone" maxlength="45" bindinput="bindPhoneInput" value="{{phone}}" disabled></input> |
<!-- <view slot="footer" class="msg_footer" >{{phone}}</view> --> |
||||
</mp-cell> |
<input slot="footer" style="text-align:right;" class="footer_input_phone" maxlength="45" bindinput="bindPhoneInput" value="{{phone}}" disabled placeholder="请输入"></input> |
||||
<mp-cell |
</mp-cell> |
||||
bindtap="onTapItem" data-type="workUnit" |
<!-- 新加的 所在街道 年龄 性别 --> |
||||
title="工作单位" |
<mp-cell link="true" |
||||
ext-class="cell-item"> |
data-type="userStreet" |
||||
<!-- <view slot="footer" class="msg_footer" >{{company}}</view> --> |
title="所在街道" bindtap="onTapItem" |
||||
<input slot="footer" class="footer_input_phone" maxlength="45" bindinput="bindCompanyInput" value="{{company}}" disabled></input> |
ext-class="cell-item"> |
||||
</mp-cell> |
<!-- <view slot="footer" class="msg_footer" >{{phone}}</view> --> |
||||
<mp-cell |
<input slot="footer" style="text-align:right;" class="footer_input_phone" maxlength="45" bindinput="bindStreetInput" value="{{street}}" disabled placeholder=""></input> |
||||
bindtap="onTapItem" data-type="position" |
</mp-cell> |
||||
title="职务" |
<!-- 上面的数据不能修改 --> |
||||
ext-class="cell-item"> |
<mp-cell link="true" |
||||
<!-- <view slot="footer" class="msg_footer" >{{position}}</view> --> |
bindtap="onTapItem" data-type="userAge" |
||||
<input slot="footer" class="footer_input_phone" maxlength="45" bindinput="bindPositionInput" value="{{position}}" disabled></input> |
title="年龄" |
||||
</mp-cell> |
ext-class="cell-item"> |
||||
<view class="btnView"> |
<!-- <view slot="footer" class="msg_footer" >{{phone}}</view> --> |
||||
<e-ibutton title="提交" bind:onTap="submit"/> |
<input slot="footer" style="text-align:right;" class="footer_input_phone" maxlength="45" bindinput="bindAgeInput" value="{{age}}" disabled placeholder="请输入"></input> |
||||
|
</mp-cell> |
||||
|
<!-- 下面是选择框 --> |
||||
|
<mp-cell link="true" |
||||
|
data-type="userGender" |
||||
|
title="性别" |
||||
|
ext-class="cell-item"> |
||||
|
<picker slot="footer" class="footer_input_phone picker-view" range="{{gender}}" bindchange="bindGenderChange"> |
||||
|
<view class="picker-block"> |
||||
|
<block wx:if="{{genderIndex == 0}}" > |
||||
|
<view class="picker-if"> |
||||
|
请选择 |
||||
|
</view> |
||||
|
</block> |
||||
|
<block wx:else> |
||||
|
{{gender[genderIndex]}} |
||||
|
</block> |
||||
|
</view> |
||||
|
</picker> |
||||
|
</mp-cell> |
||||
|
<mp-cell link="true" |
||||
|
bindtap="onTapItem" data-type="workUnit" |
||||
|
title="工作单位" |
||||
|
ext-class="cell-item"> |
||||
|
<!-- <view slot="footer" class="msg_footer" >{{company}}</view> --> |
||||
|
<input slot="footer" class="footer_input_phone" style="text-align:right;" maxlength="45" bindinput="bindCompanyInput" value="{{company}}" disabled placeholder="请输入"></input> |
||||
|
</mp-cell> |
||||
|
<mp-cell link="true" |
||||
|
bindtap="onTapItem" data-type="position" |
||||
|
title="职务" |
||||
|
ext-class="cell-item"> |
||||
|
<!-- <view slot="footer" class="msg_footer" >{{position}}</view> --> |
||||
|
<input slot="footer" class="footer_input_phone"style="text-align:right;" maxlength="45" bindinput="bindPositionInput" value="{{position}}" disabled placeholder="请输入"></input> |
||||
|
</mp-cell> |
||||
|
<!-- 新加的 学历 职称 人才称号 获得奖项(荣誉) --> |
||||
|
<!-- 下面是选择框 --> |
||||
|
<mp-cell link="true" |
||||
|
data-type="userEducation" |
||||
|
title="学历" |
||||
|
ext-class="cell-item"> |
||||
|
<!-- <view slot="footer" class="msg_footer" >{{phone}}</view> --> |
||||
|
<!-- <input slot="footer" class="footer_input_phone" style="text-align:right;" maxlength="45" bindinput="bindEducationInput" value="{{education}}" disabled placeholder="请选择"></input> --> |
||||
|
<picker slot="footer" class="footer_input_phone picker-view" style="text-align:right;" range="{{education}}" bindchange="bindEducationChange"> |
||||
|
<view class="picker-block"> |
||||
|
<block wx:if="{{educationIndex == 0}}" > |
||||
|
<view class="picker-if"> |
||||
|
请选择 |
||||
|
</view> |
||||
|
</block> |
||||
|
<block wx:else> |
||||
|
<!-- {{education[educationIndex]}} --> |
||||
|
{{education[educationIndex]}} |
||||
|
</block> |
||||
|
</view> |
||||
|
</picker> |
||||
|
</mp-cell> |
||||
|
<mp-cell link="true" |
||||
|
bindtap="onTapItem" data-type="userProfessionalTitle" |
||||
|
title="职称" |
||||
|
ext-class="cell-item"> |
||||
|
<!-- <view slot="footer" class="msg_footer" >{{phone}}</view> --> |
||||
|
<input slot="footer" class="footer_input_phone" maxlength="45" bindinput="bindProfessionalTitleInput" value="{{professionalTitle}}" disabled placeholder="请输入" style="text-align:right;"></input> |
||||
|
</mp-cell> |
||||
|
<mp-cell link="true" |
||||
|
bindtap="onTapItem" data-type="userTalentTitle" |
||||
|
title="人才称号" |
||||
|
ext-class="cell-item"> |
||||
|
<!-- <view slot="footer" class="msg_footer" >{{phone}}</view> --> |
||||
|
<input slot="footer" style="text-align:right;" class="footer_input_phone" maxlength="45" bindinput="bindTalentTitleInput" value="{{talentTitle}}" disabled placeholder="请输入"></input> |
||||
|
</mp-cell> |
||||
|
<mp-cell link="true" |
||||
|
bindtap="onTapItem" data-type="userPrize" |
||||
|
title="获得奖项(荣誉)" |
||||
|
ext-class="cell-item"> |
||||
|
<!-- <view slot="footer" class="msg_footer" >{{phone}}</view> --> |
||||
|
<input slot="footer" class="footer_input_phone" style="text-align:right;" maxlength="45" bindinput="bindPrizeInput" value="{{prize}}" disabled placeholder="请输入"></input> |
||||
|
</mp-cell> |
||||
|
</view> |
||||
|
<view class="btnView" style="z-index:100;"> |
||||
|
<e-ibutton title="保存" bind:onTap="submit"/> |
||||
</view> |
</view> |
||||
</mp-cells> |
</mp-cells> |
||||
</view> |
</view> |
||||
|
|
||||
|
<van-dialog |
||||
|
use-slot |
||||
|
title="编辑" |
||||
|
show="{{ show }}" |
||||
|
show-cancel-button |
||||
|
confirm-button-open-type="getUserInfo" |
||||
|
bind:close="onClose" |
||||
|
bind:getuserinfo="getUserInfo" |
||||
|
bind:confirm="vantConfirm" |
||||
|
> |
||||
|
<input placeholder="请输入修改后的内容" value="{{value}}" bindinput="tempData" class="diag_input"></input> |
||||
|
</van-dialog> |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
Loading…
Reference in new issue