zsjyWangnianluqufenshu.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <view class="dljt-page-box pdf-page">
  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. <video src="https://kf3.mtavip.com/api/upload/39b32869630e72055496b1839cba6cb9.mp4" @error="handleError"></video>
  18. <MtaMpHtml class="dljt-editor-box" :content="data.info.content"></MtaMpHtml>
  19. </view>
  20. </view>
  21. <!-- pdf -->
  22. <MtaPDFVue v-if="data.info.pdfUrl" :pdfUrl="data.info.pdfUrl"></MtaPDFVue>
  23. </view>
  24. </view>
  25. <!-- 底部导航 -->
  26. <MtaFooter></MtaFooter>
  27. </view>
  28. </template>
  29. <script setup>
  30. import {
  31. ref,
  32. reactive
  33. } from "vue";
  34. import {
  35. onLoad
  36. } from "@dcloudio/uni-app"
  37. import * as httpApi from "@/api/common.js"
  38. import MtaFooter from "@/components/MtaFooter.vue"
  39. import MtaMpHtml from "@/components/MTAMpHtml/MtaMpHtml.vue"
  40. import MtaPDFVue from "@/components/MtaPDF.vue";
  41. const data = reactive({
  42. info: {}
  43. })
  44. onLoad(() => {
  45. pageInit();
  46. })
  47. function handleError(e) {
  48. uni.showModal({
  49. content: e.target.errMsg,
  50. showCancel: false
  51. })
  52. }
  53. function handleGo(code) {
  54. if (code == 'shouye') {
  55. uni.navigateTo({
  56. url: '/pages/index/index'
  57. })
  58. }
  59. }
  60. function pageInit() {
  61. httpApi.getCommonZSJYFengshuxianInfo().then(res => {
  62. data.info = res.data;
  63. })
  64. }
  65. </script>
  66. <style>
  67. </style>