eduExp.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <view class="content">
  3. <view
  4. v-for="val in data"
  5. :key="val.id"
  6. class="content-item"
  7. >
  8. <view class="content-title">
  9. <view class="name">{{ val.schoolName }}</view>
  10. <view class="time">
  11. {{ timesTampChange(val.startTime ,'Y-M') }} - {{ timesTampChange(val.endTime ,'Y-M') }}
  12. </view>
  13. </view>
  14. <view class="content-subTitle">{{ val.major }} {{ dictObj.edu.find(e => e.value === val.educationType)?.label}}</view>
  15. </view>
  16. </view>
  17. </template>
  18. <script setup>
  19. defineProps({ data: Array })
  20. import { timesTampChange } from '@/utils/date'
  21. import { dictObj } from '@/utils/position'
  22. </script>
  23. <style scoped lang="scss">
  24. .content {
  25. &-item {
  26. padding: 20rpx 0;
  27. }
  28. &-title {
  29. display: flex;
  30. justify-content: space-between;
  31. .name {
  32. font-size: 30rpx;
  33. color: #333;
  34. }
  35. .time {
  36. color: #999;
  37. font-size: 24rpx;
  38. display: flex;
  39. align-items: center;
  40. .icon {
  41. margin-left: 20rpx;
  42. }
  43. }
  44. }
  45. &-subTitle {
  46. font-size: 24rpx;
  47. margin-top: 6rpx;
  48. color: #999;
  49. }
  50. &-main {
  51. margin-top: 20rpx;
  52. font-size: 24rpx;
  53. color: #999;
  54. }
  55. }
  56. </style>