Przeglądaj źródła

本地化 热点 适配

shaogen1995 2 lat temu
rodzic
commit
1da1252fbe
1 zmienionych plików z 25 dodań i 5 usunięć
  1. 25 5
      定制化热点/src/views/Home.vue

+ 25 - 5
定制化热点/src/views/Home.vue

@@ -9,14 +9,14 @@
         <Swiper class="warpper" ref="mySwiper" :options="swiperOptions">
           <SwiperSlide v-for="item in myImgArr" :key="item">
             <!-- 线上数据 -->
-            <!-- <img :src="item" alt="" @click="lookImg(item)" /> -->
+            <img :src="item" alt="" @click="lookImg(item)" />
 
             <!-- 本地化部署 -->
-            <img
+            <!-- <img
               :src="item.replace('https://super.4dage.com', '')"
               alt=""
               @click="lookImg(item.replace('https://super.4dage.com', ''))"
-            />
+            /> -->
           </SwiperSlide>
         </Swiper>
         <!-- 索引 -->
@@ -81,8 +81,8 @@ export default {
       // https://www.4dmodel.com/
 
       //线上数据
-      // let url = `https://super.4dage.com/data/${
-      let url = `/data/${
+      let url = `https://super.4dage.com/data/${
+        // let url = `/data/${
         //本地化部署
         this.id
       }/hot/js/data.js?time=${Math.random()}`;
@@ -215,6 +215,26 @@ export default {
         }
       }
     }
+
+    // 本地化
+    .title {
+      height: 70px;
+      line-height: 70px;
+      font-size: 22px;
+    }
+    .main {
+      height: calc(100% - 70px);
+      .imgBox {
+        height: 72vh;
+      }
+      .txtBox {
+        padding: 30px 20px 40px;
+        min-height: 72vh;
+        font-size: 18px;
+        line-height: 24px;
+        letter-spacing: 4px;
+      }
+    }
   }
 }
 </style>