Jelajahi Sumber

Merge branch 'dev' of xiongzhu/raex_front into master

panhui 3 tahun lalu
induk
melakukan
92e47d2da3
4 mengubah file dengan 32 tambahan dan 21 penghapusan
  1. 1 1
      .env.development
  2. 16 16
      src/views/Home.vue
  3. 2 2
      src/views/StarMap.vue
  4. 13 2
      src/views/auction/Home.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
 NODE_ENV=development
 VUE_APP_PUBLIC_PATH=/
 VUE_APP_PUBLIC_PATH=/
 ASSETS_PATH=raex
 ASSETS_PATH=raex

+ 16 - 16
src/views/Home.vue

@@ -51,6 +51,22 @@
             <img src="@assets/topbg1.png" class="swiper-bg" alt="" />
             <img src="@assets/topbg1.png" class="swiper-bg" alt="" />
         </div>
         </div>
 
 
+        <div class="card news">
+            <div class="news-title" @click="$router.push('/newsList')">
+                <div class="news-left">
+                    <div class="text1">绿洲头条新闻</div>
+                    <div class="text2">快来了解绿洲宇宙新动态</div>
+                </div>
+                <img class="more" src="@assets/icon_inter.png" alt="" />
+            </div>
+            <news-record
+                v-for="(item, index) in news"
+                :key="index"
+                v-model:info="news[index].obj"
+                type="light"
+            ></news-record>
+        </div>
+
         <div class="short-list">
         <div class="short-list">
             <div class="short-info" @click="$router.push('/starMap')">
             <div class="short-info" @click="$router.push('/starMap')">
                 <img src="@assets/home1.png" alt="" class="short-img" />
                 <img src="@assets/home1.png" alt="" class="short-img" />
@@ -91,22 +107,6 @@
             </div>
             </div>
         </div>
         </div>
 
 
-        <div class="card news">
-            <div class="news-title" @click="$router.push('/newsList')">
-                <div class="news-left">
-                    <div class="text1">绿洲头条新闻</div>
-                    <div class="text2">快来了解绿洲宇宙新动态</div>
-                </div>
-                <img class="more" src="@assets/icon_inter.png" alt="" />
-            </div>
-            <news-record
-                v-for="(item, index) in news"
-                :key="index"
-                v-model:info="news[index].obj"
-                type="light"
-            ></news-record>
-        </div>
-
         <div class="card news">
         <div class="card news">
             <div class="news-title" @click="$router.push('/activityList')">
             <div class="news-title" @click="$router.push('/activityList')">
                 <div class="news-left">
                 <div class="news-left">

+ 2 - 2
src/views/StarMap.vue

@@ -100,7 +100,7 @@ export default {
     background-color: #030001;
     background-color: #030001;
     position: relative;
     position: relative;
     min-height: var(--app-height);
     min-height: var(--app-height);
-    padding-top: var(--safe-top);
+    // padding-top: var(--safe-top);
     & > div {
     & > div {
         position: relative;
         position: relative;
         z-index: 1;
         z-index: 1;
@@ -167,7 +167,7 @@ export default {
 
 
 .tips {
 .tips {
     margin: 0 16px 0;
     margin: 0 16px 0;
-    padding: 0px 40px 20px;
+    padding: 0px 10px 20px;
     position: relative;
     position: relative;
     z-index: 1;
     z-index: 1;
     .text1 {
     .text1 {

+ 13 - 2
src/views/auction/Home.vue

@@ -30,7 +30,7 @@
                 />
                 />
             </swiper-slide>
             </swiper-slide>
         </swiper>
         </swiper>
-        <van-tabs v-model:active="auctionType" shrink @change="getData(true)">
+        <van-tabs v-model:active="auctionType" shrink @change="changeTab">
             <van-tab title="官方拍卖" name="OFFICIAL"></van-tab>
             <van-tab title="官方拍卖" name="OFFICIAL"></van-tab>
             <van-tab title="藏家市场" name="NFT"></van-tab>
             <van-tab title="藏家市场" name="NFT"></van-tab>
             <!-- <van-tab title="藏家市场" name="ENTITY"></van-tab> -->
             <!-- <van-tab title="藏家市场" name="ENTITY"></van-tab> -->
@@ -91,6 +91,17 @@ export default {
         this.getBanner();
         this.getBanner();
     },
     },
     methods: {
     methods: {
+        changeTab(tab) {
+            console.log(tab);
+            if (tab === 'NFT') {
+                this.wait();
+                this.$nextTick(() => {
+                    this.auctionType = 'OFFICIAL';
+                });
+            } else {
+                this.getData(true);
+            }
+        },
         getBanner() {
         getBanner() {
             return this.$http
             return this.$http
                 .post(
                 .post(
@@ -262,4 +273,4 @@ export default {
     padding: 8px;
     padding: 8px;
     min-height: calc(100vh - 156px);
     min-height: calc(100vh - 156px);
 }
 }
-</style>
+</style>