rebateList.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <template>
  2. <view class="box">
  3. <view class="tabBob">
  4. <view class="tabline" @click="tabcl(1)">
  5. <view class="tabTxt" :class="{tabActive:tabindex==1}">一级人脉</view> <view class="tabkk" v-if="tabindex==1"></view>
  6. </view>
  7. <view class="tabline" @click="tabcl(2)">
  8. <view class="tabTxt" :class="{tabActive:tabindex==2}">二级人脉</view> <view class="tabkk" v-if="tabindex==2"></view>
  9. </view>
  10. <view class="tabline" @click="tabcl(3)">
  11. <view class="tabTxt" :class="{tabActive:tabindex==3}">三级人脉</view> <view class="tabkk" v-if="tabindex==3"></view>
  12. </view>
  13. </view>
  14. <view style="height: 100rpx;"></view>
  15. <view class="line" v-for="(item,index) in 3">
  16. <view class="linetop">
  17. <view class="name">李瑞</view>
  18. <view class="amount">¥999</view>
  19. </view>
  20. <view class="lineCOnt">
  21. <view class="lineline">
  22. <view class="lineContLeft">
  23. <image src="../../static/timg/icon_dianhua.png" mode="" class="lineContLeftImg"></image>
  24. <view class="lineContLeftMs">17891011123</view>
  25. </view>
  26. <view class="lineTIme">一级人脉</view>
  27. </view>
  28. <view class="lineline">
  29. <view class="lineContLeft">
  30. <image src="../../static/timg/icon_danhao.png" mode="" class="lineContLeftImg"></image>
  31. <view class="lineContLeftMs">XS202009200001</view>
  32. </view>
  33. <view class="lineTIme">2020-09-20 12:13:23</view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </template>
  39. <script>
  40. export default {
  41. components: {
  42. },
  43. data() {
  44. return {
  45. tabindex:1,
  46. themeColor:'',
  47. userInfo:'',
  48. }
  49. },
  50. onLoad(opt) {
  51. this.themeColor = uni.getStorageSync("themeColor");
  52. this.userInfo = uni.getStorageSync("userInfo");
  53. },
  54. onShow() {
  55. },
  56. methods: {
  57. tabcl(num){
  58. this.tabindex=num;
  59. }
  60. }
  61. }
  62. </script>
  63. <style scoped lang="less">
  64. .box {
  65. width: 100vw;
  66. min-height: 100vh;
  67. background: #F4F5F7;
  68. }
  69. .tabBob{
  70. display: flex;
  71. justify-content: space-around;
  72. background: #FFFFFF;
  73. padding-bottom: 10rpx;
  74. width: 100%;
  75. position: fixed;
  76. left: 0;
  77. top: 0;
  78. }
  79. .tabTxt{
  80. padding-top: 23rpx;padding-bottom: 8rpx;
  81. }
  82. .tabActive{
  83. color: #FF0000 !important;
  84. }
  85. .tabkk{
  86. width: 40rpx;
  87. height: 4rpx;
  88. background: #FF0000;
  89. margin: 0 auto;
  90. }
  91. .lineContLeftImg{
  92. width: 30rpx;
  93. height: 30rpx;
  94. margin-right: 10rpx;
  95. }
  96. .line{
  97. width: 702rpx;
  98. background: #FFFFFF;
  99. border-radius: 10rpx;
  100. margin-bottom: 20rpx;
  101. margin-left: 24rpx;
  102. }
  103. .linetop{
  104. display: flex;
  105. justify-content: space-between;
  106. font-size: 30rpx;
  107. padding: 20rpx;
  108. padding-bottom: 0;
  109. }
  110. .lineline{
  111. display: flex;
  112. justify-content: space-between;
  113. padding: 20rpx;
  114. font-weight: 400;
  115. color: #999999;
  116. font-size: 24rpx;
  117. line-height: 30rpx;
  118. }
  119. .lineContLeft{
  120. display: flex;
  121. }
  122. .name{
  123. font-weight: 500;
  124. color: #3C3C3C;
  125. }
  126. .amount{
  127. color: #FF0000;
  128. }
  129. </style>