version.vue 1.5 KB

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