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

80 lines
1.7 KiB

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