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 @@