From 44dd9c4eb8a2489c63a5eb53fd4254bbb3510e95 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Thu, 18 Jun 2026 09:14:57 +0800
Subject: [PATCH] Merge branch 'feature/v9.0/9.0.4'

---
 src/App.vue |   56 +++++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 37 insertions(+), 19 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index 03c4ebb..5101c82 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,20 +1,12 @@
-
 <script setup>
 import { onHide, onLaunch, onShow } from "@dcloudio/uni-app";
-import { useAppStore } from "@/store";
-import {mpUpdate} from "@/utils/index";
+import { useAppStore, useUserStore } from "@/store";
+import { useGlobalWS } from "@/hooks/useGlobalWS.js";
 
 const appStore = useAppStore();
-onLaunch(() => {
-  console.log("App Launch");
+const userStore = useUserStore();
 
-  // 初始化系统信息
-  appStore.initSystemInfo();
-
-  // #ifdef MP-WEIXIN
-  mpUpdate();
-  // #endif
-});
+useGlobalWS();
 
 onShow(() => {
   console.log("App Show");
@@ -23,20 +15,40 @@
 onHide(() => {
   console.log("App Hide");
 });
+
+onLaunch(() => {
+  // 初始化系统信息
+  appStore.initSystemInfo();
+  if (!userStore.userInfo) {
+    //不存在则跳转至登录页
+    uni.reLaunch({
+      url: "/pages/login/index",
+    });
+  }
+});
 </script>
 
 <style lang="scss">
 /* 每个页面公共css */
 @import "uview-plus/index.scss";
 @import "@/static/styles/common.scss";
+
+.TUICallKit-mobile {
+  position: fixed;
+  left: 0;
+  top: 0;
+  z-index: 9999;
+}
+
 page {
-  background-image: url('~@/static/images/user/allBg.svg');
+  background-image: url("https://wrj.shuixiongit.com/aiskyminio/cloud-bucket/ztzf_app_assets/images/user/bg.png");
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
   background-attachment: fixed;
   // min-height: 10vh;
 }
+
 .uni-tabbar__item:nth-child(4) {
   .uni-tabbar__bd {
     .uni-tabbar__icon {
@@ -46,13 +58,19 @@
     }
   }
 }
-.uni-page-head__title {
- font-family: Source Han Sans CN, Source Han Sans CN !important;
- font-weight: 400 !important;
- font-size: 17px !important;
- color: #222324 !important;
+
+.uni-tabbar-border {
+  background-color: #f6f6f6 !important;
 }
+
+.uni-page-head__title {
+  font-family: Source Han Sans CN, Source Han Sans CN !important;
+  font-weight: 400 !important;
+  font-size: 17px !important;
+  color: #222324 !important;
+}
+
 .uni-page-head {
-	background-image: url(/drone-app/src/static/images/user/allBg.svg) !important;
+  background: transparent !important;
 }
 </style>

--
Gitblit v1.9.3