11 changed files with 341 additions and 118 deletions
@ -1,43 +1,140 @@ |
|||
<!--pages/user/myInfo/index.wxml--> |
|||
<view class="container"> |
|||
<mp-cells ext-class="page_bd"> |
|||
<mp-cell |
|||
bindtap="onTapItem" data-type="userIcon" |
|||
title="头像" |
|||
link="true" |
|||
ext-class="cell-item"> |
|||
<image slot="footer" class="user_logo" src="{{avatarUrl}}" /> |
|||
</mp-cell> |
|||
<mp-cell |
|||
bindtap="onTapItem" data-type="userName" |
|||
title="名字" |
|||
ext-class="cell-item"> |
|||
<!-- <view slot="footer" class="msg_footer" >{{nikeName}}</view> --> |
|||
<input slot="footer" class="footer_input_phone" maxlength="120" bindinput="bindNickNameInput" value="{{nickName}}" disabled></input> |
|||
</mp-cell> |
|||
<mp-cell |
|||
bindtap="onTapItem" data-type="userPhone" |
|||
title="手机号" |
|||
ext-class="cell-item"> |
|||
<!-- <view slot="footer" class="msg_footer" >{{phone}}</view> --> |
|||
<input slot="footer" class="footer_input_phone" maxlength="45" bindinput="bindPhoneInput" value="{{phone}}" disabled></input> |
|||
</mp-cell> |
|||
<mp-cell |
|||
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" maxlength="45" bindinput="bindCompanyInput" value="{{company}}" disabled></input> |
|||
</mp-cell> |
|||
<mp-cell |
|||
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" maxlength="45" bindinput="bindPositionInput" value="{{position}}" disabled></input> |
|||
</mp-cell> |
|||
<view class="btnView"> |
|||
<e-ibutton title="提交" bind:onTap="submit"/> |
|||
<mp-cells ext-class="page_bd" > |
|||
<view class="cellAll"> |
|||
<mp-cell |
|||
bindtap="onTapItem" data-type="userIcon" |
|||
title="头像" |
|||
link="true" |
|||
ext-class="cell-item"> |
|||
<image slot="footer" class="user_logo" src="{{avatarUrl}}" /> |
|||
</mp-cell> |
|||
<mp-cell link="true" |
|||
data-type="userName" |
|||
title="姓名" bindtap="onTapItem" |
|||
ext-class="cell-item"> |
|||
<!-- <view slot="footer" class="msg_footer" >{{nikeName}}</view> --> |
|||
<input slot="footer" style="text-align:right;" class="footer_input_phone" maxlength="120" bindinput="bindNickNameInput" value="{{nickName}}" disabled placeholder="请输入"></input> |
|||
</mp-cell> |
|||
<mp-cell link="true" |
|||
data-type="userPhone" |
|||
title="手机号" bindtap="onTapItem" |
|||
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="bindPhoneInput" value="{{phone}}" disabled placeholder="请输入"></input> |
|||
</mp-cell> |
|||
<!-- 新加的 所在街道 年龄 性别 --> |
|||
<mp-cell link="true" |
|||
data-type="userStreet" |
|||
title="所在街道" bindtap="onTapItem" |
|||
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="bindStreetInput" value="{{street}}" disabled placeholder=""></input> |
|||
</mp-cell> |
|||
<!-- 上面的数据不能修改 --> |
|||
<mp-cell link="true" |
|||
bindtap="onTapItem" data-type="userAge" |
|||
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="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> |
|||
</mp-cells> |
|||
</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