index.vue 1.3 KB
<template>
	<view class="ListItem">
		{{ info.name }}
	</view>
</template>

<script>
	export default {
		name: 'ListItem',
		props: {
			info: {
				type: Object,
				default: () => {
					return {}
				}
			}
		},
		data() {
			return {
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	.ListItem{
		border-radius: 15rpx;
		background-color: #fff;
		padding: 28rpx;
		box-shadow: 7rpx 0rpx 24rpx 0rpx rgba(153,153,153,0.22);
		margin-bottom: 20rpx;
		display: flex;
		.ListItem-l{
			flex-shrink: 0;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			.ListItem-l-1{
				position: relative;
				color: #3D4054;
				.ListItem-l-1-l{
					position: absolute;
					right: 0;
					top: 0;
					height: 28rpx;
					width: 28rpx;
					transform: translate(25%, -25%);
				}
			}
			.ListItem-l-2{
				font-size: 28rpx;
				margin-top: 15rpx;
				white-space: nowrap;
				overflow: hidden;
				text-overflow: ellipsis;
				width: 85rpx;
			}
		}
		.ListItem-r{
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			margin-left: 30rpx;
			.ListItem-r-i{
				display: flex;
				align-items: center;
				.ListItem-r-i-i{
					height: 26rpx;
					width: 26rpx;
					flex-shrink: 0;
				}
				.ListItem-r-i-t{
					font-size: 26rpx;
					margin-left: 13rpx;
					color: #A1A0AB;
				}
			}
		}
	}
</style>