From f2dd825b64abff62c16f7d0403f2b5af0dc820bd Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Fri, 28 Jun 2024 11:47:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9C=AC=E5=9C=B0=E7=94=9F?= =?UTF-8?q?=E6=B4=BB=E8=A1=A8=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bundle_b/pages/local_settled/index.vue | 35 +++++++++----------------- 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/bundle_b/pages/local_settled/index.vue b/bundle_b/pages/local_settled/index.vue index 249582f..db3f276 100644 --- a/bundle_b/pages/local_settled/index.vue +++ b/bundle_b/pages/local_settled/index.vue @@ -82,21 +82,10 @@ - - - - - - - - - - - + - + @@ -391,7 +380,7 @@ ...mapMutations(['setCityInfo']), async getLocalStore() { - getLocalStore().then((res) => { + await getLocalStore().then((res) => { if (res.data.local) { this.storeState = res.data.local.store_state if (this.storeState == -1 || this.storeState == 2) { @@ -512,7 +501,7 @@ isAgree, fileList } = this - const submitObj = this.form; + const {businessLicense, crftNo1, idCard, name, empowerPhone, address} = this.form; // let flag = true; // Object.keys(submitObj).forEach((key) => { @@ -525,27 +514,27 @@ // } // }) - if (!submitObj.businessLicense) return this.$toast({ + if (!businessLicense) return this.$toast({ title: '请先上传营业执照' }) - if (!submitObj.crftNo1) return this.$toast({ + if (!crftNo1) return this.$toast({ title: '请填写社会信用代码' }) - if (!submitObj.idCard || !submitObj.idBack) return this.$toast({ - title: '请上传身份证正反面' + if (!idCard) return this.$toast({ + title: '请上传手持身份证' }) - if (!submitObj.name) return this.$toast({ + if (!name) return this.$toast({ title: '请填写商户联系人' }) - if (!submitObj.empowerPhone) return this.$toast({ + if (!empowerPhone) return this.$toast({ title: '请填写联系电话' }) - if (!submitObj.address) return this.$toast({ + if (!address) return this.$toast({ title: '请填写地理位置' }) @@ -561,7 +550,7 @@ data, code, msg - } = await addLocalStore(submitObj) + } = await addLocalStore({businessLicense, crftNo1, idCard, name, empowerPhone, address}) if(code == 1) { this.$toast({ title: msg