From 5e69c343b6d67c3af46a801330c73bf599c19200 Mon Sep 17 00:00:00 2001 From: ihzero Date: Fri, 26 Apr 2024 06:16:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/App.vue | 19 +++- src/components/cu-navbar/index.vue | 5 +- src/manifest.json | 8 +- src/pages.json | 22 +++- src/pages/guide/judge.vue | 26 +++++ src/pages/home/index.vue | 18 +++- src/pages/login/Layout.vue | 6 +- src/pages/message/components/item.vue | 28 +++++ src/pages/message/index.vue | 96 ++++++++++++++++++ src/pages/revert/index.vue | 6 +- src/pages/setting/index.vue | 51 ++++++++-- src/pages/statement/index.vue | 32 +----- src/static/css/uvui.scss | 8 ++ src/static/logo.png | Bin 4023 -> 357419 bytes .../js_sdk/u-charts/config-ucharts.js | 1 - src/utils/request.js | 10 +- src/utils/status.js | 13 +++ 18 files changed, 287 insertions(+), 64 deletions(-) create mode 100644 src/pages/guide/judge.vue create mode 100644 src/pages/message/components/item.vue create mode 100644 src/pages/message/index.vue diff --git a/.env.development b/.env.development index b3b870e..0cc5e9d 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ VITE_COMMON_API_PREFIX = /api-base -VITE_COMMON_API_URL = http://store-manage.hmily.club +VITE_COMMON_API_URL = http://store-manage.hmily.club/api diff --git a/src/App.vue b/src/App.vue index 9334c3f..69da161 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,16 +3,25 @@ import { useUserStoreWithOut } from '@/store/modules/user' export default { onLaunch: function () { const userStore = useUserStoreWithOut() - + // if (userStore.isLogin) { + // userStore.fetchUserInfo() + // } else { + // uni.navigateTo({ + // url: '/pages/login/index', + // }) + // } + // #ifdef APP-PLUS if (userStore.isLogin) { - userStore.fetchUserInfo() + plus.navigator.closeSplashscreen() } else { - uni.navigateTo({ + uni.reLaunch({ url: '/pages/login/index', + success: () => { + plus.navigator.closeSplashscreen() + }, }) } - - console.log('App Launch') + // #endif }, onShow: function () { console.log('App Show') diff --git a/src/components/cu-navbar/index.vue b/src/components/cu-navbar/index.vue index f8b2621..98140d6 100644 --- a/src/components/cu-navbar/index.vue +++ b/src/components/cu-navbar/index.vue @@ -11,11 +11,12 @@ >