index.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <!-- 头部 -->
  3. <nav-bar height="312" backPath="workspace" title="教师研修" :filterPickerData="state.filterPickerData" :tabList="state.tabList" :onlyTitle="false" :showFilterPicker="true" :showTabs="true" rightWidth="0rpx" @GoBack="GoBack"></nav-bar>
  4. <view class="page_content">
  5. <view class="list_item">
  6. <image class="item_img" mode="aspectFill" src="https://jtzx001.oss-accelerate.aliyuncs.com/huijiaoyan_test/20260609_255638/09101629_53c71c9b-3072-4fa5-9944-3598c9650666.jpg"></image>
  7. <view class="item_title">2025学年高一化学公开课全国评比大赛赛赛赛赛赛赛赛赛赛学公开课全国评比大赛赛赛赛赛赛赛赛赛赛</view>
  8. <view class="item_time"><text class="time">2025-11-12</text></view>
  9. </view>
  10. </view>
  11. </template>
  12. <script setup>
  13. import navBar from '@/components/nav-bar.vue';
  14. import {
  15. reactive,
  16. ref
  17. } from 'vue';
  18. const state = reactive({
  19. filterPickerData: [
  20. ['全部类型', '全部类型1'],
  21. ['全部类型', '全部类型2'],
  22. ['全部类型', '全部类型2']
  23. ],
  24. tabList: [{
  25. name: '最新发布',
  26. sortType: '0'
  27. }, {
  28. name: '播放最多',
  29. sortType: '1'
  30. }, {
  31. name: '关注最多',
  32. sortType: '2'
  33. }]
  34. })
  35. </script>
  36. <style lang="scss" scoped>
  37. .page_content{
  38. gap:32rpx;
  39. height: 100%;
  40. .list_item{
  41. &:nth-child(1){
  42. margin-top: 16rpx;
  43. }
  44. &:nth-child(2){
  45. margin-top: 16rpx;
  46. }
  47. width: calc((100% - 32rpx) / 2);
  48. overflow: hidden;
  49. display: flex;
  50. flex-direction: column;
  51. .item_img{
  52. width: 100%;
  53. height: 220rpx;
  54. border-radius: 8rpx;
  55. }
  56. .item_title{
  57. display: flex;
  58. width: 100%;
  59. margin:8rpx 0;
  60. font-weight: 400;
  61. font-size: 24rpx;
  62. color: #333333;
  63. display: -webkit-box;
  64. -webkit-line-clamp: 2;
  65. -webkit-box-orient: vertical;
  66. overflow: hidden;
  67. text-overflow: ellipsis;
  68. }
  69. .item_time{
  70. display: flex;
  71. width: 100%;
  72. .time{
  73. font-weight: 400;
  74. font-size: 24rpx;
  75. color: #999999;
  76. }
  77. }
  78. }
  79. }
  80. </style>