xygkXueyuanjianjie.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <template>
  2. <view class="dljt-page-box" v-if="data.info">
  3. <MtaNavbar></MtaNavbar>
  4. <view class="dljt-container-box">
  5. <!-- 详情页面 -->
  6. <view class="dljt-page-title">党群工作</view>
  7. <view class="dljt-page-content-box">
  8. <!-- 导航 -->
  9. <view class="dljt-breadcrumb-box">
  10. <view class="breadcrumb-text" @click="handleGo()">首页</view>
  11. <icon class="breadcrumb-jt"></icon>
  12. <view class="breadcrumb-text">学院概况</view>
  13. <icon class="breadcrumb-jt"></icon>
  14. <view class="breadcrumb-active">学院简介</view>
  15. </view>
  16. <view class="dljt-detail-box">
  17. <MtaMpHtml class="dljt-editor-box" :content="data.info.content" ></MtaMpHtml>
  18. </view>
  19. </view>
  20. </view>
  21. <!-- 底部导航 -->
  22. <MtaFooter></MtaFooter>
  23. </view>
  24. </template>
  25. <script setup>
  26. import MtaMpHtml from "@/components/MTAMpHtml/MtaMpHtml.vue"
  27. import MtaFooter from "@/components/MtaFooter.vue"
  28. import {
  29. ref,
  30. reactive
  31. } from "vue";
  32. import {
  33. onLoad
  34. } from "@dcloudio/uni-app"
  35. import * as httpApi from "@/api/common.js"
  36. const data = reactive({
  37. info: {}
  38. })
  39. onLoad(() => {
  40. pageInit();
  41. })
  42. function handleGo() {
  43. uni.navigateTo({
  44. url: '/pages/index/index'
  45. })
  46. }
  47. function pageInit() {
  48. httpApi.getCommonGaikuangJianjieInfo().then(res => {
  49. data.info = res.data;
  50. })
  51. }
  52. </script>
  53. <style>
  54. </style>