|
@@ -38,7 +38,7 @@
|
|
|
|
|
|
<view class="flex row">
|
|
|
<view class="left-text">身份证号</view>
|
|
|
- <u--input placeholder="请输入身份证号" inputAlign='left' border="none" v-model="dataDetails.numberCard">
|
|
|
+ <u--input placeholder="请输入身份证号" inputAlign='left' border="none" v-model="dataDetails.numberCard" maxlength="18">
|
|
|
</u--input>
|
|
|
</view>
|
|
|
|
|
@@ -62,7 +62,7 @@
|
|
|
<view class="left-text">性别</view>
|
|
|
<u-radio-group v-model="dataDetails.driverSex" placement="row">
|
|
|
<u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in radiolist1" :key="index"
|
|
|
- :label="item.name" :name="item.name" @change="radioChange">
|
|
|
+ :label="item.name" :name="item.name" @change="radioChange" style="margin: 0 20rpx;">
|
|
|
</u-radio>
|
|
|
</u-radio-group>
|
|
|
</view>
|
|
@@ -70,7 +70,7 @@
|
|
|
<view class="flex row row-ch">
|
|
|
<view class="left-text">称呼</view>
|
|
|
<u--input placeholder="输入姓氏" class="ch-style" inputAlign='center' border="none"
|
|
|
- v-model="dataDetails.driverCall">
|
|
|
+ v-model="dataDetails.driverCall" maxlength="1">
|
|
|
</u--input>
|
|
|
<view class="flex align-center" v-if="dataDetails.driverSex=='男'">先生</view>
|
|
|
<view class="flex align-center" v-else>女士</view>
|
|
@@ -385,7 +385,6 @@
|
|
|
// maxSize: 50 * 1024 * 1024, //限制文件大小 50M
|
|
|
// isAdd: true,
|
|
|
imagesrc: null,
|
|
|
- payCheck: true
|
|
|
};
|
|
|
},
|
|
|
onLoad() {
|
|
@@ -681,13 +680,13 @@
|
|
|
uploadImg(type, index) {
|
|
|
this.uploadType = type
|
|
|
// this.isShowimgType = true
|
|
|
+ // this.imgTypeSelect()
|
|
|
this.index = index
|
|
|
this.imgTypeSelect()
|
|
|
},
|
|
|
// 上传图片
|
|
|
imgTypeSelect() {
|
|
|
// console.log(val)
|
|
|
- console.log(this.uploadType)
|
|
|
uni.chooseImage({
|
|
|
count: 1,
|
|
|
// sourceType: this.$helper.chooseImage.sourceType,
|
|
@@ -705,12 +704,12 @@
|
|
|
_this.$request.baseRequest('get',
|
|
|
'/driverInfo/personShibie', {
|
|
|
personImg: result,
|
|
|
+ flag:1
|
|
|
}).then(res => {
|
|
|
_this.dataDetails.numberCard = res.data.recPersonNo
|
|
|
if (res.data.recPerson) {
|
|
|
- _this.dataDetails.driverName = res.data
|
|
|
- .recPerson
|
|
|
-
|
|
|
+ _this.dataDetails.driverName = res.data.recPerson
|
|
|
+ _this.dataDetails.driverCall = res.data.recPerson.substring(0,1)
|
|
|
for (let i = 0; i < _this.dataDetails
|
|
|
.hyDriverPayeeInfoList.length; i++
|
|
|
) { //收款人需与司机本人一致
|
|
@@ -727,6 +726,20 @@
|
|
|
// 身份反面
|
|
|
case 2:
|
|
|
_this.dataDetails.cardBackAddressUrl = result
|
|
|
+ // 识别
|
|
|
+ _this.$request.baseRequest('get',
|
|
|
+ '/driverInfo/personShibie', {
|
|
|
+ personImg: result,
|
|
|
+ flag:2
|
|
|
+ }).then(res => {
|
|
|
+ if(res.data.idCardValidity){
|
|
|
+ let date = res.data.idCardValidity.split("-")[1]
|
|
|
+ _this.dataDetails.cardValidityDate = date.replace('.', '-').replace('.', '-')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(res => {
|
|
|
+ uni.$u.toast(res.message);
|
|
|
+ });
|
|
|
break
|
|
|
// 银行卡
|
|
|
case 3:
|
|
@@ -759,15 +772,15 @@
|
|
|
.catch(res => {
|
|
|
uni.$u.toast(res.message);
|
|
|
});
|
|
|
-
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
)
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
// } else {
|
|
|
+ // }
|
|
|
+ // else {
|
|
|
// switch (this.uploadType) {
|
|
|
// // case 0:
|
|
|
// // console.log('人车合影')
|
|
@@ -885,18 +898,22 @@
|
|
|
}).then(
|
|
|
res => {
|
|
|
if (res.data.distinguishNum != "01") { //不等于01 证明银行卡验证不通过
|
|
|
- this.payCheck = false //验证开关
|
|
|
+ // this.payCheck = false //验证开关
|
|
|
uni.$u.toast(res.data.distinguish);
|
|
|
+ }else{
|
|
|
+ uni.$u.route('/pages/mine/driverCertificationNext', {
|
|
|
+ data: JSON.stringify(this.dataDetails),
|
|
|
+ });
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- if (this.payCheck) {
|
|
|
- uni.$u.route('/pages/mine/driverCertificationNext', {
|
|
|
- data: JSON.stringify(this.dataDetails),
|
|
|
- });
|
|
|
- }
|
|
|
+ // if (this.payCheck) {
|
|
|
+ // uni.$u.route('/pages/mine/driverCertificationNext', {
|
|
|
+ // data: JSON.stringify(this.dataDetails),
|
|
|
+ // });
|
|
|
+ // }
|
|
|
|
|
|
},
|
|
|
validate() {
|