zsjyWangnianluqufenshu.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <template>
  2. <view class="dljt-page-box">
  3. <template v-if="data.show">
  4. <MtaNavbar></MtaNavbar>
  5. </template>
  6. <view class="dljt-container-box">
  7. <view class="dljt-page-title">机构设置</view>
  8. <view class="dljt-page-content-box">
  9. <!-- 导航 -->
  10. <view class="dljt-breadcrumb-box">
  11. <view class="breadcrumb-text" @click="handleGo('shouye')">首页</view>
  12. <icon class="breadcrumb-jt"></icon>
  13. <view class="breadcrumb-text">招生就业</view>
  14. <icon class="breadcrumb-jt"></icon>
  15. <view class="breadcrumb-active">往年录取分数</view>
  16. </view>
  17. <view class="dljt-detail-box">
  18. <view class="dljt-editor-box">
  19. <MtaMpHtml class="dljt-editor-box" :content="data.info.content"></MtaMpHtml>
  20. <!-- pdf -->
  21. <MtaPDFVue v-if="data.info.pdfUrl" :pdfUrl="data.info.pdfUrl" @showNav="onShowNav"></MtaPDFVue>
  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. import MtaPDFVue from "@/components/MtaPDF.vue";
  42. const data = reactive({
  43. info: {},
  44. show: true
  45. })
  46. onLoad(() => {
  47. pageInit();
  48. })
  49. function onShowNav(val) {
  50. data.show = val;
  51. }
  52. function handleError(e) {
  53. uni.showModal({
  54. content: e.target.errMsg,
  55. showCancel: false
  56. })
  57. }
  58. function handleGo(code) {
  59. if (code == 'shouye') {
  60. uni.navigateTo({
  61. url: '/pages/index/index'
  62. })
  63. }
  64. }
  65. function pageInit() {
  66. httpApi.getCommonZSJYFengshuxianInfo().then(res => {
  67. data.info = res.data;
  68. })
  69. }
  70. </script>
  71. <style>
  72. </style>