zsjyShengxue.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 v-for="item in data.list.data" :key="item.title" @click="handleSelect(item.title)">{{item.title}}</view>
  18. <!-- 富文本 -->
  19. <MtaMpHtml class="dljt-editor-box" v-show="item.title == data.activeTitle" v-for="item in data.list.data" :content="item.content" ></MtaMpHtml>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. <!-- 底部导航 -->
  25. <MtaFooter></MtaFooter>
  26. </view>
  27. </template>
  28. <script setup>
  29. import {
  30. ref,
  31. reactive
  32. } from "vue";
  33. import {
  34. onLoad
  35. } from "@dcloudio/uni-app"
  36. import * as httpApi from "@/api/common.js"
  37. import MtaFooter from "@/components/MtaFooter.vue"
  38. import MtaMpHtml from "@/components/MTAMpHtml/MtaMpHtml.vue"
  39. const data = reactive({
  40. list: null,
  41. activeTitle: ''
  42. })
  43. onLoad(() => {
  44. pageInit();
  45. })
  46. function handleGo(code) {
  47. if (code == 'shouye') {
  48. uni.navigateTo({
  49. url: '/pages/index/index'
  50. })
  51. }
  52. }
  53. function handleSelect(title) {
  54. data.activeTitle = title;
  55. }
  56. function pageInit() {
  57. httpApi.getCommonZSJYShengxueList({page:data.page,size:data.size}).then(res => {
  58. data.list = res.data.data;
  59. data.total = res.data.total;
  60. })
  61. }
  62. </script>
  63. <style>
  64. </style>