index.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <template>
  2. <view class="distribution">
  3. <!-- header -->
  4. <cu-custom isBack bgColor="bg-gradual-blue"><view slot="content">分销中心</view></cu-custom>
  5. <view class="padding bg-white flex justify-between border">
  6. <view>累计收益</view>
  7. <view class="text-red text-price">
  8. <cu-price value="100" size="32" />
  9. </view>
  10. </view>
  11. <view class="cu-bar search bg-white border">
  12. <view class="search-form round">
  13. <text class="cuIcon-search"></text>
  14. <input type="text" placeholder="下级分销商姓名" confirm-type="search"></input>
  15. </view>
  16. <view class="action">
  17. <button class="cu-btn bg-green shadow-blur round">搜索</button>
  18. </view>
  19. </view>
  20. <view class="flex border padding-lr bg-white">
  21. <view class="text-center text-black text-cut text-bold lineheight">序号</view>
  22. <view class="text-center text-black text-cut text-bold lineheight ">姓名</view>
  23. <view class="text-center text-black text-cut text-bold lineheight ">消费金额</view>
  24. <view class=" text-center text-black text-cut vtext-bold lineheight ">消费积分</view>
  25. </view>
  26. <view class="flex border padding-lr bg-white">
  27. <view class="text-center text-black text-cut text-bold lineheight ">合计</view>
  28. <view class="text-center text-black text-cut text-bold lineheight "> </view>
  29. <view class="text-center text-black text-cut text-bold lineheight ">101000</view>
  30. <view class="text-center text-black text-cut text-bold lineheight ">10000</view>
  31. </view>
  32. <!-- section -->
  33. <cu-scrollView @scroll="scrollFunc" @refresherpulling="refresherpulling" :height="height">
  34. <view class="section bg-white padding">
  35. <view v-for="(item,index) in 100" :key="index" class="row">
  36. <view class="cell text-center padding-tb-sm text-cut bordera">{{index+1}}</view>
  37. <view class="cell text-center padding-tb-sm text-cut bordera">张三</view>
  38. <view class="cell text-center padding-tb-sm text-cut bordera">100</view>
  39. <view class="cell text-center padding-tb-sm text-cut bordera">1000</view>
  40. </view>
  41. </view>
  42. </cu-scrollView>
  43. </view>
  44. </template>
  45. <script>
  46. import {CustomBarHeight} from "@/common/device/index.js"
  47. export default {
  48. data(){
  49. return {
  50. }
  51. },
  52. methods:{
  53. refresherpulling(){
  54. return new Promise((resolve,reject)=>{
  55. resolve()
  56. })
  57. },
  58. },
  59. computed:{
  60. height(){
  61. let value=CustomBarHeight;
  62. return `calc(100vh - ${value}px - 350rpx)`
  63. }
  64. }
  65. }
  66. </script>
  67. <style lang="scss" scoped>
  68. .distribution{
  69. .border{
  70. position: relative;
  71. &::after{
  72. content:"";
  73. width: 100%;
  74. position: absolute;
  75. bottom: 0;left: 0;
  76. border-bottom: 1upx solid #ccc;
  77. transform: scale(1,0.5);
  78. }
  79. }
  80. .lineheight{
  81. line-height: 80upx;
  82. &:nth-child(1){
  83. width: 10%;
  84. }
  85. &:not(:nth-child(1)){
  86. width: 30%;
  87. }
  88. }
  89. .bordera{
  90. position: relative;
  91. &::after{
  92. content:"";
  93. width: 100%;
  94. position: absolute;
  95. bottom: 0;left: 0;
  96. border-bottom: 1upx solid #eee;
  97. transform: scale(1,0.5);
  98. }
  99. }
  100. .section{
  101. display: table;
  102. width: 100vw;
  103. box-sizing: border-box;
  104. .row{
  105. display: table-row;
  106. .cell{
  107. display: table-cell;
  108. }
  109. .cell:nth-child(1){
  110. width: 10%;
  111. }
  112. .cell:not(:nth-child(1)){
  113. width: 30%;
  114. }
  115. }
  116. .fixed{
  117. position: fixed;left: 0;
  118. width: 100vw;
  119. }
  120. }
  121. }
  122. </style>