From 1a74921af9ee8a0a3516561d2eb7bf43e368b4f4 Mon Sep 17 00:00:00 2001 From: weiwei Date: Tue, 22 Apr 2025 18:31:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E8=90=A5=E5=95=86=E5=AE=B6=E5=92=8C?= =?UTF-8?q?=E5=90=88=E4=BD=9C=E5=95=86=E5=AE=B6=E5=85=A5=E5=8F=A3=E5=88=86?= =?UTF-8?q?=E5=BC=80=EF=BC=8C=E6=B7=BB=E5=8A=A0=E6=99=BA=E8=83=BD=E6=9F=9C?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 110 ++++++++++++++++-------------- src/pages/tabbar/order.vue | 9 ++- src/pages/user/userRole.vue | 89 +++++++++++++----------- src/sheep/utils/getLaunchParam.ts | 6 ++ src/static/page/doorAdminRole.svg | 1 + 5 files changed, 119 insertions(+), 96 deletions(-) create mode 100644 src/sheep/utils/getLaunchParam.ts create mode 100644 src/static/page/doorAdminRole.svg diff --git a/src/App.vue b/src/App.vue index 45ec694..11ff27e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,7 @@ diff --git a/src/sheep/utils/getLaunchParam.ts b/src/sheep/utils/getLaunchParam.ts new file mode 100644 index 0000000..b4c2642 --- /dev/null +++ b/src/sheep/utils/getLaunchParam.ts @@ -0,0 +1,6 @@ +// 获取启动参数 +const getLaunchParam = (): "canteen" | "selfMerchant" | "coopMerchant" | null => { + return new URL(window.location.href).searchParams.get("launchParam") as "canteen" | "selfMerchant" | "coopMerchant" | null +} + +export default getLaunchParam diff --git a/src/static/page/doorAdminRole.svg b/src/static/page/doorAdminRole.svg new file mode 100644 index 0000000..3b7c318 --- /dev/null +++ b/src/static/page/doorAdminRole.svg @@ -0,0 +1 @@ + \ No newline at end of file