zsjyShengxue.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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" :key="item.title" @click="handleSelect(item)">{{item.title}}</view>
  18. <!-- 富文本 -->
  19. <MtaMpHtml class="dljt-editor-box" :content="data.activeData.content" ></MtaMpHtml>
  20. <!-- 链接 -->
  21. <view>
  22. <view v-for="cItem in data.activeData.link">
  23. <a :href="cItem.url">{{cItem.name}}{{cItem.url}}</a>
  24. </view>
  25. </view>
  26. <!-- table -->
  27. <view>
  28. <view>
  29. <view>序号</view>
  30. <view>资料名称</view>
  31. <view>下载</view>
  32. </view>
  33. <view v-for="(ccIte,index) in data.activeData.ziliao">
  34. <view>{{index+1}}</view>
  35. <view>{{ccIte.name}}</view>
  36. <view @click="handleDownFile(ccIte)">文件下载</view>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. <!-- 底部导航 -->
  44. <MtaFooter></MtaFooter>
  45. </view>
  46. </template>
  47. <script setup>
  48. import {
  49. ref,
  50. reactive
  51. } from "vue";
  52. import {
  53. onLoad
  54. } from "@dcloudio/uni-app"
  55. import * as httpApi from "@/api/common.js"
  56. import MtaFooter from "@/components/MtaFooter.vue"
  57. import MtaMpHtml from "@/components/MTAMpHtml/MtaMpHtml.vue"
  58. const data = reactive({
  59. list: null,
  60. activeId: null,
  61. activeData: null
  62. })
  63. onLoad(() => {
  64. pageInit();
  65. })
  66. function handleGo(code) {
  67. if (code == 'shouye') {
  68. uni.navigateTo({
  69. url: '/pages/index/index'
  70. })
  71. }
  72. }
  73. function handleSelect(item) {
  74. data.activeId = item.id;
  75. }
  76. function handleDownFile(ccite) {
  77. window.location.href = ccite.url;
  78. }
  79. function pageInit() {
  80. httpApi.getCommonZSJYShengxueList({page:data.page,size:data.size}).then(res => {
  81. data.list = res.data.data;
  82. data.total = res.data.total;
  83. data.activeId = data.list[0].id;
  84. httpApi.getCommonZSJYZhuanyeInfo({id: data.activeId}).then(res => {
  85. data.activeData = res.data;
  86. })
  87. })
  88. }
  89. </script>
  90. <style>
  91. </style>