From dee4b3491a3b307cd0221dea4b6c55fc5ebf9372 Mon Sep 17 00:00:00 2001 From: Default User Date: Wed, 28 Jan 2026 16:27:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=90=A5=E4=B8=9A=E6=89=A7?= =?UTF-8?q?=E7=85=A7=E4=B8=8A=E4=BC=A0=E5=8A=9F=E8=83=BD=EF=BC=9A=E5=9C=A8?= =?UTF-8?q?authentication/index=E9=A1=B5=E9=9D=A2=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=90=A5=E4=B8=9A=E6=89=A7=E7=85=A7=E4=B8=8A=E4=BC=A0=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=8C=E5=B9=B6=E5=AD=98=E5=82=A8=E5=88=B0users?= =?UTF-8?q?=E8=A1=A8=E7=9A=84businesslicenseurl=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/profile/authentication/index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pages/profile/authentication/index.js b/pages/profile/authentication/index.js index 18ee7f1..0e13117 100644 --- a/pages/profile/authentication/index.js +++ b/pages/profile/authentication/index.js @@ -135,10 +135,10 @@ Page({ * 提交认证 */ async submitAuth() { - // 验证是否上传了身份证 - if (!this.data.idCardFront || !this.data.idCardBack) { + // 验证是否上传了身份证和营业执照 + if (!this.data.idCardFront || !this.data.idCardBack || !this.data.businessLicense) { wx.showToast({ - title: '请上传身份证正反面', + title: '请上传身份证正反面和营业执照', icon: 'none' }); return; @@ -163,6 +163,8 @@ Page({ const idcard1Url = await this.uploadFileToServer(this.data.idcard1.path, 'idCardFront'); // 上传身份证反面 const idcard2Url = await this.uploadFileToServer(this.data.idcard2.path, 'idCardBack'); + // 上传营业执照 + const businessLicenseUrl = await this.uploadFileToServer(this.data.businessLicenseFile.path, 'businessLicense'); console.log('所有文件上传完成'); @@ -172,6 +174,7 @@ Page({ userId: userId, idcard1: idcard1Url, idcard2: idcard2Url, + businesslicenseurl: businessLicenseUrl, name: this.data.name, idNumber: this.data.idNumber, address: this.data.address