zsjyZhuanyejieshao.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <template>
  2. <view class="dljt-page-box">
  3. <MtaNavbar></MtaNavbar>
  4. <view class="dljt-container-box">
  5. <view class="dljt-page-title">机构设置</view>
  6. <view class="dljt-page-content-box">
  7. <!-- 导航 -->
  8. <view class="dljt-breadcrumb-box">
  9. <view class="breadcrumb-text" @click="handleGo('shouye')">首页</view>
  10. <icon class="breadcrumb-jt"></icon>
  11. <view class="breadcrumb-text">招生就业</view>
  12. <icon class="breadcrumb-jt"></icon>
  13. <view class="breadcrumb-active">专业介绍</view>
  14. </view>
  15. <view class="dljt-detail-box">
  16. <view class="dljt-editor-box">
  17. <view class="dljt-classify-box">
  18. <view class="classify-item" :class="{active: item.title == data.activeTitle}" v-for="item in data.list.data" :key="item.title" @click="handleSelect(item.title)">{{item.title}}</view>
  19. </view>
  20. <!-- 富文本 -->
  21. <MtaMpHtml class="dljt-editor-box" v-show="item.title == data.activeTitle" v-for="item in data.list.data" :content="item.content" ></MtaMpHtml>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. <!-- 底部导航 -->
  27. <MtaFooter></MtaFooter>
  28. </view>
  29. </template>
  30. <script setup>
  31. import {
  32. ref,
  33. reactive
  34. } from "vue";
  35. import {
  36. onLoad
  37. } from "@dcloudio/uni-app"
  38. import * as httpApi from "@/api/common.js"
  39. import MtaFooter from "@/components/MtaFooter.vue"
  40. import MtaMpHtml from "@/components/MTAMpHtml/MtaMpHtml.vue"
  41. const data = reactive({
  42. list: null,
  43. activeTitle: ''
  44. })
  45. onLoad(() => {
  46. pageInit();
  47. })
  48. function handleGo(code) {
  49. if (code == 'shouye') {
  50. uni.navigateTo({
  51. url: '/pages/index/index'
  52. })
  53. }
  54. }
  55. function handleSelect(title) {
  56. data.activeTitle = title;
  57. }
  58. function pageInit() {
  59. httpApi.getCommonZsjyZhuanyeList({size: 1000}).then(res => {
  60. data.list = res.data;
  61. data.activeTitle = data.list.data[0].title
  62. })
  63. }
  64. </script>
  65. <style>
  66. </style>