Browse Source

将【城市合作商】按钮,替换成【课程资源】

tanxue 2 years ago
parent
commit
d3e0e121bb
3 changed files with 17 additions and 4 deletions
  1. 5 0
      components/footer.vue
  2. 5 0
      components/footer2.vue
  3. 7 4
      components/header.vue

+ 5 - 0
components/footer.vue

@@ -14,6 +14,7 @@
             <dd @click="goaboutUs">公司简介</dd>
             <dd @click="goaboutUs">加入栋科</dd>
             <dd @click="goaboutUs">联系我们</dd>
+            <dd @click="goHzs">城市合作商</dd>
           </dl>
           <dl>
             <dt>帮助中心</dt>
@@ -122,6 +123,10 @@
       goaboutUs() {
         this.$router.push({name: 'introduction'});
       },
+      // 合作商
+      goHzs(){
+        this.$router.push({ name: 'urbanPartners' });
+      },
     },
   }
 </script>

+ 5 - 0
components/footer2.vue

@@ -15,6 +15,7 @@
                <dd @click="goaboutUs">公司简介</dd>
                <dd @click="goaboutUs">加入栋科</dd>
                <dd @click="goaboutUs">联系我们</dd>
+               <dd @click="goHzs">城市合作商</dd>
              </dl>
              <dl>
                <dt>帮助中心</dt>
@@ -85,6 +86,10 @@
       goaboutUs(){
         this.$router.push({ name: 'introduction' });
       },
+      // 合作商
+      goHzs(){
+        this.$router.push({ name: 'urbanPartners' });
+      },
     },
   }
 </script>

+ 7 - 4
components/header.vue

@@ -60,12 +60,14 @@
                     <template slot="title">{{item.content}}</template>
                     <el-menu-item :index="`${child.keyPath}`" v-for="child of item.children"
                                   :key="child.keyPath">
-                      <mtaLink :path="child.keyPath" :instation="true" :content="child.content"></mtaLink>
+                      <mtaLink :path="child.keyPath" :instation="false" :content="child.content" v-if="child.hrefFlag"></mtaLink>
+                      <mtaLink :path="child.keyPath" :instation="true" :content="child.content" v-else></mtaLink>
                     </el-menu-item>
                   </el-submenu>
 
                   <el-menu-item :index="`${item.keyPath}`" v-else>
-                    <mtaLink :path="item.keyPath" :instation="true" :content="item.content"></mtaLink>
+                    <mtaLink :path="item.keyPath" :instation="false" :content="item.content" v-if="item.hrefFlag"></mtaLink>
+                    <mtaLink :path="item.keyPath" :instation="true" :content="item.content" v-else></mtaLink>
                   </el-menu-item>
                 </template>
               </el-menu>
@@ -122,9 +124,10 @@
             children: [],
           },*/
           {
-            content:  '城市合作商',
-            keyPath:  '/urbanPartners',
+            content:  '课程资源',
+            keyPath:  'https://www.lliedu.com/c/mainPage',
             children: [],
+            hrefFlag:true,
           },
           {
             content:  '课程开发',