people.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <template>
  2. <view class="box">
  3. <view style="height: 20rpx;"></view>
  4. <view class="line" v-for="(item,index) in list">
  5. <view class="linetop">
  6. <view class="name">{{item.CustomerName}}</view>
  7. <view class="nickNameBox">
  8. <image src="../../static/timg/icon_wechat.png" mode="" class="nickNameImg"></image>
  9. <view class="nickName">{{item.WxNickName}}</view>
  10. </view>
  11. </view>
  12. <view class="lineCOnt">
  13. <view class="lineline">
  14. <view class="lineContLeft">
  15. <image src="../../static/timg/icon_dianhua.png" mode="" class="lineContLeftImg"></image>
  16. <view class="lineContLeftMs">{{item.MobilePhone}}</view>
  17. </view>
  18. <view class="lineTIme">{{item.PJCreateTime}}</view>
  19. </view>
  20. </view>
  21. </view>
  22. <nodata v-if="list.length==0"></nodata>
  23. </view>
  24. </template>
  25. <script>
  26. import nodata from '../../components/nodata/nodata.vue'
  27. export default {
  28. components: {
  29. nodata
  30. },
  31. data() {
  32. return {
  33. list:'',
  34. themeColor:'',
  35. userInfo:'',
  36. page:1,
  37. limit:20,
  38. }
  39. },
  40. onLoad(opt) {
  41. this.themeColor = uni.getStorageSync("themeColor");
  42. this.userInfo = uni.getStorageSync("userInfo");
  43. this.getList()
  44. },
  45. onShow() {
  46. },
  47. methods: {
  48. getList(){
  49. uni.showLoading({
  50. title: '加载中'
  51. })
  52. this.$http('opencarInfoOwner/listBonusPage', {
  53. page:this.page,limit:this.limit,
  54. }, 'GET').then(res => {
  55. uni.hideLoading();
  56. var data=res.data.Items;
  57. this.list=this.list.concat(data);
  58. //this.list = res.data.Items
  59. //console.log('list+=', this.queryShopList);
  60. })
  61. }
  62. },
  63. onReachBottom(){
  64. this.page++;
  65. this.getList()
  66. //console.log("shanglas")
  67. },
  68. onPullDownRefresh(){
  69. this.page=1;
  70. this.list=[];
  71. this.getList();
  72. setTimeout(() => {
  73. uni.stopPullDownRefresh(); // 关闭下拉刷新
  74. }, 2000);
  75. }
  76. }
  77. </script>
  78. <style scoped lang="less">
  79. .box {
  80. width: 100vw;
  81. min-height: 100vh;
  82. background: #F4F5F7;
  83. }
  84. .nickNameBox{
  85. display: flex;
  86. }
  87. .nickName{
  88. font-weight: 400;
  89. color: #999999;
  90. font-size: 24rpx;
  91. line-height: 30rpx;
  92. padding-left: 10rpx;
  93. }
  94. .lineContLeftImg{
  95. width: 30rpx;
  96. height: 30rpx;
  97. margin-right: 10rpx;
  98. }
  99. .line{
  100. width: 702rpx;
  101. background: #FFFFFF;
  102. border-radius: 10rpx;
  103. margin-bottom: 20rpx;
  104. margin-left: 24rpx;
  105. }
  106. .linetop{
  107. display: flex;
  108. justify-content: space-between;
  109. font-size: 30rpx;
  110. padding: 20rpx;
  111. padding-bottom: 0;
  112. }
  113. .lineline{
  114. display: flex;
  115. justify-content: space-between;
  116. padding: 20rpx;
  117. font-weight: 400;
  118. color: #999999;
  119. font-size: 24rpx;
  120. line-height: 30rpx;
  121. }
  122. .lineContLeft{
  123. display: flex;
  124. }
  125. .name{
  126. font-weight: 500;
  127. color: #3C3C3C;
  128. }
  129. .amount{
  130. color: #FF0000;
  131. }
  132. .nickNameImg{
  133. width: 30rpx;
  134. height: 30rpx;
  135. }
  136. </style>