jinx 6 月之前
父節點
當前提交
4020bde7de
共有 1 個文件被更改,包括 10 次插入19 次删除
  1. 10 19
      src/views/home/index.vue

+ 10 - 19
src/views/home/index.vue

@@ -2,7 +2,7 @@
 <template>
   <div class="home" @click="showSwitch = false">
     <!-- <input type="file" @change="readFile" accept=".xlsx" /> -->
-    <div class="title"></div>
+    <div class="title"><img src="@/assets/img/home_title.svg" alt="" /></div>
     <template v-if="currentData">
       <div class="swiper-dom swiper-container" v-if="currentData.list[0] && currentData.list[0].length">
         <div class="swiper-wrapper">
@@ -367,19 +367,6 @@ const goMore = () => {
 };
 onMounted(() => {
   loadJosnData();
-
-  window.addEventListener(
-    "popstate",
-    function (e) {
-      self.location.reload();
-    },
-    false
-  );
-  var state = {
-    title: "",
-    url: "#",
-  };
-  window.history.replaceState(state, "", "#");
 });
 </script>
 <style lang="scss" scoped>
@@ -400,10 +387,14 @@ onMounted(() => {
   .title {
     text-align: center;
     margin: 0.8rem auto 1.4667rem;
-    width: 8.2133rem;
-    height: 2.0667rem;
-    background: url("@/assets/img/home_title.svg") no-repeat;
-    background-size: 100% 100%;
+    width: 70%;
+    // height: 3.6rem;
+    // background: url("@/assets/img/home_title.svg") no-repeat;
+    // background-size: 100% 100%;
+    img {
+      width: 100%;
+      height: auto;
+    }
   }
 
   .item-box {
@@ -429,7 +420,7 @@ onMounted(() => {
       font-size: 0.32rem;
       height: 100%;
       text-align: center;
-      line-height: .3733rem;
+      line-height: 0.3733rem;
     }
   }
   .bottom-controls {