详情小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
1.8 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <template>
  2. <view class="content" :style="padding ? 'padding: 0rpx 32rpx' : 'padding: 0rpx'">
  3. <view class="list" v-for="(item, index) in list" :key="index" @click="$url('/pages/my/memberDetails?id='+ item.number)">
  4. <lf-image class="avatar" :src="item.user.avatar"></lf-image>
  5. <view class="info">
  6. <view class="lf-flex-1">
  7. <text>{{ item.number_nickname }}</text>
  8. <text class="lf-iconfont icon-nv lf-m-l-10 lf-color-primary" v-if="item.gender == '女'"></text>
  9. <text class="lf-iconfont icon-nan lf-m-l-10 color-nan" v-else></text>
  10. </view>
  11. <view class="lf-flex-1 lf-m-t-16">{{ item.age }}·{{ item.zodiac }}·{{ item.height }}cm·{{ item.education_id }}·{{ item.marital_status }}</view>
  12. <view class="lf-flex-1 lf-m-t-16">自有公司·金融/证券/保险·50万以上</view>
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. import lfImage from '../lf-image/lf-image.vue'
  19. export default {
  20. name: 'lf-userList',
  21. components: {
  22. lfImage
  23. },
  24. props: {
  25. padding: {
  26. type: Boolean, // 是否显示列表距离页面的边距
  27. default: true
  28. },
  29. list: {
  30. type: Array,
  31. default: []
  32. }
  33. },
  34. data(){
  35. return {
  36. }
  37. },
  38. onLoad(){
  39. },
  40. methods: {
  41. }
  42. }
  43. </script>
  44. <style lang="scss" scoped="scoped">
  45. .color-nan{
  46. color: #1E77F4;
  47. }
  48. .content{
  49. width: 100%;
  50. height: max-content;
  51. box-sizing: border-box;
  52. .list{
  53. padding: 30rpx 0;
  54. border-bottom: 1rpx solid #E5E5E5;
  55. display: flex;
  56. width: 100%;
  57. height: max-content;
  58. .avatar{
  59. width: 150rpx;
  60. height: 150rpx;
  61. border-radius: 10rpx;
  62. margin-right: 15rpx;
  63. background-color: #EEEEEE;
  64. }
  65. .info{
  66. flex: auto;
  67. min-height: 150rpx;
  68. max-width: 522rpx;
  69. display: flex;
  70. align-content: space-between;
  71. flex-wrap: wrap;
  72. flex-direction: column;
  73. }
  74. }
  75. }
  76. </style>