From 0a95bb265d58152976e812ca007694214ebf3a60 Mon Sep 17 00:00:00 2001 From: Sigo Date: Wed, 13 Jul 2022 14:55:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/storeManage.js | 33 ++++++++- src/layout/components/asider.vue | 2 +- src/layout/layout.vue | 7 +- .../issue/{发布 => 建立优惠券} | 0 .../discount-coupon/management/index.vue | 4 +- .../storeManage/tencentAccount/index.vue | 71 +++++++++++++++++-- src/router/index.js | 2 +- 7 files changed, 105 insertions(+), 14 deletions(-) rename src/pages/discount-coupon/issue/{发布 => 建立优惠券} (100%) diff --git a/src/api/storeManage.js b/src/api/storeManage.js index f61b68a..b43ab2b 100644 --- a/src/api/storeManage.js +++ b/src/api/storeManage.js @@ -1,5 +1,9 @@ -import { service } from "../utils/service"; -import { localPath } from "./api.js"; +import { + service +} from "../utils/service"; +import { + localPath +} from "./api.js"; // 添加门店参数 export function addstorePara(params) { @@ -1268,3 +1272,28 @@ export function rolepower(params) { data: params }); } +// ================================================= 微信公众号 ================================================= // +// 查询设置的微信公众号 +export function getWXAccount(params) { + return service({ + url: "/api" + "/storeWechat", + method: "get", + params + }); +} +// 设置微信公众号 +export function doSetWXAccount(data) { + return service({ + url: "/api" + "/storeWechat/add", + method: "post", + data + }); +} +// 修改微信公众号 +export function doEditWXAccount(data) { + return service({ + url: "/api" + "/storeWechat", + method: "put", + data + }); +} diff --git a/src/layout/components/asider.vue b/src/layout/components/asider.vue index 877f01d..e8642dc 100644 --- a/src/layout/components/asider.vue +++ b/src/layout/components/asider.vue @@ -778,7 +778,7 @@ export default { number: "1000", menuLists: [ { - name: "发布", + name: "建立", icon: "el-icon-s-promotion", route: "/couponIssue", index: "couponIssue", diff --git a/src/layout/layout.vue b/src/layout/layout.vue index 84d1401..8b4afa1 100644 --- a/src/layout/layout.vue +++ b/src/layout/layout.vue @@ -39,6 +39,7 @@ --> + 关注公众号 @@ -220,7 +221,7 @@ export default { confirmButtonClass: "confirmbtnFalses", type: "warning", center: true, - callback: (action) => {}, + callback: (action) => { }, }); } }); @@ -249,7 +250,7 @@ export default { confirmButtonClass: "confirmbtnFalses", type: "warning", center: true, - callback: (action) => {}, + callback: (action) => { }, }); } }); @@ -288,7 +289,7 @@ export default { } }, 800); }, - mounted() {}, + mounted() { }, destroyed() { window.removeEventListener("resize", this.getHeight); }, diff --git a/src/pages/discount-coupon/issue/发布 b/src/pages/discount-coupon/issue/建立优惠券 similarity index 100% rename from src/pages/discount-coupon/issue/发布 rename to src/pages/discount-coupon/issue/建立优惠券 diff --git a/src/pages/discount-coupon/management/index.vue b/src/pages/discount-coupon/management/index.vue index f029757..f5b324d 100644 --- a/src/pages/discount-coupon/management/index.vue +++ b/src/pages/discount-coupon/management/index.vue @@ -2,7 +2,7 @@
- 发布 + 建立优惠券
@@ -16,7 +16,7 @@
- +