industryDetails.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template>
  2. <div>
  3. <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect">
  4. <el-menu-item index="首页">首页</el-menu-item>
  5. <el-menu-item index="考试平台">考试平台</el-menu-item>
  6. <el-menu-item index="培训平台">培训平台</el-menu-item>
  7. <el-menu-item index="课程开发">课程开发</el-menu-item>
  8. <el-menu-item index="新闻资讯">新闻资讯</el-menu-item>
  9. <el-menu-item index="帮助中心">帮助中心</el-menu-item>
  10. <el-menu-item index="关于我们">关于我们</el-menu-item>
  11. </el-menu>
  12. <MtaBreadcrumb style="margin-left: 0"></MtaBreadcrumb>
  13. </div>
  14. </template>
  15. <script>
  16. import MtaBreadcrumb from '@/components/client/common/MtaBreadcrumb.vue';
  17. import { homeIndustryInfo } from '@/api/login.js';
  18. export default {
  19. name: 'courseDev',
  20. props: {
  21. },
  22. data() {
  23. return {
  24. activeIndex: '首页',
  25. iiId: '',
  26. infoData:{}
  27. };
  28. },
  29. components: {
  30. MtaBreadcrumb
  31. },
  32. computed: {},
  33. methods: {
  34. handleSelect(key, keyPath) {
  35. if (key === '考试平台') {
  36. window.location.href = "https://www.baidu.com";
  37. } else if (key === '培训平台') {
  38. window.location.href = "http://39.97.175.90:7788/zentao/my/";
  39. } else {
  40. this.$router.push({ name: key });
  41. }
  42. },
  43. getIndustryInfo(){
  44. let req = {
  45. iiId : this.iiId,
  46. }
  47. homeIndustryInfo(req).then(res=>{
  48. if(res.code===0){
  49. console.log(res.data);
  50. this.infoData = res.data
  51. }
  52. })
  53. }
  54. },
  55. created() {
  56. console.log(this.$route.params);
  57. this.iiId = this.$route.params.iiId;
  58. this.getIndustryInfo()
  59. },
  60. mounted() {
  61. },
  62. beforeDestroy() {
  63. },
  64. };
  65. </script>
  66. <style>
  67. </style>