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

134 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: 160rpx;
  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. background-color: #fff;
  74. padding: 40rpx;
  75. margin: 20rpx;
  76. border-radius: 20rpx;
  77. .title{
  78. color: #777;
  79. font-size: 28rpx;
  80. }
  81. .num{
  82. font-size: 50rpx;
  83. font-weight: 900;
  84. margin-top: 10rpx;
  85. }
  86. }
  87. .cell {
  88. margin: 20rpx;
  89. background-color: #FFFFFF;
  90. border-radius: 16rpx;
  91. .cell-top {
  92. padding: 40rpx 34rpx;
  93. color: #474747;
  94. font-size: 34rpx;
  95. font-weight: 600;
  96. position: relative;
  97. &::after{
  98. content: '';
  99. display: block;
  100. position: absolute;
  101. left: 55rpx;
  102. bottom: 38rpx;
  103. height: 10rpx;
  104. width: 120rpx;
  105. background: linear-gradient(to right, #fff, $uni-color);
  106. }
  107. }
  108. .cell-text{
  109. text-align: right;
  110. .price-text{
  111. color: #f40;
  112. font-size: 32rpx;
  113. font-weight: 900;
  114. }
  115. .tips{
  116. font-size: 22rpx;
  117. color: #aaa;
  118. margin-top: 10rpx;
  119. }
  120. }
  121. }
  122. }
  123. </style>