panhui 4 лет назад
Родитель
Сommit
525bfe40ee

+ 1 - 1
.env.development

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

+ 2 - 2
src/components/product/productLarge.vue

@@ -42,7 +42,7 @@
             </div>
         </div>
 
-        <div class="sold xianliang" v-if="time">
+        <div class="sold xianliang" v-if="time && info.salable">
             <img src="@assets/shizhong.png" alt="" />
             <span>即将开售:{{ startTime || time }}</span>
         </div>
@@ -245,7 +245,7 @@ export default {
 
 .status {
     font-size: @font2;
-    color: #fff;
+    color: @text0;
 }
 .sold {
     background-color: @bg2;

+ 12 - 0
src/views/Index.vue

@@ -71,4 +71,16 @@ export default {
     background-color: @bg3;
     .flex-col();
 }
+
+/deep/.van-hairline--top-bottom {
+    &::after {
+        border-top: 1px solid @bg3;
+    }
+    &.bgBack {
+        background-color: #181818;
+        &::after {
+            border-top: 1px solid #181818;
+        }
+    }
+}
 </style>

+ 8 - 1
src/views/Store.vue

@@ -192,10 +192,17 @@ export default {
         }
         this.$nextTick(() => {
             this.stiky = this.$refs.top.$el.childNodes[0];
-            this.$el.parentNode.childNodes[1].style.backgroundColor = '#131313';
+            this.$el.parentNode.childNodes[1].className =
+                this.$el.parentNode.childNodes[1].className.replace(/ bgBack/, '') + ' bgBack';
         });
         this.checkLogin();
     },
+    beforeRouteLeave() {
+        this.$el.parentNode.childNodes[1].className = this.$el.parentNode.childNodes[1].className.replace(
+            / bgBack/,
+            ''
+        );
+    },
     methods: {
         getList() {
             if (!this.isLogin) {

+ 1 - 1
src/views/account/Setting.vue

@@ -42,7 +42,7 @@
                     <van-uploader class="avatar" :after-read="afterRead2" result-type="file" />
                 </template>
             </van-cell>
-            <van-cell class="not" title="编码" :value="userInfo.id" @click="showConsole" />
+            <van-cell class="not" title="用户id" :value="userInfo.id" @click="showConsole" />
         </van-cell-group>
 
         <van-action-sheet