xygkXueyuanrongyu.vue 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. <view class="dljt-breadcrumb-box">
  8. <view class="breadcrumb-text" @click="handleGo()">首页</view>
  9. <icon class="breadcrumb-jt"></icon>
  10. <view class="breadcrumb-text">学院概况</view>
  11. <icon class="breadcrumb-jt"></icon>
  12. <view class="breadcrumb-active">学院荣誉</view>
  13. </view>
  14. <MtaScrollViewVue :refreshFn="getList">
  15. <template v-slot="{ list }">
  16. <view class="list-item-box" v-for="item in list" :key="item.id">
  17. <!-- 图 -->
  18. <!-- 内容 -->
  19. <view class="list-right-box">
  20. <view class="list-name">{{item.title}}</view>
  21. <view class="list-line"></view>
  22. <view class="list-content" v-html="getStringByHtml3(item.content)"> </view>
  23. </view>
  24. </view>
  25. </template>
  26. </MtaScrollViewVue>
  27. </view>
  28. <!-- 底部导航 -->
  29. <MtaFooter></MtaFooter>
  30. </view>
  31. </view>
  32. </template>
  33. <script setup>
  34. import {
  35. ref,
  36. reactive
  37. } from "vue";
  38. import {
  39. onLoad
  40. } from "@dcloudio/uni-app"
  41. import * as httpApi from "@/api/common.js"
  42. import MtaScrollViewVue from "@/components/MtaScrollView/MtaScrollView.vue";
  43. import {
  44. formatDateToYearMonthDay,
  45. getStringByHtml3
  46. } from "@/utils/common.js"
  47. import MtaFooter from "@/components/MtaFooter.vue"
  48. const data = reactive({
  49. list: '',
  50. total: '',
  51. page: 1,
  52. size: 5
  53. })
  54. function getList(data) {
  55. return httpApi.getCommonGaikuangRongyuList(data)
  56. }
  57. function handleGo() {
  58. uni.navigateTo({
  59. url: '/pages/index/index'
  60. })
  61. }
  62. function pageInit() {
  63. httpApi.getCommonGaikuangRongyuList({
  64. page: data.page,
  65. size: data.size
  66. }).then(res => {
  67. data.total = res.data.total;
  68. data.list = res.data.data;
  69. })
  70. }
  71. </script>
  72. <style>
  73. </style>