From f31015deb04ef8fc34401721f079efcb08096ee1 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Tue, 10 Mar 2026 11:05:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E4=B8=80=E9=94=AE=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages.json | 14 +-- src/pages/root/login.vue | 98 ++++++++++---------- src/pages/tabbar/canteen.vue | 10 +- src/pages/tabbar/my.vue | 27 +++--- src/pages/tabbar/order.vue | 8 +- src/sheep/api/index.ts | 1 + src/sheep/api/mini-platform.ts | 15 +++ src/sheep/components/common/service-text.vue | 17 +++- src/sheep/constant/app-env.ts | 4 +- src/sheep/constant/service-enum.ts | 7 ++ src/sheep/hooks/use-page.ts | 6 +- src/sheep/utils/request.ts | 11 +-- 12 files changed, 132 insertions(+), 86 deletions(-) create mode 100644 src/sheep/api/mini-platform.ts diff --git a/src/pages.json b/src/pages.json index cb3947d..4118a9a 100644 --- a/src/pages.json +++ b/src/pages.json @@ -16,13 +16,6 @@ "disableScroll": true } }, - { - "path": "pages/root/login", - "style": { - "navigationBarTitleText": "登录", - "disableScroll": true - } - }, { "path": "pages/tabbar/order", "style": { @@ -36,6 +29,13 @@ "navigationBarTitleText": "我的", "disableScroll": true } + }, + { + "path": "pages/root/login", + "style": { + "navigationBarTitleText": "登录", + "disableScroll": true + } } ], "globalStyle": { diff --git a/src/pages/root/login.vue b/src/pages/root/login.vue index d6ed4ae..dec6c50 100644 --- a/src/pages/root/login.vue +++ b/src/pages/root/login.vue @@ -1,73 +1,59 @@ @@ -103,7 +92,22 @@ const doLogin = () => { - + + + + + + 登录错误,获取本机微信手机号失败,请联系客服 + + + 登录错误,本系统只为浦江县机关事务服务,如有疑问请联系客服 + + + 登录错误,请联系客服 + + + diff --git a/src/pages/tabbar/canteen.vue b/src/pages/tabbar/canteen.vue index fa66034..a945f13 100644 --- a/src/pages/tabbar/canteen.vue +++ b/src/pages/tabbar/canteen.vue @@ -16,14 +16,16 @@ const state = reactive({ onLoad(() => { const app = getApp({ allowDefault: true }) - console.log("app:", app); - - app._initTabbar() + if (app._initTabbar) { + app._initTabbar() + } }) onShow(() => { const app = getApp({ allowDefault: true }) - app._initTabbar() + if (app._initTabbar) { + app._initTabbar() + } reportPageAccess("pages/tabbar/canteen") if (pageRef.value) { pageRef.value.reload(false) diff --git a/src/pages/tabbar/my.vue b/src/pages/tabbar/my.vue index b019674..dea1546 100644 --- a/src/pages/tabbar/my.vue +++ b/src/pages/tabbar/my.vue @@ -1,6 +1,5 @@