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

143 lines
2.5 KiB

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