From caa62093ada74cb68fa88d0ae41eba7a5d21c417 Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Fri, 9 Aug 2024 15:11:19 +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=E5=95=86=E5=AE=B6=E5=85=A5=E9=A9=BB=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bundle_b/pages/local_settled/index.vue | 48 ++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/bundle_b/pages/local_settled/index.vue b/bundle_b/pages/local_settled/index.vue index d7ff891..b19eea7 100644 --- a/bundle_b/pages/local_settled/index.vue +++ b/bundle_b/pages/local_settled/index.vue @@ -46,6 +46,21 @@ --> + + + + + + + + + + + + + + { + uni.showLoading({ + title: '上传中...' + }) + const {success,data} = await ossUpload(file.tempFilePaths[0], file.tempFiles[0].path, 'local_life_shop_logo/') + if(success) { + this.form.shopLogo = data + uni.hideLoading() + } else { + uni.showToast({icon:'none', title: '上传失败'}) + uni.hideLoading() + } + } + }) + }, + // 选择账户类型 choseType(e) { this.showLargeNumber = false @@ -535,7 +571,7 @@ // 提交表单 async onSubmit() { const {form, isAgree, fileList} = this - const {bankType, largeNumber, bankName, bankCard, businessLicense, crftNo1, idCard, name, empowerPhone, address} = this.form + const {shopName, shopLogo, bankType, largeNumber, bankName, bankCard, businessLicense, crftNo1, idCard, name, empowerPhone, address} = this.form const latitude = this.cityInfo.gcj02_lat const longitude = this.cityInfo.gcj02_lng @@ -555,6 +591,14 @@ // } // }) + if (!shopName) return this.$toast({ + title: '请输入商家名称' + }) + + if (!shopLogo) return this.$toast({ + title: '请上传商家图标' + }) + if (bankType == 1 && !largeNumber) return this.$toast({ title: '请输入大额卡号' }) @@ -603,7 +647,7 @@ data, code, msg - } = await addLocalStore({bankType, largeNumber, bankName, bankCard, businessLicense, crftNo1, idCard, name, empowerPhone, address, lstore_id, latitude, longitude}) + } = await addLocalStore({shopName, shopLogo, bankType, largeNumber, bankName, bankCard, businessLicense, crftNo1, idCard, name, empowerPhone, address, lstore_id, latitude, longitude}) if(code == 1) { this.$toast({ title: msg