From 236ee5570e1855325cdc01922258a87f11c87c01 Mon Sep 17 00:00:00 2001
From: 18631081161 <2088094923@qq.com>
Date: Mon, 6 Apr 2026 14:09:54 +0800
Subject: [PATCH] =?UTF-8?q?=E5=86=85=E9=83=A8=E5=9C=B0=E5=9D=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
admin/src/views/Banners.vue | 38 ++++++++++++++++++++++++++++++++++---
1 file changed, 35 insertions(+), 3 deletions(-)
diff --git a/admin/src/views/Banners.vue b/admin/src/views/Banners.vue
index a517729..36c68c7 100644
--- a/admin/src/views/Banners.vue
+++ b/admin/src/views/Banners.vue
@@ -16,7 +16,11 @@
{{ row.linkType === 'External' ? '外部链接' : '内部页面' }}
-
+
+
+ {{ row.linkType === 'Internal' ? (internalPages.find(p => '/' + p.path === row.linkUrl)?.label || row.linkUrl) : row.linkUrl }}
+
+
@@ -56,13 +60,16 @@
-
+
-
+
+
+
+
@@ -94,6 +101,31 @@ const formRef = ref(null)
const uploadHeaders = { Authorization: `Bearer ${localStorage.getItem('admin_token')}` }
+/** 小程序内部页面列表 */
+const internalPages = [
+ { path: 'pages/index/index', label: '首页' },
+ { path: 'pages/order-hall/order-hall', label: '订单大厅' },
+ { path: 'pages/message/message', label: '消息' },
+ { path: 'pages/mine/mine', label: '我的' },
+ { path: 'pages/pickup/pickup', label: '代取' },
+ { path: 'pages/delivery/delivery', label: '代送' },
+ { path: 'pages/help/help', label: '万能帮' },
+ { path: 'pages/purchase/purchase', label: '代购' },
+ { path: 'pages/food/food', label: '美食街' },
+ { path: 'pages/order/my-orders', label: '我的订单' },
+ { path: 'pages/order/my-taken', label: '我的接单' },
+ { path: 'pages/mine/earnings', label: '我的收益' },
+ { path: 'pages/mine/profile', label: '编辑资料' },
+ { path: 'pages/runner/certification', label: '跑腿认证' },
+ { path: 'pages/config/agreement', label: '用户协议' },
+ { path: 'pages/config/privacy', label: '隐私政策' },
+ { path: 'pages/config/qrcode', label: '客服二维码' },
+ { path: 'pages/config/runner-agreement', label: '跑腿协议' },
+ { path: 'pages/message/system-msg', label: '系统消息' },
+ { path: 'pages/message/order-notify', label: '订单通知' },
+ { path: 'pages/mine/earnings-record', label: '收益记录' }
+]
+
/** 上传成功回调 */
function onUploadSuccess(res) {
form.imageUrl = res.url