123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <template>
- <div>
- <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect">
- <el-menu-item index="首页">首页</el-menu-item>
- <el-menu-item index="考试平台">考试平台</el-menu-item>
- <el-menu-item index="培训平台">培训平台</el-menu-item>
- <el-menu-item index="课程开发">课程开发</el-menu-item>
- <el-menu-item index="新闻资讯">新闻资讯</el-menu-item>
- <el-menu-item index="帮助中心">帮助中心</el-menu-item>
- <el-menu-item index="关于我们">关于我们</el-menu-item>
- </el-menu>
- <MtaBreadcrumb style="margin-left: 0"></MtaBreadcrumb>
- </div>
- </template>
- <script>
- import MtaBreadcrumb from '@/components/client/common/MtaBreadcrumb.vue';
- import { homeIndustryInfo } from '@/api/login.js';
- export default {
- name: 'courseDev',
- props: {
- },
- data() {
- return {
- activeIndex: '首页',
- iiId: '',
- infoData:{}
- };
- },
- components: {
- MtaBreadcrumb
- },
- computed: {},
- methods: {
- handleSelect(key, keyPath) {
- if (key === '考试平台') {
- window.location.href = "https://www.baidu.com";
- } else if (key === '培训平台') {
- window.location.href = "http://39.97.175.90:7788/zentao/my/";
- } else {
- this.$router.push({ name: key });
- }
- },
- getIndustryInfo(){
- let req = {
- iiId : this.iiId,
- }
- homeIndustryInfo(req).then(res=>{
- if(res.code===0){
- console.log(res.data);
- this.infoData = res.data
- }
- })
- }
- },
- created() {
- console.log(this.$route.params);
- this.iiId = this.$route.params.iiId;
- this.getIndustryInfo()
- },
- mounted() {
- },
- beforeDestroy() {
- },
- };
- </script>
- <style>
- </style>
|