124 lines
7.4 KiB
Plaintext
124 lines
7.4 KiB
Plaintext
<!--pages/index/mineinfo.wxml-->
|
|
<cu-custom bgColor="bg-darkblue" isBack="{{true}}" isRelaunch="{{false}}">
|
|
<view slot="content" style="color:#FFFFFF;">个人信息</view>
|
|
</cu-custom>
|
|
<scroll-view style="width:100%;margin-bottom: 110rpx;" wx:if="{{isBindPhone}}">
|
|
<view class="content-view ">
|
|
<view class="content-detail">
|
|
<view class="table-list padding-bottom">
|
|
<view class="table-item-no">
|
|
<view class="table-item-title text-blod text-black text-lg">姓名:</view>
|
|
<view class="table-item-content-3 text-black text-df">
|
|
<input type="text" placeholder="请输入姓名" bindinput="editInfo" data-type="name" value="{{personInfo.fullName}}"/>
|
|
</view>
|
|
</view>
|
|
<view class="line-gray"></view>
|
|
<view class="table-item-no">
|
|
<view class="table-item-title text-blod text-black text-lg">证件号码:</view>
|
|
<view class="table-item-content-3 text-black text-df">
|
|
<input type="text" placeholder="请输入证件号码" bindinput="editInfo" data-type="card" value="{{personInfo.idCardNumber}}"/>
|
|
</view>
|
|
</view>
|
|
<view class="line-gray"></view>
|
|
<!-- <view class="table-item-no">
|
|
<view class="table-item-title text-blod text-black text-lg">出生日期:</view>
|
|
<view class="table-item-content-3 text-black text-df">
|
|
<picker mode="date" value="{{personInfo.birthDate}}" bindchange="bindDateChange">
|
|
<view class="picker">
|
|
{{personInfo.birthDate}}
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view class="line-gray"></view> -->
|
|
<view class="table-item-no">
|
|
<view class="table-item-title text-blod text-black text-lg">性别:</view>
|
|
<view class="table-item-content-3 text-black text-df">
|
|
<picker bindchange="bindSexPickerChange" value="{{sexIdx}}" range="{{sexArray}}">
|
|
<view class="picker">
|
|
{{sexArray[sexIdx]}}
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view class="line-gray"></view>
|
|
<view class="table-item-no">
|
|
<view class="table-item-title text-blod text-black text-lg">文化程度:</view>
|
|
<view class="table-item-content-3 text-black text-df">
|
|
<picker bindchange="bindCultruePickerChange" value="{{cultrueIdx}}" range="{{cultrueList}}">
|
|
<view class="picker">
|
|
{{cultrueList[cultrueIdx]}}
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view class="line-gray"></view>
|
|
<view class="table-item-no">
|
|
<view class="table-item-title text-blod text-black text-lg">电话号码:</view>
|
|
<view class="table-item-content-3 text-black text-df">
|
|
<input type="text" placeholder="请输入电话号码" bindinput="editInfo" data-type="telephone" value="{{personInfo.telephone}}"/>
|
|
</view>
|
|
</view>
|
|
<view class="line-gray"></view>
|
|
<!-- <view class="table-item-no">
|
|
<view class="table-item-title text-blod text-black text-lg">单位名称:</view>
|
|
<view class="table-item-content-3 text-black text-df">
|
|
<input type="text" placeholder="请输入单位名称"/>
|
|
</view>
|
|
</view>
|
|
<view class="line-gray"></view> -->
|
|
<view class="table-item-no">
|
|
<view class="table-item-title text-blod text-black text-lg">头像:</view>
|
|
<view class="table-item-content-3 text-black text-df photo-box">
|
|
<image src="../../images/icons/upload-avatar.png" bindtap="uploadImg" wx:if="{{!personInfo.userPhotoId}}" class="default-avatar" mode="widthFix" data-type="avatar"></image>
|
|
<image bindtap="uploadImg" class="avatar" src="{{sourceUrl + personInfo.userPhotoId}}" wx:if="{{personInfo.userPhotoId}}" mode="widthFix" data-type="avatar"></image>
|
|
</view>
|
|
</view>
|
|
<view class="line-gray"></view>
|
|
<view class="table-item-no">
|
|
<view class="table-item-title text-blod text-black text-lg">学历证书:</view>
|
|
<view class="table-item-content-3 text-black text-df photo-box">
|
|
<image src="../../images/icons/upload-edu.png" bindtap="uploadImg" wx:if="{{!personInfo.educationPhoto}}" mode="widthFix" data-type="education" style="width: 350rpx;"></image>
|
|
<image class="card" src="{{sourceUrl + personInfo.educationPhoto}}" wx:if="{{personInfo.educationPhoto}}" mode="widthFix" data-type="education"></image>
|
|
</view>
|
|
</view>
|
|
<view class="line-gray"></view>
|
|
<view class="table-item-no">
|
|
<view class="id-card-box id-card-box-f">
|
|
<view class="card-title">身份证正面:</view>
|
|
<view class="id-card-photo">
|
|
<image src="../../images/icons/upload-id-f.png" bindtap="uploadImg" wx:if="{{!personInfo.idCardFront}}" class="default-avatar" mode="widthFix" data-type="front"></image>
|
|
<image class="card" src="{{sourceUrl + personInfo.idCardFront}}" wx:if="{{personInfo.idCardFront}}" mode="widthFix" data-type="front"></image>
|
|
</view>
|
|
</view>
|
|
<view class="id-card-box id-card-box-f">
|
|
<view class="card-title">身份证反面:</view>
|
|
<view class="id-card-photo">
|
|
<image src="../../images/icons/upload-id-b.png" bindtap="uploadImg" data-type="back" wx:if="{{!personInfo.idCardBack}}" class="default-avatar" mode="widthFix"></image>
|
|
<image class="card" src="{{sourceUrl + personInfo.idCardBack}}" bindtap="uploadImg" data-type="back" wx:if="{{personInfo.idCardBack}}" mode="widthFix"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="line-gray"></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
|
|
<view class="bind-phone" wx:if="{{!isBindPhone}}">
|
|
<view class="content-view">
|
|
<view class="table-item-no bind-phone-box">
|
|
<view class="table-item-title text-blod text-black text-lg">手机号码:</view>
|
|
<view class="table-item-content-3 text-black text-df">
|
|
<input type="text" placeholder="请输入手机号码" model:value="{{bindPhone}}"/>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="save" wx:if="{{isBindPhone}}">
|
|
<view class="save-btn" bindtap="savePersonInfo">保存</view>
|
|
</view>
|
|
<view class="save" wx:if="{{!isBindPhone}}">
|
|
<view class="save-btn" bindtap="doBindPhone">绑定手机</view>
|
|
</view> |