From 1f5a2e83184366ddc0773ca3d1d25cf9d62030f2 Mon Sep 17 00:00:00 2001 From: zhl Date: Fri, 11 Jun 2021 11:35:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=97=E9=93=BA=E8=AE=BE=E7=BD=AE=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=98=AF=E5=90=A6=E4=BD=BF=E7=94=A8=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=9A=84=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/shop.ts | 1 + src/api/types.d.ts | 1 + src/views/announce/edit.vue | 2 -- src/views/shop/edit.vue | 9 +++++++++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/api/shop.ts b/src/api/shop.ts index 7f05019..9858676 100644 --- a/src/api/shop.ts +++ b/src/api/shop.ts @@ -5,6 +5,7 @@ export const defaultShopData: IShopData = { name: '', address: '', logo: '', + local: 0, qtypes: [] } diff --git a/src/api/types.d.ts b/src/api/types.d.ts index eb7e37b..e9781e6 100644 --- a/src/api/types.d.ts +++ b/src/api/types.d.ts @@ -31,4 +31,5 @@ export interface IShopData { qtypes: string[] location?: number[] numid?: number + local: number } diff --git a/src/views/announce/edit.vue b/src/views/announce/edit.vue index 8c7fec1..bbca6c1 100644 --- a/src/views/announce/edit.vue +++ b/src/views/announce/edit.vue @@ -192,7 +192,6 @@ export default class extends Vue { } else { this.postForm.shop = UserModule.department this.getUserList(this.postForm.shop) - this.getCouponList(this.postForm.shop) } if (id) { this.fetchData(id) @@ -276,7 +275,6 @@ export default class extends Vue { }) return false } - this.postForm.shopShop = this.getShopName(this.postForm.shop) if (this.postForm.type === 1) { this.postForm.shops = [this.postForm.shop] } diff --git a/src/views/shop/edit.vue b/src/views/shop/edit.vue index fc0ae77..5feee8d 100644 --- a/src/views/shop/edit.vue +++ b/src/views/shop/edit.vue @@ -96,6 +96,15 @@ 更新座标 + + +