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 @@ 更新座标 + + +