Browse Source

头部更新

guhongwei 5 years ago
parent
commit
751720f7da
4 changed files with 9 additions and 4 deletions
  1. 3 1
      src/layout/index/top.vue
  2. 2 1
      src/views/detail/detail.vue
  3. 2 1
      src/views/index/index.vue
  4. 2 1
      src/views/list/list.vue

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

@@ -3,7 +3,8 @@
     <el-row>
       <el-col :span="24" class="image">
         <!-- <el-image :src="topInfo.logo" v-if="topInfo && topInfo.logo"></el-image> -->
-         <el-image :src="topInfo.logo"></el-image>
+         <!-- <el-image :src="topInfo.logo"></el-image> -->
+         <el-image :src="topInfos.logo"></el-image>
       </el-col>
     </el-row>
   </div>
@@ -14,6 +15,7 @@ export default {
   name: 'top',
   props: {
     topInfo: null,
+    topInfos:null,
   },
   components: {},
   data: () => ({}),

+ 2 - 1
src/views/detail/detail.vue

@@ -3,7 +3,7 @@
     <el-row style="overflow-y: hidden;">
       <el-col :span="24" class="top">
         <div class="w_1200">
-          <top :topInfo="topInfo"></top>
+          <top :topInfo="topInfo" :topInfos="topInfos"></top>
         </div>
       </el-col>
       <el-col :span="24" class="menu">
@@ -31,6 +31,7 @@ import footinfo from '../../layout/index/foot.vue';
 export default {
   name: 'detail',
   props: {
+    topInfos:null,
     topInfo:null,
     contentList:null,
   },

+ 2 - 1
src/views/index/index.vue

@@ -3,7 +3,7 @@
     <el-row style="overflow-y: hidden;">
       <el-col :span="24" class="top">
         <div class="w_1200">
-          <top :topInfo="topInfo"></top>
+          <top :topInfo="topInfo" :topInfos="topInfos"></top>
         </div>
       </el-col>
       <el-col :span="24" class="menu">
@@ -49,6 +49,7 @@ import footinfo from '../../layout/index/foot.vue';
 export default {
   name: 'index',
   props: {
+    topInfos:null,
     topInfo:null,
     noticelist:null,
     newslist:null,

+ 2 - 1
src/views/list/list.vue

@@ -3,7 +3,7 @@
     <el-row style="overflow-y: hidden;">
       <el-col :span="24" class="top">
         <div class="w_1200">
-          <top :topInfo="topInfo"></top>
+          <top :topInfo="topInfo" :topInfos="topInfos"></top>
         </div>
       </el-col>
       <el-col :span="24" class="menu">
@@ -37,6 +37,7 @@ import footinfo from '../../layout/index/foot.vue';
 export default {
   name: 'list',
   props: {
+    topInfos:null,
     topInfo:null,
     mainRightList:null,
     total: null,