wxy 4 anni fa
parent
commit
ae1e264ee7

+ 8 - 5
src/components/common/foot1.vue

@@ -4,7 +4,7 @@
       <el-col :span="24" class="foot">
         <div class="w_1200">
           <el-col :span="24" class="two">
-            <p>版权所有:吉林省技术算中心</p>
+            <!-- <p>版权所有:吉林省技术算中心</p>
             <p>
               <span>技术支持:长春福瑞科技有限公司</span>
               <span>邮编:130000</span>
@@ -14,7 +14,8 @@
               <span>地址:吉林省长春市朝阳区前进大街1244号</span>
               <span>电话:0134-1234567</span>
               <span>邮箱:123456@163.com</span>
-            </p>
+            </p> -->
+            <el-col :span="24" v-html="infoMes.footinfo" class="text"></el-col>
           </el-col>
         </div>
       </el-col>
@@ -29,7 +30,9 @@ export default {
     return { title: this.$route.meta.title };
   },
   name: 'foot1',
-  props: {},
+  props: {
+    infoMes: { type: Object },
+  },
   components: {},
   data: function() {
     return {};
@@ -52,11 +55,11 @@ export default {
     height: 120px;
     background-color: rgba(14, 30, 59, 0.4);
     padding: 15px 0px 0px 200px;
-    p {
+    .text {
       font-size: 14px;
       color: #868f9e;
       font-family: '微软雅黑';
-      padding: 5px 0px;
+      line-height: 30px;
     }
   }
 }

+ 5 - 3
src/components/common/top.vue

@@ -11,8 +11,8 @@
           <div class="w_1200">
             <el-col :span="18" class="logo">
               <a href="/">
-                <p class="title">阿勒泰地区科技创新创业服务平台</p>
-                <p class="e-title">Altay technology innovation and entrepreneurship service platform</p>
+                <p class="title">{{ infoMes.title }}</p>
+                <p class="e-title">{{ infoMes.engtitle }}</p>
               </a>
             </el-col>
             <el-col :span="6" class="search">
@@ -33,7 +33,9 @@ export default {
     return { title: this.$route.meta.title };
   },
   name: 'top',
-  props: {},
+  props: {
+    infoMes: { type: Object },
+  },
   components: {},
   data: function() {
     return {

+ 6 - 0
src/store/index.js

@@ -4,6 +4,9 @@ import links from './links';
 import column from './column';
 import kjzxInfo from './kjzxInfo';
 import kjpxColumn from './kjpxColumn';
+import kjpxInfo from './kjpxInfo';
+import video from './video';
+import siteInfo from './siteInfo';
 
 Vue.use(Vuex);
 
@@ -16,5 +19,8 @@ export default new Vuex.Store({
     column,
     kjzxInfo,
     kjpxColumn,
+    kjpxInfo,
+    video,
+    siteInfo,
   },
 });

+ 42 - 0
src/store/kjpxInfo.js

@@ -0,0 +1,42 @@
+import Vue from 'vue';
+import Vuex from 'vuex';
+import _ from 'lodash';
+Vue.use(Vuex);
+const api = {
+  kjpxInfo: `/api/servicealtai/trainnews`,
+};
+const state = () => ({});
+const mutations = {};
+
+const actions = {
+  async query({ commit }, { skip = 0, limit, ...info } = {}) {
+    const res = await this.$axios.$get(`${api.kjpxInfo}`, {
+      skip,
+      limit,
+      ...info,
+    });
+    return res;
+  },
+  async create({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.kjpxInfo}`, payload);
+    return res;
+  },
+  async fetch({ commit }, payload) {
+    const res = await this.$axios.$get(`${api.kjpxInfo}/${payload}`);
+    return res;
+  },
+  async update({ commit }, { id, ...data }) {
+    const res = await this.$axios.$post(`${api.kjpxInfo}/update/${id}`, data);
+    return res;
+  },
+  async delete({ commit }, payload) {
+    const res = await this.$axios.$delete(`${api.kjpxInfo}/${payload}`);
+    return res;
+  },
+};
+export default {
+  namespaced: true,
+  state,
+  mutations,
+  actions,
+};

+ 42 - 0
src/store/siteInfo.js

@@ -0,0 +1,42 @@
+import Vue from 'vue';
+import Vuex from 'vuex';
+import _ from 'lodash';
+Vue.use(Vuex);
+const api = {
+  siteInfo: `/api/servicealtai/siteinfo`,
+};
+const state = () => ({});
+const mutations = {};
+
+const actions = {
+  async query({ commit }, { skip = 0, limit, ...info } = {}) {
+    const res = await this.$axios.$get(`${api.siteInfo}`, {
+      skip,
+      limit,
+      ...info,
+    });
+    return res;
+  },
+  async create({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.siteInfo}`, payload);
+    return res;
+  },
+  async fetch({ commit }, payload) {
+    const res = await this.$axios.$get(`${api.siteInfo}/${payload}`);
+    return res;
+  },
+  async update({ commit }, { id, ...data }) {
+    const res = await this.$axios.$post(`${api.siteInfo}/update/${id}`, data);
+    return res;
+  },
+  async delete({ commit }, payload) {
+    const res = await this.$axios.$delete(`${api.siteInfo}/${payload}`);
+    return res;
+  },
+};
+export default {
+  namespaced: true,
+  state,
+  mutations,
+  actions,
+};

+ 42 - 0
src/store/video.js

@@ -0,0 +1,42 @@
+import Vue from 'vue';
+import Vuex from 'vuex';
+import _ from 'lodash';
+Vue.use(Vuex);
+const api = {
+  video: `/api/servicealtai/videomeet`,
+};
+const state = () => ({});
+const mutations = {};
+
+const actions = {
+  async query({ commit }, { skip = 0, limit, ...info } = {}) {
+    const res = await this.$axios.$get(`${api.video}`, {
+      skip,
+      limit,
+      ...info,
+    });
+    return res;
+  },
+  async create({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.video}`, payload);
+    return res;
+  },
+  async fetch({ commit }, payload) {
+    const res = await this.$axios.$get(`${api.video}/${payload}`);
+    return res;
+  },
+  async update({ commit }, { id, ...data }) {
+    const res = await this.$axios.$post(`${api.video}/update/${id}`, data);
+    return res;
+  },
+  async delete({ commit }, payload) {
+    const res = await this.$axios.$delete(`${api.video}/${payload}`);
+    return res;
+  },
+};
+export default {
+  namespaced: true,
+  state,
+  mutations,
+  actions,
+};

+ 25 - 13
src/views/index.vue

@@ -3,7 +3,7 @@
     <el-row>
       <el-col :span="24">
         <el-col :span="24">
-          <top></top>
+          <top :infoMes="infoMes"></top>
         </el-col>
         <el-col :span="24">
           <menus></menus>
@@ -11,10 +11,8 @@
         <el-col :span="24" class="info">
           <div class="w_1200">
             <el-col :span="24" class="one">
-              <el-col :span="24" v-for="(item, index) in tpxw1" :key="index" style="width:100%; height:100%">
-                <el-image :src="item.picture" style="width:100%; height:100%"></el-image>
-                <p>{{ item.brief }}</p>
-              </el-col>
+              <el-image :src="url" style="width:100%; height:100%"></el-image>
+              <p>提示信息</p>
             </el-col>
             <el-col :span="18" class="two">
               <el-col :span="24" class="title">
@@ -51,12 +49,12 @@
                 </el-col>
                 <el-col :span="24" class="list">
                   <el-col :span="24" class="listInfo" v-for="(item, index) in tzgg" :key="index">
-                    <el-col :span="18">
+                    <el-col :span="20">
                       <span class="circle"></span>
                       <span class="text">{{ item.title }}</span>
                     </el-col>
-                    <el-col :span="6" class="time">
-                      {{ item.create_time }}
+                    <el-col :span="4" class="time">
+                      {{ getdate(item.create_time) }}
                     </el-col>
                   </el-col>
                 </el-col>
@@ -73,12 +71,12 @@
                 </el-col>
                 <el-col :span="24" class="list">
                   <el-col :span="24" class="listInfo" v-for="(item, index) in zcfg" :key="index">
-                    <el-col :span="18">
+                    <el-col :span="20">
                       <span class="circle"></span>
                       <span class="text">{{ item.title }}</span>
                     </el-col>
-                    <el-col :span="6" class="time">
-                      {{ item.create_time }}
+                    <el-col :span="4" class="time">
+                      {{ getdate(item.create_time) }}
                     </el-col>
                   </el-col>
                 </el-col>
@@ -108,7 +106,7 @@
           <link1 :links="links"></link1>
         </el-col>
         <el-col :span="24">
-          <foot></foot>
+          <foot :infoMes="infoMes"></foot>
         </el-col>
       </el-col>
     </el-row>
@@ -124,6 +122,8 @@ import link1 from '../components/common/link1.vue';
 const { mapActions: link } = createNamespacedHelpers('links');
 const { mapActions: column } = createNamespacedHelpers('column');
 const { mapActions: kjzxInfo } = createNamespacedHelpers('kjzxInfo');
+const { mapActions: siteInfo } = createNamespacedHelpers('siteInfo');
+var moment = require('moment');
 export default {
   metaInfo() {
     return { title: this.$route.meta.title };
@@ -138,6 +138,7 @@ export default {
   },
   data: function() {
     return {
+      url: require('@/assets/map.jpg'),
       links: [],
       imgs: [
         {
@@ -183,6 +184,8 @@ export default {
       tzgg: [],
       //政策法规
       zcfg: [],
+      //信息
+      infoMes: {},
     };
   },
   created() {
@@ -193,12 +196,17 @@ export default {
     ...link({ linkquery: 'query', linkcreate: 'create', linkfetch: 'fetch', linkupdate: 'update', linkdelete: 'delete' }),
     ...column({ columnquery: 'query', columncreate: 'create', columnfetch: 'fetch', columnupdate: 'update', columndelete: 'delete' }),
     ...kjzxInfo({ kjzxquery: 'query', kjzxcreate: 'create', kjzxfetch: 'fetch', kjzxupdate: 'update', kjzxdelete: 'delete' }),
+    ...siteInfo({ sitequery: 'query' }),
     //查询列表
     async search() {
       const res = await this.linkquery();
       if (this.$checkRes(res)) {
         this.$set(this, `links`, res.data);
       }
+      const res1 = await this.sitequery();
+      if (this.$checkRes(res1)) {
+        this.$set(this, `infoMes`, res1.data[0]);
+      }
     },
     //查询栏目
     async searchColumn() {
@@ -234,6 +242,10 @@ export default {
     to() {
       this.$router.push({ path: '/list' });
     },
+    getdate(value) {
+      let date = moment(value).format('MM-DD');
+      return date;
+    },
   },
   computed: {
     ...mapState(['user']),
@@ -289,7 +301,7 @@ export default {
         overflow: hidden;
         .listInfo {
           .text {
-            width: 250px;
+            width: 280px;
           }
           .time {
             font-size: 13px;

+ 18 - 4
src/views/kjfw/index.vue

@@ -3,7 +3,7 @@
     <el-row>
       <el-col :span="24">
         <el-col :span="24">
-          <top></top>
+          <top :infoMes="infoMes"></top>
         </el-col>
         <el-col :span="24">
           <menus></menus>
@@ -46,7 +46,7 @@
           </div>
         </el-col>
         <el-col :span="24">
-          <foot></foot>
+          <foot :infoMes="infoMes"></foot>
         </el-col>
       </el-col>
     </el-row>
@@ -58,6 +58,8 @@ import { mapState, createNamespacedHelpers } from 'vuex';
 import top from '../../components/common/top.vue';
 import menus from '../../components/common/menus.vue';
 import foot from '../../components/common/foot1.vue';
+const { mapActions: siteInfo } = createNamespacedHelpers('siteInfo');
+
 export default {
   metaInfo() {
     return { title: this.$route.meta.title };
@@ -158,10 +160,22 @@ export default {
           href1: '',
         },
       ],
+      //头尾信息
+      infoMes: {},
     };
   },
-  created() {},
-  methods: {},
+  created() {
+    this.search();
+  },
+  methods: {
+    ...siteInfo({ sitequery: 'query' }),
+    async search() {
+      const res1 = await this.sitequery();
+      if (this.$checkRes(res1)) {
+        this.$set(this, `infoMes`, res1.data[0]);
+      }
+    },
+  },
   computed: {
     ...mapState(['user']),
   },

+ 88 - 37
src/views/kjpx/index.vue

@@ -3,7 +3,7 @@
     <el-row>
       <el-col :span="24">
         <el-col :span="24">
-          <top></top>
+          <top :infoMes="infoMes"></top>
         </el-col>
         <el-col :span="24">
           <menus></menus>
@@ -20,11 +20,11 @@
                   <img src="../../assets/more.png" />
                 </el-col>
               </el-col>
-              <el-col :span="24" class="con" v-for="(item, index) in kjpx" :key="index">
-                <el-col :span="5" class="time">{{ item.time }}</el-col>
+              <el-col :span="24" class="con" v-for="(item, index) in sphy" :key="index">
+                <el-col :span="5" class="time"> {{ getdate(item.create_time) }}</el-col>
                 <el-col :span="19" class="list">
                   <el-col :span="24" class="title1">{{ item.title }}</el-col>
-                  <el-col :span="24" class="con1">{{ item.text }}</el-col>
+                  <el-col :span="24" class="con1" v-html="item.content"></el-col>
                 </el-col>
               </el-col>
             </el-col>
@@ -35,49 +35,49 @@
                     <el-col :span="24" class="list1" v-for="(item, index) in ztyt" :key="index">
                       <el-col :span="20">
                         <span class="circle"></span>
-                        <span class="text">{{ item.text }}</span>
+                        <span class="text">{{ item.title }}</span>
                       </el-col>
                       <el-col :span="4" class="time">
-                        {{ item.time }}
+                        {{ item.create_time }}
                       </el-col>
                     </el-col>
                   </el-col>
                 </el-tab-pane>
                 <el-tab-pane label="技术问答" name="second"
                   ><el-col :span="24" class="ztyt">
-                    <el-col :span="24" class="list1" v-for="(item, index) in ztyt" :key="index">
+                    <el-col :span="24" class="list1" v-for="(item, index) in jswd" :key="index">
                       <el-col :span="20">
                         <span class="circle"></span>
-                        <span class="text">{{ item.text }}</span>
+                        <span class="text">{{ item.title }}</span>
                       </el-col>
                       <el-col :span="4" class="time">
-                        {{ item.time }}
+                        {{ item.create_time }}
                       </el-col>
                     </el-col>
                   </el-col></el-tab-pane
                 >
                 <el-tab-pane label="行业研究" name="third"
                   ><el-col :span="24" class="ztyt">
-                    <el-col :span="24" class="list1" v-for="(item, index) in ztyt" :key="index">
+                    <el-col :span="24" class="list1" v-for="(item, index) in hyyj" :key="index">
                       <el-col :span="20">
                         <span class="circle"></span>
-                        <span class="text">{{ item.text }}</span>
+                        <span class="text">{{ item.title }}</span>
                       </el-col>
                       <el-col :span="4" class="time">
-                        {{ item.time }}
+                        {{ item.create_time }}
                       </el-col>
                     </el-col>
                   </el-col></el-tab-pane
                 >
                 <el-tab-pane label="教育培训" name="fourth"
                   ><el-col :span="24" class="ztyt">
-                    <el-col :span="24" class="list1" v-for="(item, index) in ztyt" :key="index">
+                    <el-col :span="24" class="list1" v-for="(item, index) in jypx" :key="index">
                       <el-col :span="20">
                         <span class="circle"></span>
-                        <span class="text">{{ item.text }}</span>
+                        <span class="text">{{ item.title }}</span>
                       </el-col>
                       <el-col :span="4" class="time">
-                        {{ item.time }}
+                        {{ item.create_time }}
                       </el-col>
                     </el-col>
                   </el-col></el-tab-pane
@@ -87,7 +87,7 @@
           </div>
         </el-col>
         <el-col :span="24">
-          <foot></foot>
+          <foot :infoMes="infoMes"></foot>
         </el-col>
       </el-col>
     </el-row>
@@ -99,6 +99,12 @@ import { mapState, createNamespacedHelpers } from 'vuex';
 import top from '../../components/common/top.vue';
 import menus from '../../components/common/menus.vue';
 import foot from '../../components/common/foot1.vue';
+const { mapActions: kjpxColumn } = createNamespacedHelpers('kjpxColumn');
+const { mapActions: kjpxInfo } = createNamespacedHelpers('kjpxInfo');
+const { mapActions: video } = createNamespacedHelpers('video');
+const { mapActions: siteInfo } = createNamespacedHelpers('siteInfo');
+var moment = require('moment');
+
 export default {
   metaInfo() {
     return { title: this.$route.meta.title };
@@ -166,29 +172,74 @@ export default {
         },
       ],
       activeName: 'first',
-      ztyt: [
-        { text: '2019年中国科学院、中国工程院新增两名吉林省院士中国工程院新增两名吉林省院士中国工程院新增两名吉林省院士', time: '2019-12-05' },
-        { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
-        { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
-        { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
-        { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
-        { text: '2019年中国科学院、中国工程院新增两名吉林省院士中国工程院新增两名吉林省院士中国工程院新增两名吉林省院士', time: '2019-12-05' },
-        { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
-        { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
-        { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
-        { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
-        { text: '2019年中国科学院、中国工程院新增两名吉林省院士中国工程院新增两名吉林省院士中国工程院新增两名吉林省院士', time: '2019-12-05' },
-        { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
-        { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
-        { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
-        { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
-        { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
-        { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
-      ],
+      //科技培训
+      kjpxColumn: [],
+      //专题研讨
+      ztyt: [],
+      //技术问答
+      jswd: [],
+      //行业研究
+      hyyj: [],
+      //教育培训
+      jypx: [],
+      //视频会议中心
+      sphy: [],
+      //头尾信息
+      infoMes: {},
     };
   },
-  created() {},
-  methods: {},
+  created() {
+    this.searchColumn();
+  },
+  methods: {
+    ...kjpxColumn({ columnquery: 'query', columncreate: 'create', columnfetch: 'fetch', columnupdate: 'update', columndelete: 'delete' }),
+    ...kjpxInfo({ kjpxquery: 'query', kjpxcreate: 'create', kjpxfetch: 'fetch', kjpxupdate: 'update', kjpxdelete: 'delete' }),
+    ...video({ videoquery: 'query', videocreate: 'create', videofetch: 'fetch', videoupdate: 'update', videodelete: 'delete' }),
+    ...siteInfo({ sitequery: 'query' }),
+    //查询栏目
+    async searchColumn() {
+      const res = await this.columnquery();
+      if (res.errcode === 0) {
+        this.$set(this, `kjpxColumn`, res.data);
+        this.search();
+      }
+      const res1 = await this.sitequery();
+      if (this.$checkRes(res1)) {
+        this.$set(this, `infoMes`, res1.data[0]);
+      }
+    },
+    async search() {
+      let col = this.kjpxColumn;
+      let ztyt = col.find(i => i.site == 'ztyt');
+      const res = await this.kjpxquery({ column_id: ztyt.id, limit: 16 });
+      if (res.errcode === 0) {
+        this.$set(this, `ztyt`, res.data);
+      }
+      let jswd = col.find(i => i.site == 'jswd');
+      const res1 = await this.kjpxquery({ column_id: jswd.id, limit: 16 });
+      if (res1.errcode === 0) {
+        this.$set(this, `jswd`, res1.data);
+      }
+      let hyyj = col.find(i => i.site == 'hyyj');
+      const res2 = await this.kjpxquery({ column_id: hyyj.id, limit: 16 });
+      if (res2.errcode === 0) {
+        this.$set(this, `hyyj`, res2.data);
+      }
+      let jypx = col.find(i => i.site == 'jypx');
+      const res3 = await this.kjpxquery({ column_id: jypx.id, limit: 16 });
+      if (res3.errcode === 0) {
+        this.$set(this, `jypx`, res3.data);
+      }
+      const res4 = await this.videoquery({ limit: 6 });
+      if (res4.errcode === 0) {
+        this.$set(this, `sphy`, res4.data);
+      }
+    },
+    getdate(value) {
+      let date = moment(value).format('MM-DD');
+      return date;
+    },
+  },
   computed: {
     ...mapState(['user']),
   },

+ 20 - 6
src/views/kjzx/index.vue

@@ -3,7 +3,7 @@
     <el-row>
       <el-col :span="24">
         <el-col :span="24">
-          <top></top>
+          <top :infoMes="infoMes"></top>
         </el-col>
         <el-col :span="24">
           <menus></menus>
@@ -29,12 +29,12 @@
                 </el-col>
                 <el-col :span="24" class="list">
                   <el-col :span="24" class="listInfo" v-for="(item, index) in zxzx" :key="index">
-                    <el-col :span="18">
+                    <el-col :span="20">
                       <span class="circle"></span>
                       <span class="text">{{ item.title }}</span>
                     </el-col>
-                    <el-col :span="6" class="time">
-                      {{ item.create_time }}
+                    <el-col :span="4" class="time">
+                      {{ getdate(item.create_time) }}
                     </el-col>
                   </el-col>
                 </el-col>
@@ -65,7 +65,7 @@
           </div>
         </el-col>
         <el-col :span="24">
-          <foot></foot>
+          <foot :infoMes="infoMes"></foot>
         </el-col>
       </el-col>
     </el-row>
@@ -79,6 +79,8 @@ import menus from '../../components/common/menus.vue';
 import foot from '../../components/common/foot1.vue';
 const { mapActions: column } = createNamespacedHelpers('column');
 const { mapActions: kjzxInfo } = createNamespacedHelpers('kjzxInfo');
+const { mapActions: siteInfo } = createNamespacedHelpers('siteInfo');
+var moment = require('moment');
 export default {
   metaInfo() {
     return { title: this.$route.meta.title };
@@ -101,6 +103,8 @@ export default {
       kjdt: [],
       //最新资讯信息
       zxzx: [],
+      //头尾信息
+      infoMes: {},
     };
   },
   created() {
@@ -109,6 +113,8 @@ export default {
   methods: {
     ...column({ columnquery: 'query', columncreate: 'create', columnfetch: 'fetch', columnupdate: 'update', columndelete: 'delete' }),
     ...kjzxInfo({ kjzxquery: 'query', kjzxcreate: 'create', kjzxfetch: 'fetch', kjzxupdate: 'update', kjzxdelete: 'delete' }),
+    ...siteInfo({ sitequery: 'query' }),
+
     //查询栏目
     async searchColumn() {
       const res = await this.columnquery();
@@ -116,6 +122,10 @@ export default {
         this.$set(this, `kjdtColumn`, res.data);
         this.search();
       }
+      const res1 = await this.sitequery();
+      if (this.$checkRes(res1)) {
+        this.$set(this, `infoMes`, res1.data[0]);
+      }
     },
     async search() {
       let col = this.kjdtColumn;
@@ -135,6 +145,10 @@ export default {
         this.$set(this, `zxzx`, res2.data);
       }
     },
+    getdate(value) {
+      let date = moment(value).format('MM-DD');
+      return date;
+    },
   },
   computed: {
     ...mapState(['user']),
@@ -181,7 +195,7 @@ export default {
         overflow: hidden;
         .listInfo {
           .text {
-            width: 340px;
+            width: 380px;
           }
         }
       }

+ 19 - 5
src/views/kjzy/index.vue

@@ -3,7 +3,7 @@
     <el-row>
       <el-col :span="24">
         <el-col :span="24">
-          <top></top>
+          <top :infoMes="infoMes"></top>
         </el-col>
         <el-col :span="24">
           <menus></menus>
@@ -12,7 +12,7 @@
           <div class="w_1200"></div>
         </el-col>
         <el-col :span="24">
-          <foot></foot>
+          <foot :infoMes="infoMes"></foot>
         </el-col>
       </el-col>
     </el-row>
@@ -24,6 +24,7 @@ import { mapState, createNamespacedHelpers } from 'vuex';
 import top from '../../components/common/top.vue';
 import menus from '../../components/common/menus.vue';
 import foot from '../../components/common/foot1.vue';
+const { mapActions: siteInfo } = createNamespacedHelpers('siteInfo');
 export default {
   metaInfo() {
     return { title: this.$route.meta.title };
@@ -36,10 +37,23 @@ export default {
     foot,
   },
   data: function() {
-    return {};
+    return {
+      //头尾信息
+      infoMes: {},
+    };
+  },
+  created() {
+    this.search();
+  },
+  methods: {
+    ...siteInfo({ sitequery: 'query' }),
+    async search() {
+      const res1 = await this.sitequery();
+      if (this.$checkRes(res1)) {
+        this.$set(this, `infoMes`, res1.data[0]);
+      }
+    },
   },
-  created() {},
-  methods: {},
   computed: {
     ...mapState(['user']),
   },