xygkXueyuanrongyu.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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="xyry-item-row" v-for="item in list" :key="item.id">
  17. <icon class="xyry-icon"></icon>
  18. <view class="xyry-title">{{item.content}}</view>
  19. </view>
  20. </template>
  21. </MtaScrollViewVue>
  22. </view>
  23. <!-- 底部导航 -->
  24. <MtaFooter></MtaFooter>
  25. </view>
  26. </view>
  27. </template>
  28. <script setup>
  29. import {
  30. ref,
  31. reactive
  32. } from "vue";
  33. import {
  34. onLoad
  35. } from "@dcloudio/uni-app"
  36. import * as httpApi from "@/api/common.js"
  37. import MtaScrollViewVue from "@/components/MtaScrollView/MtaScrollView.vue";
  38. import {
  39. formatDateToYearMonthDay,
  40. getStringByHtml3
  41. } from "@/utils/common.js"
  42. import MtaFooter from "@/components/MtaFooter.vue"
  43. const data = reactive({
  44. list: '',
  45. total: '',
  46. page: 1,
  47. size: 5
  48. })
  49. function getList(data) {
  50. return httpApi.getCommonGaikuangRongyuList(data)
  51. }
  52. function handleGo() {
  53. uni.navigateTo({
  54. url: '/pages/index/index'
  55. })
  56. }
  57. function pageInit() {
  58. httpApi.getCommonGaikuangRongyuList({
  59. page: data.page,
  60. size: data.size
  61. }).then(res => {
  62. data.total = res.data.total;
  63. data.list = res.data.data;
  64. })
  65. }
  66. </script>
  67. <style>
  68. </style>