xuqiang 4 سال پیش
والد
کامیت
e56e8478df
1فایلهای تغییر یافته به همراه22 افزوده شده و 22 حذف شده
  1. 22 22
      src/main/pc-space/src/views/Home.vue

+ 22 - 22
src/main/pc-space/src/views/Home.vue

@@ -8,12 +8,12 @@
             <div class="btnCon" @click="$router.push('/collection')"><span>立即探索</span></div>
         </div>
         <div class="back">
-            <!-- <swiper class="mySwiper imgBoxBack" ref="mySwiper" :options="swiperOptions">
-                    <swiper-slide>
+            <!-- <swiper class="mySwiper el-image" ref="mySwiper" :options="swiperOptions">
+                <swiper-slide>
                     <el-image :src="getImg(banners[0].pic, '', 800)" />
-                    </swiper-slide>
-                </swiper> -->
-            <img class="el-image" src="../assets/bg@3x.png" alt="" />
+                </swiper-slide>
+            </swiper> -->
+            <img class="el-image" :src="getImg(banners[0].pic, '', 1800)" alt="" />
         </div>
         <div class="hot1">铸造者</div>
         <div class="introduce center-content">
@@ -173,23 +173,23 @@ export default {
             .then(res => {
                 this.bannersList = res.content;
             });
-        // this.$http
-        //     .post(
-        //         '/banner/all',
-        //         {
-        //             query: {
-        //                 del: false,
-        //                 type: null
-        //             }
-        //         },
-        //         { body: 'json' }
-        //     )
-        //     .then(res => {
-
-        //         this.banners = res.content.filter(item => {
-        //             return item.name === '首页大图';
-        //         });
-        //     });
+        this.$http
+            .post(
+                '/banner/all',
+                {
+                    query: {
+                        del: false,
+                        type: null
+                    }
+                },
+                { body: 'json' }
+            )
+            .then(res => {
+                // console.log(res);
+                this.banners = res.content.filter(item => {
+                    return item.name === '首页大图';
+                });
+            });
     },
     methods: {
         getCreators() {