fix
13404089107
2025-07-28 2e90f57e7d28d6a949247ef39b487d3e75b56683
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<template>
  <view class="content">
    <view class="card">
      <view class="card-title">已邀请</view>
      <view class="card-count">{{list.length}}人</view>
    </view>
    <view class="list">
      <view class="list-item" v-for="(item,index) of list" :key="index">
        <image class="list-item-avatar" :src="item.imgTx" mode="widthFix"></image>
        <view class="list-item-username">{{item.nickname}}</view>
      </view>
    </view>
  </view>
</template>
 
<script>
  export default {
    data() {
      return {
        page:1,
        list:[]
      }
    },
    onLoad() {
      this.init()
    },
    methods: {
      init(){
        this.$apis.user.getUserInviteList({pageNum:this.page,pageSize:10}).then(res => {
          console.log(res)
          this.list = res.data
        })
      }
    }
  }
</script>
 
<style lang="scss" scoped>
.content{
  padding: 26rpx;
  .card {
    width: 694rpx;
    height: 269rpx;
    background: #FF2729;
    border-radius: 19rpx;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 17rpx 20rpx;
    .card-title {
      font-size: 27rpx;
      color: #FFFFFF;
      line-height: 38rpx;
      width: 100%;
    }
    .card-count {
      font-size: 58rpx;
      color: #FFFFFF;
      line-height: 67rpx;
      flex: 1;
      display: flex;
      align-items: center;
    }
  }
  .list {
    margin-top: 36rpx;
    .list-item {
      padding: 10rpx 0;
      display: flex;
      align-items: center;
      justify-content: center;
      .list-item-avatar {
        width: 58rpx;
        height: 58rpx;
        border-radius: 100%;
      }
      .list-item-username {
        font-size: 27rpx;
        color: #000000;
        line-height: 38rpx;
        padding-left: 38rpx;
      }
    }
  }
}
</style>