bonus.vue 2.6 KB

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