zsjyYouxiubiyesheng.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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" :size="20">
  15. <template v-slot="{ list }">
  16. <view class="photo-item-box" v-for="item in list" :key="item.id" @click="handleClick(item)">
  17. <!-- 图 -->
  18. <image :src="item.cover"></image>
  19. <!-- 内容 -->
  20. <view class="photo-mask-box">
  21. <view class="mask-title">{{item.title}}</view>
  22. <view class="mask-data">{{item.nian}}届结业生</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 handleClick(data) {
  55. uni.navigateTo({
  56. url: `/pages/zsjyYouxiubiyeshengInfo/zsjyYouxiubiyeshengInfo?id=${data.id}`
  57. })
  58. }
  59. function getList(data) {
  60. return httpApi.getCommonZSJYYouxiubiyeshengList(data)
  61. }
  62. function handleGo() {
  63. uni.navigateTo({
  64. url: '/pages/index/index'
  65. })
  66. }
  67. function pageInit() {
  68. httpApi.getCommonZSJYYouxiubiyeshengList().then(res => {
  69. data.list = res.data.data;
  70. data.total = res.data.total;
  71. })
  72. }
  73. </script>
  74. <style>
  75. </style>