|
@@ -8,7 +8,7 @@
|
|
<view v-if="consentStatus == true">
|
|
<view v-if="consentStatus == true">
|
|
<!-- 公司营业执照上传 -->
|
|
<!-- 公司营业执照上传 -->
|
|
<view v-if="license1 != ''">
|
|
<view v-if="license1 != ''">
|
|
- <upload v-if="consentStatus == true" class="upload" ref="upload" :action="action"
|
|
|
|
|
|
+ <upload :file-list='businesslicense' v-if="consentStatus == true" class="upload" ref="upload" :action="action"
|
|
:max-size="maxSize" :max-count="1" :size-type="['compressed']" @on-success="getImgUrl"
|
|
:max-size="maxSize" :max-count="1" :size-type="['compressed']" @on-success="getImgUrl"
|
|
@on-remove="onRemove" @on-uploaded="isAdd = true" :before-upload="filterFileType"
|
|
@on-remove="onRemove" @on-uploaded="isAdd = true" :before-upload="filterFileType"
|
|
:options="uploadOptions" :custom="uploadCustom"></upload>
|
|
:options="uploadOptions" :custom="uploadCustom"></upload>
|
|
@@ -87,6 +87,7 @@
|
|
uploadCustom: true,
|
|
uploadCustom: true,
|
|
uploadCustom1: true,
|
|
uploadCustom1: true,
|
|
uploadCustom2: true,
|
|
uploadCustom2: true,
|
|
|
|
+ businesslicense:[],
|
|
uploadOptions: {
|
|
uploadOptions: {
|
|
"text": "上传营业执照",
|
|
"text": "上传营业执照",
|
|
"bgc": ""
|
|
"bgc": ""
|
|
@@ -135,6 +136,56 @@ status:false,
|
|
this.switchs1 = "switchs2"
|
|
this.switchs1 = "switchs2"
|
|
this.switchs2 = "switchs1"
|
|
this.switchs2 = "switchs1"
|
|
}
|
|
}
|
|
|
|
+ if(options.id){
|
|
|
|
+ this.$api.doRequest('get', '/identityAuthenticationInfo/api/getIdentityAuthenticationInfo', {id:options.id},
|
|
|
|
+ 'application/json;charset=UTF-8').then(res => {
|
|
|
|
+ console.log("成功连接")
|
|
|
|
+
|
|
|
|
+ this.identityAuthenticationInfo = res.data.data
|
|
|
|
+ if (this.identityAuthenticationInfo.businessLicenseAddressUrl != "") {
|
|
|
|
+ this.businesslicense=[{url:this.identityAuthenticationInfo.businessLicenseAddressUrl}]
|
|
|
|
+ }
|
|
|
|
+ console.log(this.businesslicense)
|
|
|
|
+ // if (this.deptList.cardAddressUrl != "") {
|
|
|
|
+ // this.id = this.deptList.cardAddressUrl.split(",")
|
|
|
|
+ // this.idup = this.id[0]
|
|
|
|
+ // this.idlow = this.id[1]
|
|
|
|
+ // }
|
|
|
|
+ // if (this.deptList.payeeAddressUrl != "") {
|
|
|
|
+ // this.payeeAddress = this.deptList.payeeAddressUrl.split(","),
|
|
|
|
+ // this.bank1 = this.payeeAddress[0]
|
|
|
|
+ // this.bank2 = this.payeeAddress[1]
|
|
|
|
+ // }
|
|
|
|
+ // console.log(this.deptList.customerTypeFlag, "判断")
|
|
|
|
+ if (this.identityAuthenticationInfo.customerTypeFlag == 2) {
|
|
|
|
+ this.consentStatus = true
|
|
|
|
+ this.consentStatus1 = false
|
|
|
|
+ this.switchs1 = "switchs1"
|
|
|
|
+ this.switchs2 = "switchs2"
|
|
|
|
+ } else {
|
|
|
|
+ this.consentStatus = false
|
|
|
|
+ this.consentStatus1 = true
|
|
|
|
+ this.switchs1 = "switchs2"
|
|
|
|
+ this.switchs2 = "switchs1"
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ .catch(res => {
|
|
|
|
+ if (res.errmsg) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: res.errmsg,
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "系统异常,请联系管理员",
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
},
|
|
},
|
|
onShow(){
|
|
onShow(){
|
|
|
|
|