newsInforDetails.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <div class="client-details-page">
  3. <MtaBreadcrumb></MtaBreadcrumb>
  4. <!--网站行业资讯详情页-->
  5. <div class="client-details-wrap">
  6. <h1>{{infoData.title}}</h1>
  7. <p><i></i><span>{{infoData.startTime}}</span><i type="visits"></i><span>{{infoData.visits}}</span></p>
  8. <div class="client-content-box">{{infoData.content}}</div>
  9. </div>
  10. </div>
  11. </template>
  12. <script>
  13. import MtaBreadcrumb from '@/components/client/common/MtaBreadcrumb.vue';
  14. import { homeIndustryInfo } from '@/api/login.js';
  15. export default {
  16. name: 'courseDev',
  17. props: {
  18. },
  19. data() {
  20. return {
  21. iiId: '',
  22. infoData:{}
  23. };
  24. },
  25. components: {
  26. MtaBreadcrumb
  27. },
  28. computed: {},
  29. methods: {
  30. handleSelect(key, keyPath) {
  31. if (key === '考试平台') {
  32. window.location.href = "https://www.baidu.com";
  33. } else if (key === '培训平台') {
  34. window.location.href = "http://39.97.175.90:7788/zentao/my/";
  35. } else {
  36. this.$router.push({ name: key });
  37. }
  38. },
  39. getIndustryInfo(){
  40. let req = {
  41. iiId : this.iiId,
  42. }
  43. homeIndustryInfo(req).then(res=>{
  44. if(res.code===0){
  45. console.log(res.data);
  46. this.infoData = res.data
  47. }
  48. })
  49. }
  50. },
  51. created() {
  52. console.log(this.$route.params);
  53. this.iiId = this.$route.params.iiId;
  54. this.getIndustryInfo()
  55. },
  56. mounted() {
  57. },
  58. beforeDestroy() {
  59. },
  60. };
  61. </script>
  62. <style>
  63. </style>