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.
|
|
<template> <view class="content" :style="padding ? 'padding: 0rpx 32rpx' : 'padding: 0rpx'"> <view class="list" v-for="(item, index) in list" :key="index" @click="$url('/pages/my/memberDetails')"> <lf-image class="avatar" src="../../static/logo.png"></lf-image> <view class="info"> <view class="lf-flex-1"> <text>编号:83927</text> <text class="lf-iconfont icon-nv lf-m-l-10 lf-color-primary" v-if="index % 2"></text> <text class="lf-iconfont icon-nan lf-m-l-10 color-nan" v-else></text> </view> <view class="lf-flex-1 lf-m-t-16">24岁·牛·180cm·本科·未婚</view> <view class="lf-flex-1 lf-m-t-16">自有公司·金融/证券/保险·50万以上</view> </view> </view> </view></template>
<script> export default { name: 'lf-userList', props: { padding: { type: Boolean, // 是否显示列表距离页面的边距
default: true }, list: { type: Array, default: function(){ return [1,2,3,4,5,6,7,8,9,10] // return [1]
} } }, data(){ return { } }, onLoad(){ }, methods: { } }</script>
<style lang="scss" scoped="scoped"> .color-nan{ color: #1E77F4; } .content{ width: 100%; height: max-content; box-sizing: border-box; .list{ padding: 30rpx 0; border-bottom: 1rpx solid #E5E5E5; display: flex; width: 100%; height: max-content; .avatar{ width: 150rpx; height: 150rpx; border-radius: 10rpx; margin-right: 15rpx; background-color: #EEEEEE; } .info{ flex: auto; min-height: 150rpx; max-width: 522rpx; display: flex; align-content: space-between; flex-wrap: wrap; flex-direction: column; } } }</style>
|