StockCard.vue 1.0 KB
<template>
	<view class="stock_item">
		<view class="left">
			<image style="width:100%;" src="https://cbu01.alicdn.com/img/ibank/2016/759/755/3743557957_600065101.jpg" mode="widthFix"></image>
		</view>
		<view class="right">
			<view class="col-3d l-h-42 f-32 u-line-1">今麦郎熟水凉白开饮用水</view>
			<view class="edit">
				<u-icon name="edit-pen" size="16" color="#333"></u-icon>
				<text class="m-l-10 col-3 f-28 l-h-38">编辑</text>
			</view>
		</view>
	</view>
</template>

<script>
</script>

<style lang="scss" scoped>
.stock_item{
	display: flex;
	align-items: center;
	height: 160rpx;
	box-sizing: border-box;
	padding: 0 30rpx;
	border-bottom: 2rpx solid #eee;
	.left{
		width: 80rpx;
		height: 80rpx;
		overflow: hidden;
		border-radius: 8rpx;
		margin-right: 20rpx;
	}
	.right{
		position: relative;
		display: flex;
		align-items: center;
		flex: 1;
		.edit{
			position: absolute;
			display: flex;
			align-items: center;
			top: 50%;
			right: 0;
			transform: translateY(-50%);
		}
	}
}
</style>