zsjyYouxiubiyesheng.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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="video-item-box" v-for="item in list" :key="item.id" @click="handleClick(item)">
  17. <!-- 图 -->
  18. <image :src="item.cover"></image>
  19. <!-- 内容 -->
  20. <view class="video-mask-box">
  21. <view class="video-data">[{{formatDateToYearMonthDay(item.createTime).join('-')}}]
  22. </view>
  23. <view class="video-title">{{item.title}}</view>
  24. </view>
  25. </view>
  26. </template>
  27. </MtaScrollViewVue>
  28. </view>
  29. <!-- 底部导航 -->
  30. <MtaFooter></MtaFooter>
  31. </view>
  32. </view>
  33. </template>
  34. <script setup>
  35. import {
  36. ref,
  37. reactive
  38. } from "vue";
  39. import {
  40. onLoad
  41. } from "@dcloudio/uni-app"
  42. import * as httpApi from "@/api/common.js"
  43. import MtaScrollViewVue from "@/components/MtaScrollView/MtaScrollView.vue";
  44. import {
  45. formatDateToYearMonthDay,
  46. getStringByHtml3
  47. } from "@/utils/common.js"
  48. import MtaFooter from "@/components/MtaFooter.vue"
  49. const data = reactive({
  50. list: '',
  51. total: '',
  52. page: 1,
  53. size: 5
  54. })
  55. function handleClick(data) {
  56. uni.navigateTo({
  57. url: `/pages/zsjyYouxiubiyeshengInfo/zsjyYouxiubiyeshengInfo?id=${data.id}`
  58. })
  59. }
  60. function getList(data) {
  61. return httpApi.getCommonZSJYYouxiubiyeshengList(data)
  62. }
  63. function handleGo() {
  64. uni.navigateTo({
  65. url: '/pages/index/index'
  66. })
  67. }
  68. function pageInit() {
  69. httpApi.getCommonZSJYYouxiubiyeshengList().then(res => {
  70. data.list = res.data.data;
  71. data.total = res.data.total;
  72. })
  73. }
  74. </script>
  75. <style>
  76. </style>