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

135 lines
2.4 KiB

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