rebateList.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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 list">
  16. <view class="linetop">
  17. <view class="name">{{item.WxNickName?item.wxNickName:''}}</view>
  18. <view class="amount">¥{{item.money}}</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">{{item.MobilePhone}}</view>
  25. </view>
  26. <view class="lineTIme" v-if="tabindex==1">一级人脉</view>
  27. <view class="lineTIme" v-if="tabindex==2">二级人脉</view>
  28. <view class="lineTIme" v-if="tabindex==3">三级人脉</view>
  29. </view>
  30. <view class="lineline">
  31. <view class="lineContLeft">
  32. <image src="../../static/timg/icon_danhao.png" mode="" class="lineContLeftImg"></image>
  33. <view class="lineContLeftMs">{{item.BizCode}}</view>
  34. </view>
  35. <view class="lineTIme">{{item.BizPayTime}}</view>
  36. </view>
  37. </view>
  38. </view>
  39. <nodata v-if="list.length==0"></nodata>
  40. </view>
  41. </template>
  42. <script>
  43. import nodata from '../../components/nodata/nodata.vue'
  44. export default {
  45. components: {
  46. nodata
  47. },
  48. data() {
  49. return {
  50. tabindex:1,
  51. themeColor:'',
  52. userInfo:'',
  53. list:''
  54. }
  55. },
  56. onLoad(opt) {
  57. this.themeColor = uni.getStorageSync("themeColor");
  58. this.userInfo = uni.getStorageSync("userInfo");
  59. this.getList()
  60. },
  61. onShow() {
  62. },
  63. methods: {
  64. tabcl(num){
  65. this.tabindex=num;
  66. this.getList()
  67. },
  68. getList(){
  69. uni.showLoading({
  70. title: '加载中'
  71. })
  72. this.$http('openMCustomer/getRebateList', {
  73. type:this.tabindex
  74. }, 'GET').then(res => {
  75. uni.hideLoading();
  76. this.list = res.data;
  77. //var data=res.data.Items;
  78. //this.list=this.list.concat(data);
  79. //console.log('list+=', this.queryShopList);
  80. })
  81. }
  82. },
  83. onPullDownRefresh(){
  84. //this.page=1;
  85. //this.list=[];
  86. this.getList();
  87. setTimeout(() => {
  88. uni.stopPullDownRefresh(); // 关闭下拉刷新
  89. }, 2000);
  90. }
  91. }
  92. </script>
  93. <style scoped lang="less">
  94. .box {
  95. width: 100vw;
  96. min-height: 100vh;
  97. background: #F4F5F7;
  98. }
  99. .tabBob{
  100. display: flex;
  101. justify-content: space-around;
  102. background: #FFFFFF;
  103. padding-bottom: 10rpx;
  104. width: 100%;
  105. position: fixed;
  106. left: 0;
  107. top: 0;
  108. }
  109. .tabTxt{
  110. padding-top: 23rpx;padding-bottom: 8rpx;
  111. }
  112. .tabActive{
  113. color: #FF0000 !important;
  114. }
  115. .tabkk{
  116. width: 40rpx;
  117. height: 4rpx;
  118. background: #FF0000;
  119. margin: 0 auto;
  120. }
  121. .lineContLeftImg{
  122. width: 30rpx;
  123. height: 30rpx;
  124. margin-right: 10rpx;
  125. }
  126. .line{
  127. width: 702rpx;
  128. background: #FFFFFF;
  129. border-radius: 10rpx;
  130. margin-bottom: 20rpx;
  131. margin-left: 24rpx;
  132. }
  133. .linetop{
  134. display: flex;
  135. justify-content: space-between;
  136. font-size: 30rpx;
  137. padding: 20rpx;
  138. padding-bottom: 0;
  139. }
  140. .lineline{
  141. display: flex;
  142. justify-content: space-between;
  143. padding: 20rpx;
  144. font-weight: 400;
  145. color: #999999;
  146. font-size: 24rpx;
  147. line-height: 30rpx;
  148. }
  149. .lineContLeft{
  150. display: flex;
  151. }
  152. .name{
  153. font-weight: 500;
  154. color: #3C3C3C;
  155. }
  156. .amount{
  157. color: #FF0000;
  158. }
  159. </style>