|
|
@@ -3,30 +3,41 @@
|
|
|
<view class="form" style="padding-top: 20rpx;">
|
|
|
<u-form :border="true" ref="uForm">
|
|
|
<u-form-item :required="true" label="姓名:" prop="name" label-width="150">
|
|
|
- <u-input :disabled="true" :border="true" placeholder="姓名,必填" v-model="name" type="text"></u-input>
|
|
|
+ <view style="background-color: #f6f6f6;padding: 0 20rpx;border-radius: 4rpx;">
|
|
|
+ <u-input disabled :border="false" placeholder="姓名,必填" v-model="name" type="text"></u-input>
|
|
|
+ </view>
|
|
|
</u-form-item>
|
|
|
<u-form-item :required="true" label="手机号:" prop="tel" label-width="150">
|
|
|
<u-input :border="true" maxlength="11" placeholder="请输入11位手机号码" v-model="tel" type="number">
|
|
|
</u-input>
|
|
|
</u-form-item>
|
|
|
<u-form-item :required="true" label="房间号:" prop="room_name" label-width="150">
|
|
|
- <u-input :disabled="true" :border="true" placeholder="请输入房间号" v-model="room_name" type="text">
|
|
|
- </u-input>
|
|
|
+ <view style="background-color: #f6f6f6;padding: 0 20rpx;border-radius: 4rpx;">
|
|
|
+ <u-input disabled :border="false" placeholder="请输入房间号" v-model="room_name" type="text">
|
|
|
+ </u-input>
|
|
|
+ </view>
|
|
|
</u-form-item>
|
|
|
<u-form-item :required="true" label="住户类型:" prop="type" label-width="150">
|
|
|
- <u-input :border="true" type="select" :select-open="typeShow" v-model="typeLabel"
|
|
|
- placeholder="请选择住户类型" @click="typeShow = true"></u-input>
|
|
|
+ <view style="background-color: #f6f6f6;padding: 0 20rpx;border-radius: 4rpx;">
|
|
|
+ <u-input disabled :border="false" placeholder="请选择住户类型" v-model="typeLabel" type="text">
|
|
|
+ </u-input>
|
|
|
+ </view>
|
|
|
</u-form-item>
|
|
|
<u-form-item :required="true" label="国籍:" prop="nationality" label-width="150">
|
|
|
- <u-input :border="true" type="select" :select-open="nationalityShow" v-model="nationalityLabel"
|
|
|
- @click="nationalityShow = true"></u-input>
|
|
|
+ <view style="background-color: #f6f6f6;padding: 0 20rpx;border-radius: 4rpx;">
|
|
|
+ <u-input disabled :border="false" placeholder="国籍" v-model="nationalityLabel" type="text">
|
|
|
+ </u-input>
|
|
|
+ </view>
|
|
|
</u-form-item>
|
|
|
<u-form-item label="证件类型:" prop="nationalityName" label-width="150">
|
|
|
- <u-input :disabled="true" :border="true" type="text" v-model="nationalityName"></u-input>
|
|
|
+ <view style="background-color: #f6f6f6;padding: 0 20rpx;border-radius: 4rpx;">
|
|
|
+ <u-input disabled :border="false" placeholder="证件类型" v-model="nationalityName" type="text"></u-input>
|
|
|
+ </view>
|
|
|
</u-form-item>
|
|
|
<u-form-item :required="type==0?true:false" label="证件号码" prop="id_card" label-width="150">
|
|
|
- <u-input :border="true" placeholder="住户类型是业主时,必填" :trim="true" maxlength="18" v-model="id_card"
|
|
|
- type="text"></u-input>
|
|
|
+ <view style="background-color: #f6f6f6;padding: 0 20rpx;border-radius: 4rpx;">
|
|
|
+ <u-input disabled :border="false" placeholder="身份证号" v-model="id_card" type="text"></u-input>
|
|
|
+ </view>
|
|
|
</u-form-item>
|
|
|
<u-form-item :required="true" label="性别" prop="sex" label-width="150">
|
|
|
<u-radio-group v-model="sex">
|
|
|
@@ -98,7 +109,7 @@
|
|
|
</view>
|
|
|
<view class="category" style="padding-bottom: 140rpx;">
|
|
|
<view v-for="(item, index) in iconArray" :key="index" class="category_item">
|
|
|
- <view class="category_item_wrap" :data-index="item.index">
|
|
|
+ <view class="category_item_wrap" :data-index="item.index">
|
|
|
<view class="icon_wrap">
|
|
|
<image :src="item.iconUrl" class="index_icon"></image>
|
|
|
</view>
|
|
|
@@ -148,7 +159,7 @@
|
|
|
show: false,
|
|
|
|
|
|
//背景图
|
|
|
- bgsrc:'https://szsq.nxzhsq.cn/community/miniofile/image/camera1.png',
|
|
|
+ bgsrc: 'https://szsq.nxzhsq.cn/community/miniofile/image/camera1.png',
|
|
|
bgWidth: 350,
|
|
|
bgHeight: 320,
|
|
|
//显示图
|
|
|
@@ -170,7 +181,7 @@
|
|
|
value: '0',
|
|
|
label: '业主'
|
|
|
},
|
|
|
- {
|
|
|
+ {
|
|
|
value: '1',
|
|
|
label: '家属'
|
|
|
},
|
|
|
@@ -179,18 +190,18 @@
|
|
|
label: '租户'
|
|
|
}
|
|
|
],
|
|
|
- //国籍
|
|
|
+ //国籍
|
|
|
defaultNationality: [0],
|
|
|
- nationalityLabel: '中国大陆',
|
|
|
+ nationalityLabel: '中国大陆',
|
|
|
nationalityShow: false,
|
|
|
nationality: 0,
|
|
|
- nationalityName: '身份证',
|
|
|
+ nationalityName: '身份证',
|
|
|
nationalityArry: [{
|
|
|
value: '0',
|
|
|
label: '中国大陆'
|
|
|
},
|
|
|
{
|
|
|
- value: '1',
|
|
|
+ value: '1',
|
|
|
label: '中国香港/澳门'
|
|
|
},
|
|
|
{
|
|
|
@@ -297,7 +308,7 @@
|
|
|
let sex = options.sex;
|
|
|
let passport_img_uri = options.passport_img_uri || null;
|
|
|
let entry_img_uri = options.entry_img_uri || null;
|
|
|
- let image_uri = options.image_uri || null; //选中性别
|
|
|
+ let image_uri = options.faceUrl || null; //选中性别
|
|
|
this.setData({
|
|
|
user_id: user_id,
|
|
|
name: name,
|
|
|
@@ -349,7 +360,7 @@
|
|
|
if (this.nationality == 0) {
|
|
|
this.nationalityName = '身份证';
|
|
|
} else if (this.nationality == 1) {
|
|
|
- this.nationalityName = '港澳居民往来内地通行证';
|
|
|
+ this.nationalityName = '港澳居民往来内地通行证';
|
|
|
} else if (this.nationality == 2) {
|
|
|
this.nationalityName = '台湾居民往来大陆通行证';
|
|
|
} else if (this.nationality == 3) {
|
|
|
@@ -389,7 +400,7 @@
|
|
|
that.setData({
|
|
|
passport_img_uri: res.data.data.link,
|
|
|
show_passport_img_uri: imgUrl
|
|
|
- });
|
|
|
+ });
|
|
|
} else if (that.operaType == 2) {
|
|
|
that.setData({
|
|
|
entry_img_uri: res.data.data.link,
|
|
|
@@ -400,7 +411,7 @@
|
|
|
image_uri: res.data.data.link,
|
|
|
show_image_uri: imgUrl,
|
|
|
face_code: res.data.data.imgMd5
|
|
|
- });
|
|
|
+ });
|
|
|
}
|
|
|
})
|
|
|
|
|
|
@@ -447,8 +458,8 @@
|
|
|
let entry_img_uri = that.entry_img_uri;
|
|
|
|
|
|
if (nationality == 3) {
|
|
|
- params['passport_img_uri'] = that.passport_img_uri;
|
|
|
- params['entry_img_uri'] = that.entry_img_uri;
|
|
|
+ params['passportImgUri'] = that.passport_img_uri;
|
|
|
+ params['entryImgUri'] = that.entry_img_uri;
|
|
|
|
|
|
if (type == 0) {
|
|
|
if (!passport_img_uri && !that.show_passport_img_uri) {
|
|
|
@@ -475,7 +486,7 @@
|
|
|
params['sex'] = that.sex; //添加了人脸
|
|
|
|
|
|
params['member_id'] = app.globalData.member.id; //申请来源0-小程序添加 1-后台添加 2-后台导入 3-app添加
|
|
|
- params['operatorName'] = app.globalData.member.name;
|
|
|
+ params['operatorName'] = app.globalData.member.name;
|
|
|
params['create_type'] = '0';
|
|
|
params['name'] = that.name;
|
|
|
console.log(params)
|