wangguoyu 4 éve
szülő
commit
491910adba

+ 58 - 0
components/footer2.vue

@@ -0,0 +1,58 @@
+<!--无友情链接 footer-->
+<template>
+      <div class="client-footer">
+       <div class="client-container">
+         <div class="contact-box">
+           <div class="contact-left-box">
+             <dl>
+               <dt>产品服务</dt>
+               <dd>考试平台</dd>
+               <dd>培训平台</dd>
+               <dd>课程开发</dd>
+             </dl>
+             <dl>
+               <dt>关于栋科</dt>
+               <dd>公司简介</dd>
+               <dd>加入栋科</dd>
+               <dd>联系我们</dd>
+             </dl>
+             <dl>
+               <dt>帮助中心</dt>
+               <dd>说明文档</dd>
+               <dd>应用下载</dd>
+             </dl>
+             <dl>
+               <dt>法律声明</dt>
+               <dd>服务条款</dd>
+               <dd>隐私声明</dd>
+               <dd>知识维权</dd>
+             </dl>
+             <dl>
+               <dt>关注我们</dt>
+               <dd>微信公众号</dd>
+               <dd>新浪微博</dd>
+             </dl>
+           </div>
+           <div class="contact-right-box">
+             <h3>400-052-2130</h3>
+             <p>周一至周日9:00-18:00</p>
+             <p>(仅收市话费)</p>
+             <a>联系客服</a>
+           </div>
+         </div>
+         <h5>Copyright © 2019 llisoft.com All rights reserved 大连栋科软件工程有限公司 版权所有 辽ICP备09022904号-19</h5>
+       </div>
+     </div>
+</template>
+
+<script>
+  import { mapState, mapGetters } from 'vuex';
+  export default {
+    name:    'mtaFooter',
+    computed: {
+
+    },
+    methods: {
+    },
+  }
+</script>

+ 24 - 0
layouts/templateB.vue

@@ -0,0 +1,24 @@
+<template>
+  <div>
+    <mtaheader></mtaheader>
+    <div class="nuxt-box">
+      <Nuxt />
+    </div>
+    <mtafooter></mtafooter>
+  </div>
+</template>
+
+<script>
+  import Mtafooter from '~/components/footer2.vue'
+  import Mtaheader from '~/components/header.vue'
+  export default {
+    name:    'mtaFooter',
+    components: {
+      Mtafooter,
+      Mtaheader
+    },
+  }
+</script>
+<style lang="scss" scoped>
+  .nuxt-box:not(.client-index-page){width: 100%;margin-top: 80px;}
+</style>

+ 2 - 9
pages/courseware/index.vue

@@ -8,15 +8,8 @@
 
 <script>
   export default {
-    name:       'examsystem',
-    layout:'templateA',
-    async fetch({  $axios,store, params }) {
-      try {
-        store.commit('footerFlag',false)
-      } catch(e) {
-
-      }
-    },
+    name:       'courseware',
+    layout:'templateB',
     components: {
     },
     props:      {

+ 1 - 8
pages/examsystem/index.vue

@@ -95,14 +95,7 @@
 <script>
   export default {
     name:       'examsystem',
-    layout:'templateA',
-    async fetch({  $axios,store, params }) {
-      try {
-        store.commit('footerFlag',false)
-      } catch(e) {
-
-      }
-    },
+    layout:'templateB',
     components: {
     },
     props:      {

+ 1 - 8
pages/introduction/index.vue

@@ -111,14 +111,7 @@
 <script>
   export default {
     name:       'introduction',
-    layout:'templateA',
-    async fetch({  $axios,store, params }) {
-      try {
-        store.commit('footerFlag',false)
-      } catch(e) {
-
-      }
-    },
+    layout:'templateB',
     components: {
     },
     props:      {

+ 1 - 8
pages/news/index.vue

@@ -38,14 +38,7 @@
 <script>
   export default {
     name:       'news',
-    layout:'templateA',
-    async fetch({  $axios,store, params }) {
-      try {
-        store.commit('footerFlag',false)
-      } catch(e) {
-
-      }
-    },
+    layout:'templateB',
     components: {
     },
     props:      {

+ 2 - 2
pages/trainsystem/index.vue

@@ -90,8 +90,8 @@
 
 <script>
   export default {
-    name:       'examsystem',
-    layout:'templateA',
+    name:       'trainsystem',
+    layout:'templateB',
     components: {
     },
     props:      {

+ 0 - 7
store/index.js

@@ -6,16 +6,12 @@
 export const state = () => ({
   headerMenu: [],
   FooterYouQingLianJie: [],
-  footerFlag: false
 })
 
 export const getters = {
   getFooterYouQingLianJie(state) {
     return state.FooterYouQingLianJie;
   },
-  getFooterFlag(state) {
-    return state.footerFlag
-  }
 }
 
 
@@ -24,9 +20,6 @@ export const mutations = {
   SetFooterYouQingLianJie(state, payload) {
     state.FooterYouQingLianJie = payload;
   },
-  footerFlag(state, payload) {
-    state.footerFlag = payload;
-  }
 }