panhui 3 år sedan
förälder
incheckning
f123a75e21
3 ändrade filer med 30 tillägg och 27 borttagningar
  1. 20 17
      src/main.js
  2. 9 9
      src/router/index.js
  3. 1 1
      src/views/Mine.vue

+ 20 - 17
src/main.js

@@ -143,20 +143,22 @@ if (navigator.userAgent.includes('#cordova#')) {
         function () {
             StatusBar.overlaysWebView(true);
             window.$vm = app.mount('#app');
-            loadSplash(
-                () => {
-                    setTimeout(() => {
-                        navigator.splashscreen.hide();
-                    }, 100);
-                },
-                () => {
-                    navigator.splashscreen.hide();
-                }
-            ).then(res => {
-                StatusBar.overlaysWebView(false);
-                StatusBar.backgroundColorByHexString('#F5F7FA');
-                StatusBar.styleDefault();
-            });
+            navigator.splashscreen.hide();
+            StatusBar.overlaysWebView(false);
+            StatusBar.backgroundColorByHexString('#0f0f27');
+            StatusBar.styleLightContent();
+            // loadSplash(
+            //     () => {
+            //         setTimeout(() => {
+            //             navigator.splashscreen.hide();
+            //         }, 100);
+            //     },
+            //     () => {
+            //         navigator.splashscreen.hide();
+            //     }
+            // ).then(res => {
+               
+            // });
 
             if (/iphone|ipad|ipod/i.test(navigator.userAgent)) {
                 style.setProperty('--safe-top', 'env(safe-area-inset-top)');
@@ -272,7 +274,8 @@ if (navigator.userAgent.includes('#cordova#')) {
         false
     );
 } else {
-    loadSplash().then(res => {
-        window.$vm = app.mount('#app');
-    });
+    window.$vm = app.mount('#app');
+    // loadSplash().then(res => {
+    //     window.$vm = app.mount('#app');
+    // });
 }

+ 9 - 9
src/router/index.js

@@ -135,7 +135,7 @@ const routes = [
             pageType: Page.Every,
             title: '第九空间',
             isHall: true,
-            tabColor: '#181818'
+            tabColor: '#0f0f27'
         }
     },
     {
@@ -146,7 +146,7 @@ const routes = [
             pageType: Page.Every,
             title: '第九空间',
             isHall: true,
-            tabColor: '#181818'
+            tabColor: '#0f0f27'
         }
     },
     {
@@ -156,7 +156,7 @@ const routes = [
         meta: {
             pageType: Page.Login,
             title: '登录',
-            tabColor: '#181818'
+            tabColor: '#0f0f27'
         }
     },
     {
@@ -175,7 +175,7 @@ const routes = [
         meta: {
             pageType: Page.Login,
             title: '注册',
-            tabColor: '#181818'
+            tabColor: '#0f0f27'
         }
     },
     {
@@ -280,7 +280,7 @@ const routes = [
         meta: {
             pageType: Page.Every,
             title: '第九空间',
-            tabColor: '#181818'
+            tabColor: '#0f0f27'
         }
     },
     {
@@ -318,7 +318,7 @@ const routes = [
             pageType: Page.Every,
             menuPage: true,
             title: '第九空间',
-            tabColor: '#181818'
+            tabColor: '#0f0f27'
         }
     },
     {
@@ -392,7 +392,7 @@ const routes = [
         meta: {
             pageType: Page.Every,
             title: '第九空间',
-            tabColor: '#181818'
+            tabColor: '#0f0f27'
         }
     },
     {
@@ -501,7 +501,7 @@ const routes = [
         meta: {
             pageType: Page.Every,
             title: '第九空间',
-            tabColor: '#181818'
+            tabColor: '#0f0f27'
         }
     },
     {
@@ -511,7 +511,7 @@ const routes = [
         meta: {
             pageType: Page.Every,
             title: '第九空间',
-            tabColor: '#181818'
+            tabColor: '#0f0f27'
         }
     },
     {

+ 1 - 1
src/views/Mine.vue

@@ -437,7 +437,7 @@ export default {
             // });
         }
         if (window.cordova && StatusBar && StatusBar.isVisible) {
-            StatusBar.backgroundColorByHexString('#222426');
+            StatusBar.backgroundColorByHexString('#0f0f27');
             StatusBar.styleLightContent();
         }
         // let topHeight = this.$refs.top.offsetHeight // 获取高度