guhongwei 5 سال پیش
والد
کامیت
5977b0438c
3فایلهای تغییر یافته به همراه6 افزوده شده و 6 حذف شده
  1. 4 4
      src/layout/index/foot.vue
  2. 1 1
      src/layout/index/top.vue
  3. 1 1
      src/views/index.vue

+ 4 - 4
src/layout/index/foot.vue

@@ -1,12 +1,12 @@
 <template>
   <div id="foot">
-    <el-row v-if="downList">
+    <el-row v-if="topInfo">
       <el-col :span="24" class="down">
         <el-col :span="24">
-          <p class="text">{{ downList.copyright }}</p>
+          <p class="text">{{ topInfo.copyright }}</p>
         </el-col>
         <el-col :span="24">
-          <p class="text">域名备案信息:{{ downList.domain }}</p>
+          <p class="text">域名备案信息:{{ topInfo.domain }}</p>
         </el-col>
       </el-col>
     </el-row>
@@ -17,7 +17,7 @@
 export default {
   name: 'foot',
   props: {
-    downList: null,
+    topInfo: null,
   },
   components: {},
   data: () => ({}),

+ 1 - 1
src/layout/index/top.vue

@@ -1,7 +1,7 @@
 <template>
   <div id="top">
     <el-row>
-      <el-col :span="24" class="top" :style="`background: url('${topInfo && topInfo.banner ? topInfo.banner : ''} ');height:300px;`">
+      <el-col :span="24" class="top" :style="`background: url('${topInfo && topInfo.banner ? topInfo.banner : ''} ');min-height:300px;`">
         <div class="w_1200">
           <el-col :span="2">
             <el-image style="width:100px;height:100px" :src="topInfo.logo" v-if="topInfo && topInfo.logo"></el-image>

+ 1 - 1
src/views/index.vue

@@ -71,7 +71,7 @@
       </el-col>
       <el-col :span="24" class="down">
         <div class="w_1200">
-          <footDown :downList="downList"></footDown>
+          <footDown :topInfo="topInfo"></footDown>
         </div>
       </el-col>
     </el-row>