From 1e52030f5ed1e0fb969cc551adbb632ccb82a43c Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Mon, 12 Aug 2024 15:54:16 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=9F=A5=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/notifications.js | 42 +++++ src/api/shop.js | 9 +- src/views/shop/notifications/index.vue | 174 +++++++++++++++++- src/views/user_manage/active_list.vue | 7 +- .../user_manage/components/downloadQR.vue | 76 ++++++++ 5 files changed, 301 insertions(+), 7 deletions(-) create mode 100644 src/api/notifications.js create mode 100644 src/views/user_manage/components/downloadQR.vue diff --git a/src/api/notifications.js b/src/api/notifications.js new file mode 100644 index 0000000..36cd25e --- /dev/null +++ b/src/api/notifications.js @@ -0,0 +1,42 @@ +import request from "@/utils/request"; + + +// 推送店铺消息开关 +export function shopState(data) { + return request({ + url: "/api/msg/shopState", + method: "put", + data + }); + } + +export function msgall(params) { + return request({ + url: "/api/msg/all", + method: "get", + params + }); +} + +export function msginfo(data) { + return request({ + url: '/api/msg/info', + method: 'put', + data + }) +} +export function state(params) { + return request({ + url: "/api/msg/state", + method: "get", + params + }); +} + +export function delmsg(ids) { + return request({ + url: '/api/msg', + method: 'delete', + data: ids + }) +} diff --git a/src/api/shop.js b/src/api/shop.js index d3845c8..ee36c3f 100644 --- a/src/api/shop.js +++ b/src/api/shop.js @@ -428,7 +428,14 @@ export function findActivate(params) { params }); } - +// 获取店铺会员二维码 +export function getwxacode(data) { + return request({ + url: `/shop/storage/getwxacode`, + method: "post", + data + }); +} /** * 商家用户列表 * @returns diff --git a/src/views/shop/notifications/index.vue b/src/views/shop/notifications/index.vue index f738bc6..952bd41 100644 --- a/src/views/shop/notifications/index.vue +++ b/src/views/shop/notifications/index.vue @@ -1,13 +1,177 @@ \ No newline at end of file + + + \ No newline at end of file diff --git a/src/views/user_manage/active_list.vue b/src/views/user_manage/active_list.vue index 3e6912b..2df7e2f 100644 --- a/src/views/user_manage/active_list.vue +++ b/src/views/user_manage/active_list.vue @@ -15,6 +15,9 @@ 添加活动 + + 下载会员充值二维码 +
@@ -51,17 +54,19 @@ @current-change="paginationChange" layout="total">
+ + \ No newline at end of file