青蛙卖大米小程序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.

127 lines
2.1 KiB

6 months ago
6 months ago
6 months ago
6 months ago
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">{{ type[item.type] }}{{ item.money }}</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. type : ['+', '-'],
  48. state : ['审核中', '成功', '失败'],
  49. }
  50. },
  51. methods: {
  52. }
  53. }
  54. </script>
  55. <style scoped lang="scss">
  56. .page{
  57. .bg{
  58. background-color: $uni-color;
  59. height: 300rpx;
  60. position: absolute;
  61. left: 0;
  62. width: 100%;
  63. z-index: -1;
  64. border-bottom-left-radius: 30rpx;
  65. border-bottom-right-radius: 30rpx;
  66. }
  67. .price{
  68. color: #FFFFFF;
  69. padding: 40rpx;
  70. .title{
  71. color: #eee;
  72. font-size: 28rpx;
  73. }
  74. .num{
  75. font-size: 50rpx;
  76. font-weight: 900;
  77. margin-top: 10rpx;
  78. }
  79. }
  80. .cell {
  81. margin: 20rpx;
  82. background-color: #FFFFFF;
  83. border-radius: 16rpx;
  84. .cell-top {
  85. padding: 40rpx 34rpx;
  86. color: #474747;
  87. font-size: 34rpx;
  88. font-weight: 600;
  89. position: relative;
  90. &::after{
  91. content: '';
  92. display: block;
  93. position: absolute;
  94. left: 55rpx;
  95. bottom: 38rpx;
  96. height: 10rpx;
  97. width: 120rpx;
  98. background: linear-gradient(to right, #fff, $uni-color);
  99. }
  100. }
  101. .cell-text{
  102. text-align: right;
  103. .price-text{
  104. color: #f40;
  105. font-size: 32rpx;
  106. font-weight: 900;
  107. }
  108. .tips{
  109. font-size: 22rpx;
  110. color: #aaa;
  111. margin-top: 10rpx;
  112. }
  113. }
  114. }
  115. }
  116. </style>