index.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <template>
  2. <view class="body">
  3. <!-- 分红金额 -->
  4. <view class="bg-box">
  5. <view class="fh-box">分红余额(元)</view>
  6. <view class="maney-box">
  7. <view style="flex:1;"></view>
  8. <view style="font-size: 60rpx;margin-left: 30rpx;">99999.88</view>
  9. <view class="tix-box">提现</view>
  10. <view style="flex:1;"></view>
  11. </view>
  12. </view>
  13. <view style="font-size:28rpx;margin-top:10rpx;margin-left:2.5%;color:#555;">收益明细</view>
  14. <!-- 中部 -->
  15. <view class="list-wrap" style="margin-top:10rpx;">
  16. <scroll-view scroll-y="true" class="list">
  17. <view class="list-scroll-view">
  18. <view class="course-card" v-for="i in 20">
  19. <view>
  20. <view style="font-size:28rpx;color:#666;">随心</view>
  21. <view style="font-size:22rpx;color:#CBCBCB;">2024-09-18 15:45:41</view>
  22. </view>
  23. <view style="flex:1;"></view>
  24. <view style="font-size:36rpx;color:red;">+98</view>
  25. </view>
  26. </view>
  27. </scroll-view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. data() {
  34. return {
  35. current: 0,
  36. swiperDotIndex: 0,
  37. data: [{
  38. image: '/static/images/banner/banner01.jpg'
  39. },
  40. {
  41. image: '/static/images/banner/banner02.jpg'
  42. },
  43. {
  44. image: '/static/images/banner/banner03.jpg'
  45. }
  46. ]
  47. }
  48. },
  49. methods: {
  50. clickBannerItem(item) {
  51. console.info(item)
  52. },
  53. changeSwiper(e) {
  54. this.current = e.detail.current
  55. },
  56. changeGrid(e) {
  57. this.$modal.showToast('模块建设中~')
  58. }
  59. }
  60. }
  61. </script>
  62. <style lang="scss">
  63. // 上中下布局样式
  64. .body {
  65. display: flex;
  66. flex-direction: column;
  67. height: calc(100vh - 60px);
  68. background-color: #EEEEF0;
  69. }
  70. .head {
  71. text-align: center;
  72. }
  73. // 中部滚动
  74. .list-wrap {
  75. flex-grow: 1;
  76. position: relative;
  77. width: 95%;
  78. margin-left: 2.5%;
  79. box-sizing: border-box;
  80. border-radius: 10rpx;
  81. background-color: #fff;
  82. }
  83. .list {
  84. position: absolute;
  85. top: 20rpx;
  86. left: 0;
  87. right: 0;
  88. bottom: 0;
  89. }
  90. .list-scroll-view {
  91. display: flex;
  92. flex-direction: row;
  93. flex-wrap: wrap;
  94. justify-content: space-between;
  95. margin-left: 2vw;
  96. margin-right: 2vw;
  97. }
  98. .course-card {
  99. width:95%;
  100. margin-left:2.5%;
  101. box-sizing:border-box;
  102. display:flex;
  103. flex-wrap:wrap;
  104. justify-content:center;
  105. align-items: center;
  106. padding-bottom:15rpx;
  107. border-bottom:1rpx solid #999;
  108. margin-bottom:30rpx;
  109. }
  110. // 底部
  111. .tools {
  112. display: flex;
  113. flex-direction: row;
  114. justify-content: space-between;
  115. }
  116. .tools-item {
  117. width: 45px;
  118. text-align: center;
  119. font-size: 14px;
  120. padding: 20px;
  121. }
  122. .tix-box {
  123. padding: 10rpx;
  124. font-size: 30rpx;
  125. margin-left: 10rpx;
  126. }
  127. .maney-box {
  128. display: flex;
  129. flex-wrap: nowrap;
  130. justify-content: center;
  131. align-items: center;
  132. width: 100%;
  133. box-sizing: border-box;
  134. }
  135. .fh-box {
  136. width: 100%;
  137. padding: 10rpx;
  138. padding-top: 30rpx;
  139. font-size: 36rpx;
  140. text-align: center;
  141. box-sizing: border-box;
  142. }
  143. .bg-box {
  144. position: relative;
  145. width: 100%;
  146. min-height: 240rpx;
  147. background-color: #36AFCA;
  148. color: #fff;
  149. box-sizing: border-box;
  150. }
  151. </style>