xiongzhu hace 4 años
padre
commit
cce9f07035
Se han modificado 2 ficheros con 8 adiciones y 4 borrados
  1. 1 1
      src/main/pc-space/src/plugins/http.js
  2. 7 3
      src/main/pc-space/src/views/Home.vue

+ 1 - 1
src/main/pc-space/src/plugins/http.js

@@ -4,7 +4,7 @@ import qs from 'qs';
 let baseUrl = 'http://localhost:8080';
 switch (process.env.NODE_ENV) {
     case 'development':
-        baseUrl = 'https://nfttest.9space.vip/';
+        baseUrl = 'https://nft.9space.vip/';
         // baseUrl = 'http://192.168.50.190:8080';
         // baseUrl = 'http://localhost:8080';
         // baseUrl = 'http://192.168.50.190:8080';

+ 7 - 3
src/main/pc-space/src/views/Home.vue

@@ -13,7 +13,7 @@
                     <el-image :src="getImg(banners[0].pic, '', 800)" />
                 </swiper-slide>
             </swiper> -->
-            <img class="el-image" :src="getImg(banners[0].pic, '', 1800)" alt="" />
+            <img class="el-image" :src="titleImg" alt="" style="object-fit:cover"/>
         </div>
         <div class="hot1">铸造者</div>
         <div class="introduce center-content">
@@ -154,6 +154,11 @@ export default {
             lists: ''
         };
     },
+    computed: {
+        titleImg() {
+            return this.getImg((this.banners[0] || {}).pic, '', 1800);
+        }
+    },
     mounted() {
         this.getCreators();
         this.getProduct().then(res => {
@@ -185,9 +190,8 @@ export default {
                 { body: 'json' }
             )
             .then(res => {
-                console.log(res);
+                // console.log(res);
                 this.banners = res.content;
-                console.log(this.banners[0].pic);
             });
     },
     methods: {