珠宝小程序前端代码
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.3 KiB

3 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. type : ['+', '-'],
  47. state : ['审核中', '成功', '失败'],
  48. }
  49. },
  50. onShow() {
  51. this.$store.commit('getUserInfo')
  52. this.$store.commit('getRiceInfo')
  53. },
  54. methods: {
  55. }
  56. }
  57. </script>
  58. <style scoped lang="scss">
  59. .page{
  60. .bg{
  61. background-color: $uni-color;
  62. height: 160rpx;
  63. position: absolute;
  64. left: 0;
  65. width: 100%;
  66. z-index: -1;
  67. border-bottom-left-radius: 30rpx;
  68. border-bottom-right-radius: 30rpx;
  69. }
  70. .price{
  71. background-color: #fff;
  72. padding: 40rpx;
  73. margin: 20rpx;
  74. border-radius: 20rpx;
  75. .title{
  76. color: #777;
  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>