user_invite.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <template>
  2. <view class="container">
  3. <view v-if="emptyType==0">
  4. <view v-for="item in dataList" class="item">
  5. <view class="item-left">
  6. <image :src="item.member.icon?item.member.icon:''" mode="aspectFit"></image>
  7. <view class="item-name">{{item.member.username}}</view>
  8. <view class="item-tel">{{item.member.mobile}}</view>
  9. </view>
  10. </view>
  11. </view>
  12. <DtNoMore v-if="isNoMore" />
  13. <DtEmpty :type="emptyType" />
  14. </view>
  15. </template>
  16. <script>
  17. import DtNoMore from "../comps/dt_no_more.vue";
  18. import DtEmpty from '../comps//dt_empty.vue'
  19. export default {
  20. components: {
  21. DtNoMore,
  22. DtEmpty
  23. },
  24. data() {
  25. return {
  26. memberId:'',
  27. dataList:[]
  28. };
  29. },
  30. methods:{
  31. onLoadPage(options) {
  32. uni.setNavigationBarTitle({
  33.   title:options.title+'邀请的人'
  34. })
  35. this.memberId = options.id
  36. this.getData();
  37. },
  38. async getData(){
  39. let resp = await this.$api.distributorGetInvites({
  40. _isShowLoading: true,
  41. memberId:this.memberId,
  42. pageNo:this.pageIndex,
  43. pageSize:this.pageSize,
  44. })
  45. let list = this.getDataList(resp)
  46. this.dataList = this.dataList.concat(list)
  47. },
  48. },
  49. onReachBottom() {
  50. this.onReachBottomPage()
  51. }
  52. }
  53. </script>
  54. <style lang="scss" scoped>
  55. .container{
  56. height: 100vh;
  57. border-top: 2upx solid rgba(238,238,238,1);
  58. .item{
  59. display: flex;
  60. align-items: center;
  61. justify-content: space-between;
  62. margin-left: 16upx;
  63. padding-left: 24upx;
  64. padding-right: 40upx;
  65. height: 108upx;
  66. background-color: #fff;
  67. border-bottom: 2upx solid rgba(238,238,238,1);
  68. .item-left{
  69. display: flex;
  70. align-items: center;
  71. image{
  72. width:66upx;
  73. height:66upx;
  74. border-radius:50%;
  75. background-color: gray;
  76. margin-right: 21upx;
  77. display: block;
  78. }
  79. .item-name{
  80. width: 120upx;
  81. font-size:30upx;
  82. font-family:PingFang SC;
  83. font-weight:400;
  84. color:rgba(51,51,51,1);
  85. }
  86. .item-tel{
  87. font-size:24upx;
  88. font-family:PingFang SC;
  89. font-weight:400;
  90. color:rgba(153,153,153,1);
  91. }
  92. }
  93. }
  94. }
  95. </style>