list.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <template>
  2. <view class="wrap">
  3. <view class="header">已获得 <text>{{allData.totalMoney}}</text> 元奖励,成功邀请 <text>{{allData.peopleNum}}</text> 位新朋友入驻</view>
  4. <view class="friend_list">
  5. <view class="friend_list_item" v-for="item,index in allData.arr" :key="index">
  6. <view class="my_share_lf"><image :src="item.img"></image></view>
  7. <view class="my_share_rg">
  8. <view class="my_share_rg_top clear">
  9. <view class="my_share_rg_name">{{item.nickName}}</view>
  10. <view class="my_share_rg_text">{{item.enterTime}}</view>
  11. </view>
  12. <view class="my_share_rg_top clear">
  13. <view class="my_share_rg_name" style="font-size:26rpx;color:#666666;">{{item.phone}}</view>
  14. <view class="my_share_rg_text">{{item.msg}}</view>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. import api from "../../../../../api.js";
  23. let app = getApp();
  24. export default {
  25. data() {
  26. return {
  27. allData:null
  28. }
  29. },
  30. onLoad() {
  31. this.getData();
  32. },
  33. methods: {
  34. //加载数据
  35. getData(){
  36. let data = {
  37. token:app.globalData.token,
  38. isAll:1,
  39. }
  40. api.getUserMyShare(data).then((res)=>{
  41. console.log(res);
  42. this.allData = res.data.data;
  43. })
  44. }
  45. }
  46. }
  47. </script>
  48. <style>
  49. .clear:after{
  50. content: "";
  51. display: block;
  52. clear: both;
  53. }
  54. .header{
  55. height:100rpx;
  56. line-height: 100rpx;
  57. background:rgba(247,247,247,1);
  58. font-size: 26rpx;
  59. color:#666666;
  60. text-align: center;
  61. }
  62. .header text{
  63. color: #F6C552;
  64. }
  65. .friend_list{
  66. width:100%;
  67. background-color: #ffffff;
  68. padding:0 30rpx;
  69. box-sizing: border-box;
  70. }
  71. .friend_list_item{
  72. width:100%;
  73. height:188rpx;
  74. border-bottom: 1px solid #F2F2F2;
  75. box-sizing: border-box;
  76. }
  77. .my_share_lf{
  78. float:left;
  79. width:106rpx;
  80. height:106rpx;
  81. margin-top:42rpx;
  82. }
  83. .my_share_lf image{
  84. display: block;
  85. width:100%;
  86. height:100%;
  87. border-radius: 50%;
  88. border:2rpx solid rgba(255,213,164,1);
  89. }
  90. .my_share_rg{
  91. width:calc(100% - 126rpx);
  92. font-size: 26rpx;
  93. float:left;
  94. height:106rpx;
  95. margin-top:42rpx;
  96. overflow: hidden;
  97. margin-left: 20rpx;
  98. }
  99. .my_share_rg_top{
  100. font-size: 26rpx;
  101. color:#222222;
  102. margin-top:8rpx;
  103. }
  104. .my_share_rg_name{
  105. float:left;
  106. font-size: 32rpx;
  107. }
  108. .my_share_rg_text{
  109. float:right;
  110. }
  111. </style>