青蛙卖大米小程序2024-11-24
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

132 lines
2.2 KiB

6 months ago
  1. <template>
  2. <view class="page">
  3. <navbar title="余额"
  4. bgColor="#A3D250"
  5. color="#fff"
  6. leftClick
  7. @leftClick="$utils.navigateBack" />
  8. <view class="bg"/>
  9. <view class="price">
  10. <view class="title">
  11. 我的余额
  12. </view>
  13. <view class="num">
  14. 16666
  15. </view>
  16. </view>
  17. <view class="cell">
  18. <view class="cell-top">收支明细</view>
  19. <view class="cell-box"
  20. :key="index"
  21. v-for="(item,index) in list">
  22. <uv-cell-group>
  23. <uv-cell
  24. :title="item.title"
  25. :label="item.createTime"
  26. :center="true">
  27. <template #value>
  28. <view class="cell-text">
  29. <view class="price-text">-19.9</view>
  30. <view class="tips">已到账</view>
  31. </view>
  32. </template>
  33. </uv-cell>
  34. </uv-cell-group>
  35. </view>
  36. </view>
  37. </view>
  38. </template>
  39. <script>
  40. import mixinsList from '@/mixins/list.js'
  41. export default {
  42. mixins : [mixinsList],
  43. data() {
  44. return {
  45. // mixinsListApi : 'getWaterPageList',
  46. list : [
  47. {
  48. title : '直播收入',
  49. type : 0,
  50. createTime : '2021-12-12',
  51. }
  52. ],
  53. type : ['-', '+'],
  54. }
  55. },
  56. methods: {
  57. }
  58. }
  59. </script>
  60. <style scoped lang="scss">
  61. .page{
  62. .bg{
  63. background-color: $uni-color;
  64. height: 300rpx;
  65. position: absolute;
  66. left: 0;
  67. width: 100%;
  68. z-index: -1;
  69. border-bottom-left-radius: 30rpx;
  70. border-bottom-right-radius: 30rpx;
  71. }
  72. .price{
  73. color: #FFFFFF;
  74. padding: 40rpx;
  75. .title{
  76. color: #eee;
  77. font-size: 28rpx;
  78. }
  79. .num{
  80. font-size: 50rpx;
  81. font-weight: 900;
  82. margin-top: 10rpx;
  83. }
  84. }
  85. .cell {
  86. margin: 20rpx;
  87. background-color: #FFFFFF;
  88. border-radius: 16rpx;
  89. .cell-top {
  90. padding: 40rpx 34rpx;
  91. color: #474747;
  92. font-size: 34rpx;
  93. font-weight: 600;
  94. position: relative;
  95. &::after{
  96. content: '';
  97. display: block;
  98. position: absolute;
  99. left: 55rpx;
  100. bottom: 38rpx;
  101. height: 10rpx;
  102. width: 120rpx;
  103. background: linear-gradient(to right, #fff, $uni-color);
  104. }
  105. }
  106. .cell-text{
  107. text-align: right;
  108. .price-text{
  109. color: #f40;
  110. font-size: 32rpx;
  111. font-weight: 900;
  112. }
  113. .tips{
  114. font-size: 22rpx;
  115. color: #aaa;
  116. margin-top: 10rpx;
  117. }
  118. }
  119. }
  120. }
  121. </style>