From e8d2053c6957c79ea0dd5ac8923a77c4acc3f537 Mon Sep 17 00:00:00 2001 From: "SK-20231103YIXF\\Administrator" <1154079537@qq.com> Date: Tue, 9 Apr 2024 09:22:14 +0800 Subject: [PATCH] 1 --- pages/withdrawal/add.vue | 4 +++- pages/withdrawal/index.vue | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pages/withdrawal/add.vue b/pages/withdrawal/add.vue index d0754e7..5b0d055 100644 --- a/pages/withdrawal/add.vue +++ b/pages/withdrawal/add.vue @@ -267,6 +267,7 @@ this.isCompany = isCompany; if (isCompany != 1) { this.bindForm.is_own = 0; + this.bindForm.name = JSON.parse(this.$Cache.get("USER_INFO")).mer_info.real_name; this.list = [{ name: '法人账户' }]; @@ -359,7 +360,8 @@ // 法人账号验证 if (this.bindForm.is_own === 0) { - if (!this.bindForm.temp.length > 0) return this.$util.Tips({ + const isCompany = JSON.parse(this.$Cache.get("USER_INFO")).mer_info.is_company; + if (!this.bindForm.temp.length > 0 && isCompany == 1) return this.$util.Tips({ title: '请上传凭证!' }); this.bindForm.financial_img = this.bindForm.temp.join(","); diff --git a/pages/withdrawal/index.vue b/pages/withdrawal/index.vue index 31b6b30..2bc2e5d 100644 --- a/pages/withdrawal/index.vue +++ b/pages/withdrawal/index.vue @@ -191,7 +191,10 @@ // 用户信息 this.userInfo = JSON.parse(this.$Cache.get("USER_INFO")); - console.log(this.userInfo.mer_info.is_company) + // uni.showToast({ + // title: `我是123\n\t好的佩奇`, + // icon: "none" + // }) }, methods: {