详情小程序
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.

76 lines
1.5 KiB

  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">
  4. <lf-image class="avatar" src="@/static/logo.png"></lf-image>
  5. <view class="info">
  6. <view class="lf-flex-1">
  7. <text>编号83927</text>
  8. <u-icon name="tags" class="lf-m-l-10"></u-icon>
  9. </view>
  10. <view class="lf-flex-1 lf-m-t-16">24··180cm·本科·未婚</view>
  11. <view class="lf-flex-1 lf-m-t-16">自有公司·金融/证券/保险·50万以上</view>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. name: 'lf-userList',
  19. props: {
  20. padding: {
  21. type: Boolean, // 是否显示列表距离页面的边距
  22. default: true
  23. },
  24. list: {
  25. type: Array,
  26. default: function(){
  27. return [1,2,3,4,5,6,7,8,9,10]
  28. // return [1]
  29. }
  30. }
  31. },
  32. data(){
  33. return {
  34. }
  35. },
  36. onLoad(){
  37. },
  38. methods: {
  39. }
  40. }
  41. </script>
  42. <style lang="scss" scoped="scoped">
  43. .content{
  44. width: 100%;
  45. height: max-content;
  46. box-sizing: border-box;
  47. .list{
  48. padding: 30rpx 0;
  49. border-bottom: 1rpx solid #E5E5E5;
  50. display: flex;
  51. width: 100%;
  52. height: max-content;
  53. .avatar{
  54. width: 150rpx;
  55. height: 150rpx;
  56. border-radius: 10rpx;
  57. margin-right: 15rpx;
  58. background-color: #EEEEEE;
  59. }
  60. .info{
  61. flex: auto;
  62. min-height: 150rpx;
  63. max-width: 522rpx;
  64. display: flex;
  65. align-content: space-between;
  66. flex-wrap: wrap;
  67. flex-direction: column;
  68. }
  69. }
  70. }
  71. </style>