king
2020-10-21 0b733984acbbc018511fba1ce3ce913d71639f64
src/components/header.vue
@@ -4,7 +4,7 @@
         <a class="logo"><img src="../img/index_logo.png" alt=""></a>
         <div class="nav">
            <el-menu :default-active="activeKey" mode="horizontal">
               <el-menu-item index="home" @click="jumpview('Index')">首页</el-menu-item>
               <el-menu-item index="home" @click="jumpview('home')">首页</el-menu-item>
               <el-submenu index="product" popper-class="header-dubble-menu">
                  <template slot="title">产品中心</template>
                  <div class="dubble-ul-wrap">
@@ -16,17 +16,17 @@
                     </div>
                  </div>
               </el-submenu>
               <el-menu-item index="successCase" @click="jumpview('SuccessCase')">成功案例</el-menu-item>
               <el-menu-item index="successcase" @click="jumpview('SuccessCase')">成功案例</el-menu-item>
               <el-menu-item index="partner" @click="jumpview('Partner')">渠道合作</el-menu-item>
               <el-menu-item index="news" @click="jumpview('News')">新闻资讯</el-menu-item>
               <el-submenu index="companyProfile" popper-class="header-menu">
                  <template slot="title"><span @click="jumpview('CompanyProfile', 'null')">关于明科</span></template>
                  <el-menu-item index="companyProfile-1" @click="jumpview('CompanyProfile', '#anchor-1')">企业文化</el-menu-item>
                  <el-menu-item index="companyProfile-2" @click="jumpview('CompanyProfile', '#anchor-2')">荣誉资质</el-menu-item>
                  <el-menu-item index="companyProfile-3" @click="jumpview('CompanyProfile', '#anchor-3')">联系明科</el-menu-item>
               <el-submenu index="companyprofile" popper-class="header-menu">
                  <template slot="title"><span @click="jumpview('Company')">关于明科</span></template>
                  <el-menu-item index="companyProfile-1" @click="jumpview('CompanyProfile', 'culture.html')">企业文化</el-menu-item>
                  <el-menu-item index="companyProfile-2" @click="jumpview('CompanyProfile', 'aptitude.html')">荣誉资质</el-menu-item>
                  <el-menu-item index="companyProfile-3" @click="jumpview('CompanyProfile', 'contact.html')">联系明科</el-menu-item>
                  <el-menu-item index="companyProfile-4" @click="jumpview('joinMingKe')">加入明科</el-menu-item>
               </el-submenu>
               <el-menu-item index="word"><a href="http://mk9h.cn/a.asp?a=9CCB" target="_blank">文档中心</a></el-menu-item>
               <el-menu-item index="word"><a href="http://mk9h.cn/a.asp?a=9CCB" ref="nofollow" target="_blank">文档中心</a></el-menu-item>
            </el-menu>
         </div>
         <div class="pc-tel">
@@ -35,7 +35,7 @@
         </div>
         <div class="register">
            <span @click="jumpview('signup')">注册</span>
            <a href="http://cloud.mk9h.cn/index.html" target="_blank">登录</a>
            <a href="http://cloud.mk9h.cn/index.html" ref="nofollow" target="_blank">登录</a>
         </div>
      </div>
      <div class="mob-wrapper">
@@ -60,17 +60,17 @@
                  </el-menu-item-group>
               </el-submenu>
               
               <el-menu-item index="successCase" @click="jumpview('SuccessCase')"><div class="simple">成功案例</div></el-menu-item>
               <el-menu-item index="successcase" @click="jumpview('SuccessCase')"><div class="simple">成功案例</div></el-menu-item>
               <el-menu-item index="partner" @click="jumpview('Partner')"><div class="simple">渠道合作</div></el-menu-item>
               <el-menu-item index="news" @click="jumpview('News')"><div class="simple">新闻资讯</div></el-menu-item>
               <el-submenu index="companyProfile" popper-class="header-menu">
                  <template slot="title"><span @click="jumpview('CompanyProfile', 'null')">关于明科</span></template>
                  <el-menu-item index="companyProfile-1" @click="jumpview('CompanyProfile', '#anchor-1')">企业文化</el-menu-item>
                  <el-menu-item index="companyProfile-2" @click="jumpview('CompanyProfile', '#anchor-2')">荣誉资质</el-menu-item>
                  <el-menu-item index="companyProfile-3" @click="jumpview('CompanyProfile', '#anchor-3')">联系明科</el-menu-item>
               <el-submenu index="companyprofile" popper-class="header-menu">
                  <template slot="title"><span @click="jumpview('Company')">关于明科</span></template>
                  <el-menu-item index="companyProfile-1" @click="jumpview('CompanyProfile', 'culture.html')">企业文化</el-menu-item>
                  <el-menu-item index="companyProfile-2" @click="jumpview('CompanyProfile', 'aptitude.html')">荣誉资质</el-menu-item>
                  <el-menu-item index="companyProfile-3" @click="jumpview('CompanyProfile', 'contact.html')">联系明科</el-menu-item>
                  <el-menu-item index="companyProfile-4" @click="jumpview('joinMingKe')">加入明科</el-menu-item>
               </el-submenu>
               <el-menu-item index="word"><a href="http://mk9h.cn/a.asp?a=9CCB" target="_blank">文档中心</a></el-menu-item>
               <el-menu-item index="word"><a href="http://mk9h.cn/a.asp?a=9CCB" ref="nofollow" target="_blank">文档中心</a></el-menu-item>
            </el-menu>
         </div>
      </div>
@@ -100,12 +100,12 @@
               params.hash = par
            } else if (type === 'submenu') { // 产品中心子页面跳转
               this.activeKey = 'product'
               params.menuId = par
               params.menuId = par + '.html'
            } else if (name === 'signup') {
               if ((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))) {
                  name = 'mobsignup'
               }
               window.open('#/' + name)
               window.open(window.location.origin + '/' + name)
               return
            }
@@ -151,6 +151,9 @@
            })
         }
      },
      created () {
         this.activeKey = this.$route.name
      },
      mounted () {
         this.load()
      }