update_record.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <template>
  2. <view class="cu-modal bottom-modal" :class="{'show': visible}">
  3. <view class="mask" @click="close"></view>
  4. <view class="wrapper cu-dialog">
  5. <view :style="{height: wrapperWidth + 'rpx'}">
  6. <view class="paddingY25 flex-align-center relative">
  7. <image :src="resource.award_version_title" class="title" />
  8. <image :src="resource.icon_x" class="x" @click="close" />
  9. </view>
  10. <scroll-view scroll-y :style="{height: (wrapperWidth - 128) + 'rpx'}">
  11. <view class="paddingB20 color-white font2">
  12. <view class="cell" v-for="(item, index) in list" :key="item.version">
  13. <view class="line" :style="{top: index === 0 ? '50%' : '0', bottom: index === list.length - 1 ? '50%' : '0'}">
  14. </view>
  15. <view class="translateY" :class="[index === 0 ? 'dot' : 'dot2']"></view>
  16. <view class="content">
  17. <view class="color-white font4">{{item.description}}</view>
  18. <view class="color-white font2 paddingT10 flex-align-between">
  19. <view style="opacity: 0.5">{{item.version}}</view>
  20. <view style="opacity: 0.5">{{item.createTime}}</view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </scroll-view>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. import resource from '@/utils/resource'
  32. export default {
  33. props: {
  34. poolId: Number
  35. },
  36. data() {
  37. return {
  38. resource,
  39. visible: false,
  40. list: []
  41. }
  42. },
  43. computed: {
  44. wrapperWidth() {
  45. return this.$store.state.systemInfo.screenHeight - 100
  46. }
  47. },
  48. methods: {
  49. show() {
  50. this.visible = true
  51. this.getData()
  52. },
  53. close() {
  54. this.visible = false
  55. },
  56. async getData() {
  57. const res = await this.$service.award.version(this.poolId)
  58. this.list = res
  59. }
  60. }
  61. }
  62. </script>
  63. <style lang="scss" scoped>
  64. .mask {
  65. position: absolute;
  66. left: 0;
  67. right: 0;
  68. top: 0;
  69. bottom: 0;
  70. }
  71. .wrapper {
  72. background: #10111A;
  73. border-radius: 15px 15px 2px 2px;
  74. .title {
  75. width: 172rpx;
  76. height: 28rpx;
  77. }
  78. .x {
  79. position: absolute;
  80. right: 28rpx;
  81. top: 50%;
  82. margin-top: -16rpx;
  83. width: 32rpx;
  84. height: 32rpx;
  85. }
  86. }
  87. .cell {
  88. margin: 0 54rpx;
  89. padding: 15rpx 0;
  90. position: relative;
  91. .line {
  92. position: absolute;
  93. left: 7rpx;
  94. width: 2rpx;
  95. background: #343339;
  96. }
  97. .dot {
  98. width: 16rpx;
  99. height: 16rpx;
  100. border-radius: 8rpx;
  101. background: #a76ef4;
  102. position: absolute;
  103. left: 0;
  104. }
  105. .dot2 {
  106. width: 14rpx;
  107. height: 14rpx;
  108. border-radius: 8rpx;
  109. border: 2rpx solid #a76ef4;
  110. background: #171b1e;
  111. position: absolute;
  112. left: 0;
  113. }
  114. .content {
  115. background: rgba(34,35,53,0.6);
  116. margin-left: 54rpx;
  117. padding: 24rpx 40rpx;
  118. border-radius: 8rpx;
  119. }
  120. }
  121. </style>