version.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <view>
  3. <view class="fs-version-list">
  4. <view class="fs-version-list-item" v-for="item in vList" :key="item.number">
  5. <view class="flex justify-between align-center">
  6. <view class="fs-version-bd primary">{{item.number}}</view>
  7. <view class="fs-version-time">
  8. <fs-date-format :date="item.date"></fs-date-format>
  9. </view>
  10. </view>
  11. <view class="title">本次更新</view>
  12. <view class="content">{{item.content}}</view>
  13. </view>
  14. </view>
  15. <fs-empty v-if="loaded && !vList.length"></fs-empty>
  16. </view>
  17. </template>
  18. <script setup>
  19. import { ref, reactive } from 'vue'
  20. import { getVersionList } from '@/services/common'
  21. let vList = ref([])
  22. let loaded = ref(false)
  23. getVersionList().then(res => {
  24. vList.value = res.data
  25. loaded.value = true
  26. }).catch(err => {
  27. loaded.value = true
  28. })
  29. </script>
  30. <style lang="scss" scoped>
  31. .fs-version-list{
  32. background-color: #fff;
  33. padding: 0 var(--gutter);
  34. &-item {
  35. padding: 20rpx 0;
  36. &+& {
  37. border-top: 2rpx solid #DDDFE5;
  38. }
  39. }
  40. .title{
  41. color: #162746;
  42. font-size: 15px;
  43. line-height: 26px;
  44. }
  45. .content {
  46. color: #5E6678;
  47. position: relative;
  48. padding-left: 30rpx;
  49. line-height: 26px;
  50. &::before {
  51. position: absolute;
  52. left: 0;
  53. top: 50%;
  54. transform: translateY(-50%);
  55. width: 8rpx;
  56. height: 8rpx;
  57. border-radius: 50%;
  58. background-color: var(--primary);
  59. content: '';
  60. }
  61. }
  62. }
  63. .fs-version{
  64. &-time{
  65. font-size: 13px;
  66. color: #5E6678;
  67. letter-spacing: 1px;
  68. }
  69. &-bd{
  70. font-size: 18px;
  71. position: relative;
  72. &::before {
  73. position: absolute;
  74. bottom: 5px;
  75. left: 0;
  76. width: 100%;
  77. height: 5px;
  78. background-color: currentColor;
  79. opacity: 0.2;
  80. content: '';
  81. }
  82. }
  83. }
  84. </style>