鸿宇研学生前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

119 lines
2.3 KiB

  1. <template>
  2. <view class="page__view highlight">
  3. <navbar title="标记有我" leftClick @leftClick="$utils.navigateBack" />
  4. <view class="main">
  5. <view class="section" v-for="item in list" :key="item.id">
  6. <view class="section-header">
  7. <view class="flex title">{{ item.title }}</view>
  8. <button class="flex btn btn-all" @click="jumpToGrowing(item.id)">
  9. <view>查看成长档案</view>
  10. <image class="icon" src="@/static/image/icon-arrow-right.png" mode="widthFix"></image>
  11. </button>
  12. </view>
  13. <view class="section-content record">
  14. <view class="record-item" v-for="(image, imgIdx) in item.images" :key="imgIdx">
  15. <image class="img" :src="image" mode="scaleToFill"></image>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. import mixinsList from '@/mixins/list.js'
  24. export default {
  25. mixins: [mixinsList],
  26. data() {
  27. return {
  28. // todo
  29. mixinsListApi: '',
  30. }
  31. },
  32. methods: {
  33. jumpToGrowing(id) {
  34. // todo
  35. this.$utils.navigateTo(`/pages/index/growing`)
  36. },
  37. },
  38. }
  39. </script>
  40. <style lang="scss" scoped>
  41. .swiper {
  42. margin-top: 40rpx;
  43. .title {
  44. margin-top: 12rpx;
  45. font-size: 28rpx;
  46. font-weight: 600;
  47. color: #252545;
  48. }
  49. .tag {
  50. margin-top: 4rpx;
  51. padding: 2rpx 8rpx;
  52. font-size: 24rpx;
  53. color: #00A9FF;
  54. background: #E0F5FF;
  55. border-radius: 8rpx;
  56. }
  57. }
  58. .main {
  59. padding: 0 40rpx;
  60. }
  61. .section {
  62. margin-top: 64rpx;
  63. &-header {
  64. font-size: 36rpx;
  65. font-weight: 500;
  66. color: #191919;
  67. .title {
  68. flex: 1;
  69. justify-content: flex-start;
  70. column-gap: 8rpx;
  71. }
  72. .btn-all {
  73. column-gap: 4rpx;
  74. font-size: 24rpx;
  75. line-height: 1.4;
  76. color: #8B8B8B;
  77. .icon {
  78. width: 32rpx;
  79. height: auto;
  80. }
  81. }
  82. }
  83. &-content {
  84. margin-top: 24rpx;
  85. }
  86. }
  87. .record {
  88. display: grid;
  89. grid-template-columns: repeat(3, 1fr);
  90. gap: 16rpx;
  91. &-item {
  92. border: 2rpx solid #CDCDCD;
  93. border-radius: 12rpx;
  94. overflow: hidden;
  95. .img {
  96. width: 100%;
  97. height: 100%;
  98. }
  99. }
  100. }
  101. </style>