zsjyZhaopinxinxi.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. function onShowNav(val) {
  47. data.show = val;
  48. }
  49. onLoad(() => {
  50. pageInit();
  51. })
  52. function handleGo(code) {
  53. if (code == 'shouye') {
  54. uni.navigateTo({
  55. url: '/pages/index/index'
  56. })
  57. }
  58. }
  59. function pageInit() {
  60. httpApi.getCommonZsjyZhaopin().then(res => {
  61. data.info = res.data;
  62. })
  63. }
  64. </script>
  65. <style>
  66. </style>