panhui пре 4 година
родитељ
комит
ee5a6f764c
3 измењених фајлова са 12 додато и 10 уклоњено
  1. 5 5
      src/components/Post.vue
  2. 5 2
      src/main.js
  3. 2 3
      src/views/Home.vue

+ 5 - 5
src/components/Post.vue

@@ -207,7 +207,7 @@ export default {
 
 .content {
     width: 80vw;
-    background: #19191b;
+    background: @bg;
     border-radius: 30px;
     overflow: hidden;
     position: relative;
@@ -225,7 +225,7 @@ export default {
     .name {
         font-size: 18px;
         font-weight: bold;
-        color: #ffffff;
+        color: @text0;
         line-height: 24px;
     }
     .text {
@@ -266,7 +266,7 @@ export default {
     justify-content: space-between;
     align-items: center;
     padding: 10px 16px 12px 10px;
-    border-top: 2px solid #202122;
+    border-top: 2px solid @bg3;
 
     .minter-content {
         /deep/.van-image {
@@ -276,7 +276,7 @@ export default {
         }
         .text1 {
             font-size: @font1;
-            color: #ffffff;
+            color: @text0;
             line-height: 17px;
             margin-top: 1px;
         }
@@ -331,7 +331,7 @@ export default {
         color: #939599;
         line-height: 22px;
         padding: 0 10px;
-        background: #27272b;
+        background: @bg3;
         border-radius: 4px;
         margin-right: 6px;
     }

+ 5 - 2
src/main.js

@@ -59,14 +59,17 @@ if (query.code) {
 if (query.invitor) {
     store.commit('setInvitor', query.invitor);
 }
-
 if (window.cordova) {
     document.addEventListener(
         'deviceready',
         function () {
             setTimeout(() => {
                 navigator.splashscreen.hide();
-                StatusBar.show();
+                if (window.cordova) {
+                    // eslint-disable-next-line no-redeclare
+                    /* global StatusBar */
+                    StatusBar.show();
+                }
             }, 2000);
             window.codePush.sync(
                 function (syncStatus) {

+ 2 - 3
src/views/Home.vue

@@ -72,11 +72,10 @@ export default {
         };
     },
     mounted() {
-        // eslint-disable-next-line no-undef
+        // eslint-disable-next-line no-redeclare
+        /* global StatusBar */
         if (window.cordova && StatusBar) {
-            // eslint-disable-next-line no-undef
             StatusBar.backgroundColorByHexString('#F5F7FA');
-            // eslint-disable-next-line no-undef
             StatusBar.styleDefault();
         }
         this.getInit();