From cb66f594b3856b0f960af93789ff0148abbd85e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=9D=E5=BF=83?= <13773726377@163.com> Date: Tue, 28 Oct 2025 14:32:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E6=96=B0=E7=89=88=E6=9C=AC=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/table.js | 106 +++++- src/api/user.js | 13 +- src/assets/g.png | Bin 0 -> 420 bytes src/config/net.config.js | 6 +- src/layouts/components/VabTabs/index.vue | 313 +++++++++++++++++- src/main.js | 4 + src/router/index.js | 77 ++++- src/utils/request.js | 1 + src/views/comment/components/TableEdit.vue | 109 ++++++ src/views/comment/index.vue | 289 ++++++++++++++++ .../couponlist/components/TableEdit.vue | 215 ++++++++++++ src/views/coupon/couponlist/index.vue | 255 ++++++++++++++ .../distribute/components/TableEdit.vue | 0 .../{mall => coupon}/distribute/index.vue | 0 .../record/components/TableEdit.vue | 0 src/views/{mall => coupon}/record/index.vue | 0 src/views/index/index.vue | 22 +- src/views/mall/member/index.vue | 69 ++-- src/views/mall/pay/components/TableEdit.vue | 7 +- src/views/mall/pay/index.vue | 62 ++-- src/views/message/components/TableEdit.vue | 109 ++++++ src/views/message/index.vue | 288 ++++++++++++++++ src/views/system/role/index.vue | 0 23 files changed, 1855 insertions(+), 90 deletions(-) create mode 100644 src/assets/g.png create mode 100644 src/views/comment/components/TableEdit.vue create mode 100644 src/views/comment/index.vue create mode 100644 src/views/coupon/couponlist/components/TableEdit.vue create mode 100644 src/views/coupon/couponlist/index.vue rename src/views/{mall => coupon}/distribute/components/TableEdit.vue (100%) rename src/views/{mall => coupon}/distribute/index.vue (100%) rename src/views/{mall => coupon}/record/components/TableEdit.vue (100%) rename src/views/{mall => coupon}/record/index.vue (100%) create mode 100644 src/views/message/components/TableEdit.vue create mode 100644 src/views/message/index.vue delete mode 100644 src/views/system/role/index.vue diff --git a/src/api/table.js b/src/api/table.js index 6a9d9aa..4f39e35 100644 --- a/src/api/table.js +++ b/src/api/table.js @@ -2,7 +2,7 @@ import request from '@/utils/request' export function getList(data) { return request({ - url: '/wagoo/1.1/get/order_details', + url: '/get/order_details', method: 'post', data, }) @@ -10,7 +10,7 @@ export function getList(data) { export function goodsListList(data) { return request({ - url: '/wagoo/1.1/get/membership_instances', + url: '/get/membership_instances', method: 'post', data, }) @@ -18,7 +18,7 @@ export function goodsListList(data) { export function walletList(data) { return request({ - url: '/wagoo/1.1/get/wallet_instances', + url: '/get/wallet_instances', method: 'post', data, }) @@ -26,7 +26,55 @@ export function walletList(data) { export function archiveList(data) { return request({ - url: '/wagoo/1.1/get/pets', + url: '/get/pets', + method: 'post', + data, + }) +} + +export function commentList(data) { + return request({ + url: '/get/comments_info', + method: 'post', + data, + }) +} + +export function messageList(data) { + return request({ + url: '/get/notice', + method: 'post', + data, + }) +} + +export function couponList(data) { + return request({ + url: '/get/coupons', + method: 'post', + data, + }) +} + +export function couponPackage(data) { + return request({ + url: '/coupon/package', + method: 'post', + data, + }) +} + +export function unreadOtice(data) { + return request({ + url: '/unread_notice', + method: 'post', + data, + }) +} + +export function markNotice(data) { + return request({ + url: '/update/notice', method: 'post', data, }) @@ -34,9 +82,11 @@ export function archiveList(data) { + + export function recordList(data) { return request({ - url: '/wagoo/1.1/get/delivery', + url: '/get/delivery', method: 'post', data, }) @@ -44,7 +94,7 @@ export function recordList(data) { export function couponstList(data) { return request({ - url: '/wagoo/1.1/get/coupons', + url: '/get/coupons', method: 'post', data, }) @@ -52,7 +102,7 @@ export function couponstList(data) { export function additional(data) { return request({ - url: '/wagoo/1.1/get/additional_services', + url: '/get/additional_services', method: 'post', data, }) @@ -61,7 +111,7 @@ export function additional(data) { export function distributeEdit(data) { return request({ - url: '/wagoo/1.1/delivery/coupons', + url: '/delivery/coupons', method: 'post', data, }) @@ -69,7 +119,15 @@ export function distributeEdit(data) { export function exportUserOperateAdmin(data, headers) { return request({ - url: '/wagoo/1.1/download/order_details', + url: '/download/order_details', + method: 'get', + data: data, + }) +} + +export function exportUserMembership(data, headers) { + return request({ + url: '/download/membership_instances', method: 'get', data: data, }) @@ -77,7 +135,7 @@ export function exportUserOperateAdmin(data, headers) { export function doEdit(data) { return request({ - url: '/wagoo/1.1/update/order_details', + url: '/update/order_details', method: 'post', data, }) @@ -85,12 +143,38 @@ export function doEdit(data) { export function additionalEdit(data) { return request({ - url: '/wagoo/1.1/update/additional_services', + url: '/update/additional_services', method: 'post', data, }) } +export function addPackage(data) { + return request({ + url: '/add/package', + method: 'post', + data, + }) +} + +export function editPackage(data) { + return request({ + url: '/edit/package', + method: 'post', + data, + }) +} + +export function deletePackage(data) { + return request({ + url: '/delete/package', + method: 'post', + data, + }) +} + + + export function doDelete(data) { return request({ diff --git a/src/api/user.js b/src/api/user.js index 9e56521..e421240 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -8,7 +8,14 @@ export async function login(data) { // } return request({ - url: '/wagoo/1.1/admin/login', + url: '/admin/login', + method: 'post', + data, + }) +} +export function members(data) { + return request({ + url: '/daily/new_membership_number', method: 'post', data, }) @@ -16,7 +23,7 @@ export async function login(data) { export function getUserInfo(accessToken) { return request({ - url: '/wagoo/1.1/get/user_info', + url: '/get/user_info', method: 'post', data: { [tokenName]: accessToken, @@ -26,7 +33,7 @@ export function getUserInfo(accessToken) { export function logout() { return request({ - url: '/wagoo/1.1/admin/logout', + url: '/admin/logout', method: 'post', }) } diff --git a/src/assets/g.png b/src/assets/g.png new file mode 100644 index 0000000000000000000000000000000000000000..5ee025a5aeaecea0ffdc18b65829ae8b519145fd GIT binary patch literal 420 zcmV;V0bBlwP)Px#1am@3R0s$N2z&@+hyVZqPDw;TRA_9}Q7ep9d0?%TG`z@|KJJb(7?P&)w;@-!0=DNhpt z3G&=MAW@#xr_fn - - - 更多操作 - + +
+ + + 消息 + ({{messageList.length + total }}) +
- +
+

+ 消息通知 +

+ ({{ messageList.length + total }}) +
+ +
+

全部已读

+ +
+ +
+
+
+
+ {{item.created_at}} +
+
+

标记已读

+ +
+
+
+ {{item.content}} +
+
+
+
+
+
+
+ {{item.date}} +
+
+

标记已读

+ +
+
+
+ {{item.content}} +
+
+
+
@@ -39,13 +88,23 @@ + diff --git a/src/views/comment/index.vue b/src/views/comment/index.vue new file mode 100644 index 0000000..6b6b43a --- /dev/null +++ b/src/views/comment/index.vue @@ -0,0 +1,289 @@ + + + diff --git a/src/views/coupon/couponlist/components/TableEdit.vue b/src/views/coupon/couponlist/components/TableEdit.vue new file mode 100644 index 0000000..16f9ce4 --- /dev/null +++ b/src/views/coupon/couponlist/components/TableEdit.vue @@ -0,0 +1,215 @@ + + + + diff --git a/src/views/coupon/couponlist/index.vue b/src/views/coupon/couponlist/index.vue new file mode 100644 index 0000000..d6eb4ed --- /dev/null +++ b/src/views/coupon/couponlist/index.vue @@ -0,0 +1,255 @@ + + + diff --git a/src/views/mall/distribute/components/TableEdit.vue b/src/views/coupon/distribute/components/TableEdit.vue similarity index 100% rename from src/views/mall/distribute/components/TableEdit.vue rename to src/views/coupon/distribute/components/TableEdit.vue diff --git a/src/views/mall/distribute/index.vue b/src/views/coupon/distribute/index.vue similarity index 100% rename from src/views/mall/distribute/index.vue rename to src/views/coupon/distribute/index.vue diff --git a/src/views/mall/record/components/TableEdit.vue b/src/views/coupon/record/components/TableEdit.vue similarity index 100% rename from src/views/mall/record/components/TableEdit.vue rename to src/views/coupon/record/components/TableEdit.vue diff --git a/src/views/mall/record/index.vue b/src/views/coupon/record/index.vue similarity index 100% rename from src/views/mall/record/index.vue rename to src/views/coupon/record/index.vue diff --git a/src/views/index/index.vue b/src/views/index/index.vue index 2c05150..5a5abb3 100644 --- a/src/views/index/index.vue +++ b/src/views/index/index.vue @@ -51,19 +51,19 @@
- 今日访问趋势 + 今日新增会员数量
-
{{ config1.endVal }}
-
总访问量
+
{{ count }}
+
新增会员
-
+ +
@@ -428,6 +428,7 @@ import VabChart from '@/plugins/echarts' import { dependencies, devDependencies } from '../../../package.json' import { getNoticeList } from '@/api/notice' + import { members } from '@/api/user' export default { name: 'Index', @@ -436,6 +437,7 @@ }, data() { return { + count:'', timer: 0, updateTime: process.env.VUE_APP_UPDATE_TIME, nodeEnv: process.env.NODE_ENV, @@ -879,6 +881,7 @@ }, created() { this.fetchData() + this.membersList() }, beforeDestroy() { clearInterval(this.timer) @@ -928,6 +931,11 @@ const res = await getNoticeList() this.noticeList = res.data }, + + async membersList() { + const res = await members() + this.count = res.data.count + }, handleIconClick(item) { if (item.link) { window.open(item.link, '_blank') diff --git a/src/views/mall/member/index.vue b/src/views/mall/member/index.vue index 0df7e78..8155d90 100644 --- a/src/views/mall/member/index.vue +++ b/src/views/mall/member/index.vue @@ -1,5 +1,8 @@ + + + + + + + + + + + + + + diff --git a/src/views/message/index.vue b/src/views/message/index.vue new file mode 100644 index 0000000..c69e0a0 --- /dev/null +++ b/src/views/message/index.vue @@ -0,0 +1,288 @@ + + + diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue deleted file mode 100644 index e69de29..0000000