panhui 3 年 前
コミット
e5828c778f
4 ファイル変更48 行追加6 行削除
  1. 1 1
      .env.development
  2. 42 2
      src/App.vue
  3. 4 2
      src/views/Store.vue
  4. 1 1
      src/views/product/Detail.vue

+ 1 - 1
.env.development

@@ -1,4 +1,4 @@
-VUE_APP_BASE_URL=https://www.raex.vip/
+VUE_APP_BASE_URL=https://test.raex.vip/
 NODE_ENV=development
 VUE_APP_PUBLIC_PATH=/
 ASSETS_PATH=raex

+ 42 - 2
src/App.vue

@@ -1,7 +1,7 @@
 <template>
     <div
         class="scroll-wrapper"
-        :class="{ darkTheme: darkTheme }"
+        :class="[{ darkTheme: darkTheme }, routeName]"
         id="scroll-wrapper"
         ref="scroll"
         @scroll="scrollEvent"
@@ -103,6 +103,7 @@ import 'swiper/swiper-bundle.min.css';
 
 import SwiperCore, { Pagination, Autoplay } from 'swiper';
 import dayjs from 'dayjs';
+import { throwStatement } from '@babel/types';
 
 // install Swiper modules
 SwiperCore.use([Pagination, Autoplay]);
@@ -140,7 +141,8 @@ export default {
             keeps: [],
             bodyScroll: 0,
             showSplash: false,
-            setting: false
+            setting: false,
+            routeName: ''
         };
     },
     watch: {
@@ -153,6 +155,7 @@ export default {
             } else {
                 this.setting = false;
             }
+            this.routeName = this.$route.name;
         }
     },
     mounted() {
@@ -165,6 +168,7 @@ export default {
             }
             this.getCard();
         }
+        this.routeName = this.$route.name;
     },
     methods: {
         getCard() {
@@ -259,6 +263,42 @@ export default {
 }
 .scroll-wrapper {
     background-color: @bg;
+
+    &.store {
+        background-color: #0f0f0f;
+    }
+
+    &.home {
+        background-color: var(--bg);
+    }
+
+    &.productDetail,
+    &.assetDetail,
+    &.auctionDetail {
+        background-color: #0f0f0f;
+    }
+
+    &.productSearchCorpse,
+    &.discover,
+    &.mine,
+    &.creatorDetail {
+        background-color: #272b2e;
+    }
+
+    &.userLogin,
+    &.userRegister {
+        background-color: #101010;
+    }
+
+    &.chatList,
+    &.chatDetail,
+    &.teamSetting {
+        background-color: #1c1c1c;
+    }
+
+    &.auction {
+        background-color: #030001;
+    }
 }
 .scroll-wrappers {
     background-color: #272b2e;

+ 4 - 2
src/views/Store.vue

@@ -888,7 +888,9 @@ export default {
 // /deep/.van-sticky {
 //     position: relative;
 // }
-
+/deep/.scroll-wrapper {
+    background-color: #0f0f0f !important;
+}
 .discover {
     background-color: #0f0f0f;
     min-height: 100vh;
@@ -1030,4 +1032,4 @@ export default {
         margin-top: 10vh;
     }
 }
-</style>
+</style>

+ 1 - 1
src/views/product/Detail.vue

@@ -1706,7 +1706,7 @@ export default {
     line-height: 28px;
     text-align: center;
     padding: 14px 50px !important;
-    border-top: 1px solid #313233;
+    // border-top: 1px solid #313233;
 }
 
 /deep/.goods-info {