|
|
@@ -22,8 +22,13 @@
|
|
|
|
|
|
<!-- 证件号 -->
|
|
|
<view class="form-label-input">
|
|
|
- <view class="phone-form-label"><text class="form-label-require">*</text>证件号</view>
|
|
|
- <input v-model="data.idcard" placeholder="请输入证件号" />
|
|
|
+ <view class="phone-form-label" @click="idCardChange">
|
|
|
+ <text class="form-label-require">*</text>
|
|
|
+ <text v-if="data.idtype ==1">身份证号</text>
|
|
|
+ <text v-if="data.idtype ==2">护照号</text>
|
|
|
+ <icon @click="idCardChange" class="change-icon">切换</icon>
|
|
|
+ </view>
|
|
|
+ <input v-model="data.idcard" placeholder="请输入证件号" />
|
|
|
<icon :style="{ backgroundImage: 'url(' + data.jtIcon + ')' }"></icon>
|
|
|
</view>
|
|
|
<!-- 电话 -->
|
|
|
@@ -68,6 +73,7 @@
|
|
|
userId: null,
|
|
|
images: null,
|
|
|
jtIcon: '',
|
|
|
+ idtype: 1
|
|
|
})
|
|
|
|
|
|
onLoad((options) => {
|
|
|
@@ -77,6 +83,10 @@
|
|
|
initPage();
|
|
|
})
|
|
|
|
|
|
+ function idCardChange() {
|
|
|
+ data.idtype = data.idtype == 1 ? 2 : 1;
|
|
|
+ }
|
|
|
+
|
|
|
function openFilePicker(){
|
|
|
filePicker.value.chooseFiles()
|
|
|
}
|
|
|
@@ -194,6 +204,7 @@
|
|
|
idcard: data.idcard,
|
|
|
realName: data.realName,
|
|
|
userId: data.userId,
|
|
|
+ idtype: data.idtype
|
|
|
}
|
|
|
myApi.getMineUpdate(opt).then(res => {
|
|
|
if (res.data) {
|