Browse Source

修改用户、商户、代理的身份证上传方式,与APP一致,统一存全路径。

main
daimenglei 1 month ago
parent
commit
4dd46609a0
  1. 18
      src/views/business/agentVerification/index.vue
  2. 18
      src/views/business/merchantVerification/index.vue
  3. 18
      src/views/business/userVerification/index.vue

18
src/views/business/agentVerification/index.vue

@ -181,13 +181,13 @@
{{auditForm.legalPersonIdCardShow}}
</el-form-item>
<el-form-item :label="$t('business.userManager.userVerification.idCardFront') + ':'">
<el-image style="width: 90px; height: 30px" :src="getImgUrl + auditForm.idCardFrontImagePath" :preview-src-list="[getImgUrl + auditForm.idCardFrontImagePath]"/>
<el-image style="width: 90px; height: 30px" :src="auditForm.idCardFrontImagePath" :preview-src-list="[auditForm.idCardFrontImagePath]"/>
</el-form-item>
<el-form-item :label="$t('business.userManager.userVerification.idCardBack') + ':'">
<el-image style="width: 90px; height: 30px" :src="getImgUrl + auditForm.idCardBackImagePath" :preview-src-list="[getImgUrl + auditForm.idCardBackImagePath]"/>
<el-image style="width: 90px; height: 30px" :src="auditForm.idCardBackImagePath" :preview-src-list="[auditForm.idCardBackImagePath]"/>
</el-form-item>
<el-form-item :label="$t('business.userManager.userVerification.idCardHolding') + ':'">
<el-image style="width: 90px; height: 30px" :src="getImgUrl + auditForm.userWithIdCardImagePath" :preview-src-list="[getImgUrl + auditForm.userWithIdCardImagePath]"/>
<el-image style="width: 90px; height: 30px" :src="auditForm.userWithIdCardImagePath" :preview-src-list="[auditForm.userWithIdCardImagePath]"/>
</el-form-item>
<el-form-item :label="$t('business.agent.agentVerification.businessLicense') + ':'">
{{auditForm.businessLicenseNumber}}
@ -219,13 +219,13 @@
{{ form.legalPersonIdCard }}
</el-form-item>
<el-form-item :label="$t('business.userManager.userVerification.idCardFront') + ':'">
<el-image style="width: 90px; height: 30px" :src="getImgUrl + form.idCardFrontImagePath" :preview-src-list="[getImgUrl + form.idCardFrontImagePath]"/>
<el-image style="width: 90px; height: 30px" :src="form.idCardFrontImagePath" :preview-src-list="[form.idCardFrontImagePath]"/>
</el-form-item>
<el-form-item :label="$t('business.userManager.userVerification.idCardBack') + ':'">
<el-image style="width: 90px; height: 30px" :src="getImgUrl + form.idCardBackImagePath" :preview-src-list="[getImgUrl + form.idCardBackImagePath]"/>
<el-image style="width: 90px; height: 30px" :src="form.idCardBackImagePath" :preview-src-list="[form.idCardBackImagePath]"/>
</el-form-item>
<el-form-item :label="$t('business.userManager.userVerification.idCardHolding') + ':'">
<el-image style="width: 90px; height: 30px" :src="getImgUrl + form.userWithIdCardImagePath" :preview-src-list="[getImgUrl + form.userWithIdCardImagePath]"/>
<el-image style="width: 90px; height: 30px" :src="form.userWithIdCardImagePath" :preview-src-list="[form.userWithIdCardImagePath]"/>
</el-form-item>
<el-form-item :label="$t('business.agent.agentVerification.electronicContract') + ':'">
{{ form.electronicContract }}
@ -537,19 +537,19 @@ export default {
//
handleSuccess_idCardFrontImagePath(response) {
if (response.code === 200) {
this.form.idCardFrontImagePath = response.data; // URL
this.form.idCardFrontImagePath = this.getImgUrl + response.data; // URL
}
},
//
handleSuccess_idCardBackImagePath(response) {
if (response.code === 200) {
this.form.idCardBackImagePath = response.data; // URL
this.form.idCardBackImagePath = this.getImgUrl + response.data; // URL
}
},
//
handleSuccess_userWithIdCardImagePath(response) {
if (response.code === 200) {
this.form.userWithIdCardImagePath = response.data; // URL
this.form.userWithIdCardImagePath = this.getImgUrl + response.data; // URL
}
}
}

18
src/views/business/merchantVerification/index.vue

@ -178,13 +178,13 @@
{{auditForm.businessLicenseNumber}}
</el-form-item>
<el-form-item :label="$t('business.userManager.userVerification.idCardFront')">
<el-image style="width: 90px; height: 30px" :src="getImgUrl + auditForm.idCardFrontImagePath" :preview-src-list="[getImgUrl + auditForm.idCardFrontImagePath]"/>
<el-image style="width: 90px; height: 30px" :src="auditForm.idCardFrontImagePath" :preview-src-list="[auditForm.idCardFrontImagePath]"/>
</el-form-item>
<el-form-item :label="$t('business.userManager.userVerification.idCardBack')">
<el-image style="width: 90px; height: 30px" :src="getImgUrl + auditForm.idCardBackImagePath" :preview-src-list="[getImgUrl + auditForm.idCardBackImagePath]"/>
<el-image style="width: 90px; height: 30px" :src="auditForm.idCardBackImagePath" :preview-src-list="[auditForm.idCardBackImagePath]"/>
</el-form-item>
<el-form-item :label="$t('business.userManager.userVerification.idCardHolding')">
<el-image style="width: 90px; height: 30px" :src="getImgUrl + auditForm.userWithIdCardImagePath" :preview-src-list="[getImgUrl + auditForm.userWithIdCardImagePath]"/>
<el-image style="width: 90px; height: 30px" :src="auditForm.userWithIdCardImagePath" :preview-src-list="[auditForm.userWithIdCardImagePath]"/>
</el-form-item>
<el-form-item :label="$t('business.merchant.merchantVerification.authenticationFailureReason') + ':'" prop="failureReason">
<el-input v-model="auditForm.failureReason" :placeholder="$t('business.merchant.merchantVerification.authenticationFailureReasonPlaceholder')" />
@ -213,13 +213,13 @@
{{ form.legalPersonIdCard }}
</el-form-item>
<el-form-item :label="$t('business.userManager.userVerification.idCardFront') + ':'">
<el-image style="width: 90px; height: 30px" :src="getImgUrl + form.idCardFrontImagePath" :preview-src-list="[getImgUrl + form.idCardFrontImagePath]"/>
<el-image style="width: 90px; height: 30px" :src="form.idCardFrontImagePath" :preview-src-list="[form.idCardFrontImagePath]"/>
</el-form-item>
<el-form-item :label="$t('business.userManager.userVerification.idCardBack') + ':'">
<el-image style="width: 90px; height: 30px" :src="getImgUrl + form.idCardBackImagePath" :preview-src-list="[getImgUrl + form.idCardBackImagePath]"/>
<el-image style="width: 90px; height: 30px" :src="form.idCardBackImagePath" :preview-src-list="[form.idCardBackImagePath]"/>
</el-form-item>
<el-form-item :label="$t('business.userManager.userVerification.idCardHolding') + ':'">
<el-image style="width: 90px; height: 30px" :src="getImgUrl + form.userWithIdCardImagePath" :preview-src-list="[getImgUrl + form.userWithIdCardImagePath]"/>
<el-image style="width: 90px; height: 30px" :src="form.userWithIdCardImagePath" :preview-src-list="[form.userWithIdCardImagePath]"/>
</el-form-item>
<el-form-item :label="$t('business.merchant.merchantVerification.authenticationDate') + ':'" prop="authenticationDate">
{{ form.authenticationDate }}
@ -521,19 +521,19 @@ export default {
//
handleSuccess_idCardFrontImagePath(response) {
if (response.code === 200) {
this.form.legalPersonIdCardFrontImagePath = response.data; // URL
this.form.legalPersonIdCardFrontImagePath = this.getImgUrl + response.data; // URL
}
},
//
handleSuccess_idCardBackImagePath(response) {
if (response.code === 200) {
this.form.legalPersonIdCardBackImagePath = response.data; // URL
this.form.legalPersonIdCardBackImagePath = this.getImgUrl + response.data; // URL
}
},
//
handleSuccess_userWithIdCardImagePath(response) {
if (response.code === 200) {
this.form.legalPersonUserWithIdCardImagePath = response.data; // URL
this.form.legalPersonUserWithIdCardImagePath = this.getImgUrl + response.data; // URL
}
}
}

18
src/views/business/userVerification/index.vue

@ -218,13 +218,13 @@
{{ auditForm.birthDate }}
</el-form-item>
<el-form-item :label="$t('business.userManager.userVerification.idCardFront')">
<el-image style="width: 90px; height: 30px" :src="getImgUrl + auditForm.idCardFrontImagePath" :preview-src-list="[getImgUrl + auditForm.idCardFrontImagePath]"/>
<el-image style="width: 90px; height: 30px" :src="auditForm.idCardFrontImagePath" :preview-src-list="[auditForm.idCardFrontImagePath]"/>
</el-form-item>
<el-form-item :label="$t('business.userManager.userVerification.idCardBack')">
<el-image style="width: 90px; height: 30px" :src="getImgUrl + auditForm.idCardBackImagePath" :preview-src-list="[getImgUrl + auditForm.idCardBackImagePath]"/>
<el-image style="width: 90px; height: 30px" :src="auditForm.idCardBackImagePath" :preview-src-list="[auditForm.idCardBackImagePath]"/>
</el-form-item>
<el-form-item :label="$t('business.userManager.userVerification.idCardHolding')">
<el-image style="width: 90px; height: 30px" :src="getImgUrl + auditForm.userWithIdCardImagePath" :preview-src-list="[getImgUrl + auditForm.userWithIdCardImagePath]"/>
<el-image style="width: 90px; height: 30px" :src="auditForm.userWithIdCardImagePath" :preview-src-list="[auditForm.userWithIdCardImagePath]"/>
</el-form-item>
<el-form-item :label="$t('business.userManager.userVerification.failureReason')" prop="failureReason">
<el-input v-model="auditForm.failureReason"
@ -257,13 +257,13 @@
{{ form.birthDate }}
</el-form-item>
<el-form-item :label="$t('business.userManager.userVerification.idCardFront')">
<el-image style="width: 90px; height: 30px" :src="getImgUrl + form.idCardFrontImagePath" :preview-src-list="[getImgUrl + form.idCardFrontImagePath]"/>
<el-image style="width: 90px; height: 30px" :src="form.idCardFrontImagePath" :preview-src-list="[form.idCardFrontImagePath]"/>
</el-form-item>
<el-form-item :label="$t('business.userManager.userVerification.idCardBack')">
<el-image style="width: 90px; height: 30px" :src="getImgUrl + form.idCardBackImagePath" :preview-src-list="[getImgUrl + form.idCardBackImagePath]"/>
<el-image style="width: 90px; height: 30px" :src="form.idCardBackImagePath" :preview-src-list="[form.idCardBackImagePath]"/>
</el-form-item>
<el-form-item :label="$t('business.userManager.userVerification.idCardHolding')">
<el-image style="width: 90px; height: 30px" :src="getImgUrl + form.userWithIdCardImagePath" :preview-src-list="[getImgUrl + form.userWithIdCardImagePath]"/>
<el-image style="width: 90px; height: 30px" :src="form.userWithIdCardImagePath" :preview-src-list="[form.userWithIdCardImagePath]"/>
</el-form-item>
<el-form-item :label="$t('business.userManager.userVerification.biometrics')">
<el-tag type="danger" v-if="form.biometrics == '0'">
@ -601,19 +601,19 @@ export default {
//
handleSuccess_idCardFrontImagePath(response) {
if (response.code === 200) {
this.form.idCardFrontImagePath = response.data; // URL
this.form.idCardFrontImagePath = this.getImgUrl + response.data; // URL
}
},
//
handleSuccess_idCardBackImagePath(response) {
if (response.code === 200) {
this.form.idCardBackImagePath = response.data; // URL
this.form.idCardBackImagePath = this.getImgUrl + response.data; // URL
}
},
//
handleSuccess_userWithIdCardImagePath(response) {
if (response.code === 200) {
this.form.userWithIdCardImagePath = response.data; // URL
this.form.userWithIdCardImagePath = this.getImgUrl + response.data; // URL
}
}
}

Loading…
Cancel
Save