From 4bb4328c2fe5776128b9a9da5f293ff364f4ce1f Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Fri, 25 Oct 2024 11:10:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B6=88=E6=81=AF=E8=AE=A2?= =?UTF-8?q?=E9=98=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http/yskApi/pageNotification.js | 17 +++ pageNotification/index.vue | 197 ++++++++++++++++++++++++++ pages.json | 11 ++ pages/index/index.vue | 5 + static/indexImg/icon-notification.svg | 1 + 5 files changed, 231 insertions(+) create mode 100644 http/yskApi/pageNotification.js create mode 100644 pageNotification/index.vue create mode 100644 static/indexImg/icon-notification.svg diff --git a/http/yskApi/pageNotification.js b/http/yskApi/pageNotification.js new file mode 100644 index 0000000..9597344 --- /dev/null +++ b/http/yskApi/pageNotification.js @@ -0,0 +1,17 @@ +import http from './http.js' +const request=http.request + + +/** + * 获取订阅二维码 + * @returns + */ +export function getSubQrCode(params) { + return request({ + url: `/api/msg/subQrCode`, + method: 'get', + params: { + shopId: uni.getStorageSync('shopId'), + } + }) +} diff --git a/pageNotification/index.vue b/pageNotification/index.vue new file mode 100644 index 0000000..f4214fe --- /dev/null +++ b/pageNotification/index.vue @@ -0,0 +1,197 @@ + + + + diff --git a/pages.json b/pages.json index 35f229e..90e8380 100644 --- a/pages.json +++ b/pages.json @@ -1076,6 +1076,17 @@ } } ] + }, + { + "root": "pageNotification", + "pages": [{ + "pageId": "PAGES_NOTIFICATION_INDEX", + "path": "index", + "style": { + "navigationBarTitleText": "订阅通知" + } + } + ] } ], "globalStyle": { diff --git a/pages/index/index.vue b/pages/index/index.vue index d8eb945..3eedcc7 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -145,6 +145,11 @@ icon: '/static/indexImg/icon-cashier.svg', pageUrl: 'PAGES_SHOP_SETUP', }, + { + title: '订阅通知', + icon: '/static/indexImg/icon-notification.svg', + pageUrl: 'PAGES_NOTIFICATION_INDEX', + }, // // // { // // // title: '进销存', // // // icon: '/static/indexImg/icon-invoicing.svg', diff --git a/static/indexImg/icon-notification.svg b/static/indexImg/icon-notification.svg new file mode 100644 index 0000000..87c1ae5 --- /dev/null +++ b/static/indexImg/icon-notification.svg @@ -0,0 +1 @@ + \ No newline at end of file