From 37a9a94de3fc1492b6ec0c380078a290b71aecda Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Fri, 28 Jun 2024 17:49:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=9C=AC=E5=9C=B0=E7=94=9F?= =?UTF-8?q?=E6=B4=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bundle_b/pages/local_settled/index.vue | 20 +++--- bundle_b/pages/local_shop/local_edit_info.vue | 8 +++ bundle_b/pages/local_shop/local_shop.vue | 62 +++++++++++++----- .../static/{ercode.png => local_ercode.png} | Bin pages.json | 18 +++++ pages/local_life/local_life.vue | 27 +++++--- 6 files changed, 102 insertions(+), 33 deletions(-) create mode 100644 bundle_b/pages/local_shop/local_edit_info.vue rename bundle_b/static/{ercode.png => local_ercode.png} (100%) diff --git a/bundle_b/pages/local_settled/index.vue b/bundle_b/pages/local_settled/index.vue index db3f276..416bab7 100644 --- a/bundle_b/pages/local_settled/index.vue +++ b/bundle_b/pages/local_settled/index.vue @@ -366,7 +366,7 @@ fileList: [], storeState: -1, bgColor: '#FA844C', - + localShop: [] } }, onLoad() { @@ -382,6 +382,7 @@ async getLocalStore() { await getLocalStore().then((res) => { if (res.data.local) { + this.localShop = res.data.local this.storeState = res.data.local.store_state if (this.storeState == -1 || this.storeState == 2) { this.bgColor = '#FA844C' @@ -496,12 +497,15 @@ // 提交表单 async onSubmit() { - const { - form, - isAgree, - fileList - } = this - const {businessLicense, crftNo1, idCard, name, empowerPhone, address} = this.form; + const {form, isAgree, fileList} = this + const {businessLicense, crftNo1, idCard, name, empowerPhone, address} = this.form + const latitude = this.cityInfo.gcj02_lat + const longitude = this.cityInfo.gcj02_lng + + let lstore_id = 0 + if (this.localShop) { + lstore_id = this.localShop.lstore_id + } // let flag = true; // Object.keys(submitObj).forEach((key) => { @@ -550,7 +554,7 @@ data, code, msg - } = await addLocalStore({businessLicense, crftNo1, idCard, name, empowerPhone, address}) + } = await addLocalStore({businessLicense, crftNo1, idCard, name, empowerPhone, address, lstore_id, latitude, longitude}) if(code == 1) { this.$toast({ title: msg diff --git a/bundle_b/pages/local_shop/local_edit_info.vue b/bundle_b/pages/local_shop/local_edit_info.vue new file mode 100644 index 0000000..02409e3 --- /dev/null +++ b/bundle_b/pages/local_shop/local_edit_info.vue @@ -0,0 +1,8 @@ + + + + + \ No newline at end of file diff --git a/bundle_b/pages/local_shop/local_shop.vue b/bundle_b/pages/local_shop/local_shop.vue index 7a16cf0..14ebc06 100644 --- a/bundle_b/pages/local_shop/local_shop.vue +++ b/bundle_b/pages/local_shop/local_shop.vue @@ -1,36 +1,59 @@