|
@@ -572,10 +572,11 @@
|
|
success: function(res) {
|
|
success: function(res) {
|
|
console.log(JSON.stringify(res.tempFilePaths));
|
|
console.log(JSON.stringify(res.tempFilePaths));
|
|
uploadImage('image', res.tempFilePaths[0], 'appData/',
|
|
uploadImage('image', res.tempFilePaths[0], 'appData/',
|
|
- result => {
|
|
|
|
|
|
+ result => {debugger
|
|
// 上传成功回调函数
|
|
// 上传成功回调函数
|
|
switch (_this.uploadType) {
|
|
switch (_this.uploadType) {
|
|
|
|
|
|
|
|
+
|
|
// 身份正面
|
|
// 身份正面
|
|
case 1:
|
|
case 1:
|
|
_this.dataDetails.businessLicenseAddressUrl = result
|
|
_this.dataDetails.businessLicenseAddressUrl = result
|
|
@@ -613,9 +614,9 @@
|
|
case 2:
|
|
case 2:
|
|
_this.dataDetails.cardAddressUrl = result
|
|
_this.dataDetails.cardAddressUrl = result
|
|
// 识别
|
|
// 识别
|
|
- _this.$request.baseRequest('get',
|
|
|
|
- '/driverInfo/personShibie', {
|
|
|
|
|
|
+ _this.$request.baseRequest('get','/driverInfo/personShibie', {
|
|
personImg: result,
|
|
personImg: result,
|
|
|
|
+ flag:1
|
|
}).then(res => {
|
|
}).then(res => {
|
|
_this.dataDetails.cardNumber = res.data.recPersonNo
|
|
_this.dataDetails.cardNumber = res.data.recPersonNo
|
|
_this.$forceUpdate()
|
|
_this.$forceUpdate()
|
|
@@ -623,10 +624,25 @@
|
|
.catch(res => {
|
|
.catch(res => {
|
|
uni.$u.toast(res.message);
|
|
uni.$u.toast(res.message);
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+ _this.$forceUpdate()
|
|
break
|
|
break
|
|
case 3:
|
|
case 3:
|
|
_this.dataDetails.cardBackAddressUrl = result
|
|
_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('.', '-')
|
|
|
|
+ }
|
|
|
|
+ _this.$forceUpdate()
|
|
|
|
+ })
|
|
|
|
+ .catch(res => {
|
|
|
|
+ uni.$u.toast(res.message);
|
|
|
|
+ });
|
|
_this.$forceUpdate()
|
|
_this.$forceUpdate()
|
|
break;
|
|
break;
|
|
}
|
|
}
|