index.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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. scrollFunc(){
  59. }
  60. },
  61. computed:{
  62. height(){
  63. let value=CustomBarHeight;
  64. return `calc(100vh - ${value}px - 359rpx)`
  65. }
  66. }
  67. }
  68. </script>
  69. <style lang="scss" scoped>
  70. .distribution{
  71. .border{
  72. position: relative;
  73. &::after{
  74. content:"";
  75. width: 100%;
  76. position: absolute;
  77. bottom: 0;left: 0;
  78. border-bottom: 1upx solid #ccc;
  79. transform: scale(1,0.5);
  80. }
  81. }
  82. .lineheight{
  83. line-height: 80upx;
  84. &:nth-child(1){
  85. width: 10%;
  86. }
  87. &:not(:nth-child(1)){
  88. width: 30%;
  89. }
  90. }
  91. .bordera{
  92. position: relative;
  93. &::after{
  94. content:"";
  95. width: 100%;
  96. position: absolute;
  97. bottom: 0;left: 0;
  98. border-bottom: 1upx solid #eee;
  99. transform: scale(1,0.5);
  100. }
  101. }
  102. .section{
  103. display: table;
  104. width: 100vw;
  105. box-sizing: border-box;
  106. .row{
  107. display: table-row;
  108. .cell{
  109. display: table-cell;
  110. }
  111. .cell:nth-child(1){
  112. width: 10%;
  113. }
  114. .cell:not(:nth-child(1)){
  115. width: 30%;
  116. }
  117. }
  118. .fixed{
  119. position: fixed;left: 0;
  120. width: 100vw;
  121. }
  122. }
  123. }
  124. </style>