From fad29dd65624179b0607d40494a9f5f4afd17408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Wed, 22 Oct 2025 10:55:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=95=86=E5=AE=B6=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E5=B0=8F=E7=A8=8B=E5=BA=8F=E9=83=A8=E5=88=86=E7=9A=84?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/shopEnter/index/index.vue | 74 ++++++++++++++++++++++++++---- 1 file changed, 64 insertions(+), 10 deletions(-) diff --git a/packages/shopEnter/index/index.vue b/packages/shopEnter/index/index.vue index 2c7e017a..4410d29c 100644 --- a/packages/shopEnter/index/index.vue +++ b/packages/shopEnter/index/index.vue @@ -46,6 +46,13 @@ + + 商家分类 + + + + + 银行卡号 @@ -61,7 +68,9 @@ - + 上传图片 @@ -74,7 +83,9 @@ - + 上传图片 @@ -87,7 +98,9 @@ - + 上传图片 @@ -102,6 +115,8 @@ @cancel="cancelCity"> + @@ -140,15 +155,18 @@ export default { store_name: "", address: "", - confirmProv:"", - confirmCity:"", - confirmBusiness:"", + confirmProv: "", + confirmCity: "", + confirmBusiness: "", + confirmClassify: "", pro: [], show: false, city: [], show2: false, buss: [], show3: false, + classify: [], + show4: false, } }, methods: { @@ -181,6 +199,14 @@ export default { this.getCity(e.value[0].ad_code) this.confirmProv = e.value[0] }, + cancelClassify() { + this.show4 = false; + }, + clickClassify(e) { + this.show4 = false; + this.confirmClassify = e.value[0] + console.log("🚀 ~ this.confirmClassify:", this.confirmClassify) + }, chooseCity() { this.show = true; }, @@ -190,6 +216,9 @@ export default { chooseCity3() { this.show3 = true; }, + chooseClassify() { + this.show4 = true; + }, afterReadImg(e) { e.file.forEach(item => { upload(item.url, res => { @@ -254,24 +283,30 @@ export default { duration: 2000 }); } - if(!that.confirmProv.ad_code){ + if (!that.confirmProv.ad_code) { return uni.showToast({ title: '请选择所在省', duration: 2000 }); } - if(!that.confirmCity.ad_code){ + if (!that.confirmCity.ad_code) { return uni.showToast({ title: '请选择所在市', duration: 2000 }); } - if(!that.confirmBusiness.ad_code){ + if (!that.confirmBusiness.ad_code) { return uni.showToast({ title: '请选择所在区', duration: 2000 }); } + if (!that.confirmClassify.ad_code) { + return uni.showToast({ + title: '请选择商家分类', + duration: 2000 + }); + } if (!that.imgList6.length) { return uni.showToast({ title: '请上传营业执照', @@ -288,10 +323,11 @@ export default { bank_card: that.bank_card, store_name: that.store_name, address: that.address, - ad_code:that.confirmBusiness.ad_code, + ad_code: that.confirmBusiness.ad_code, facade_photo, interior_photo, license_photo, + classify_code: that.confirmClassify.ad_code, }).then(res => { that.contact_name = '' that.contact_phone = '' @@ -307,6 +343,7 @@ export default { that.imgList4 = [] that.imgList5 = [] that.imgList6 = [] + that.confirmClassify = '' NavgateTo("../sucess/index") }) }, @@ -332,10 +369,27 @@ export default { this.buss = res.rows }) }, + getClassify(e) { + this.classify = [ + { + ad_code: "1", + short_name: "111" + }, + { + ad_code: "2", + short_name: "222" + }, + { + ad_code: "3", + short_name: "333" + }, + ] + }, }, onLoad() { this.getPro() + this.getClassify() } }