<!--
 * @Author: ch
 * @Date: 2022-03-31 14:49:33
 * @LastEditors: ch
 * @LastEditTime: 2022-04-09 15:01:43
 * @Description: file content
-->
<template>
	<view class="uiGoods">
		<image class="uiGoods--image" mode="widthFix" :src="data.productImageUrl" />
		<view >
			<view class="uiGoods--con">
				<text class="uiGoods--title">{{data.productName}}</text>
				<text class="uiGoods--pirce">￥{{data.realAmount}}</text>
			</view>
			<view class="uiGoods--desc">
				<text>{{data.skuDescribe}}</text>
				<text class="uiGoods--num">x{{data.quantity}}</text>
			</view>
		</view>
	</view>
</template>
<script>
export default {
	props : {
		data : {
			type : Object,
			default : {}
		}
	}
}
</script>
<style lang="scss" scoped>
	.uiGoods{
		display: flex;
		justify-content: space-between;
		padding: 30rpx;
		border-bottom: 1px solid $color-grey2;
		&--image{
			width: 180rpx;
			height: 180rpx;
			margin-right: 30rpx;
		}
		&--con{
			width: 510rpx;
			display: flex;
			justify-content: space-between;
			font-size: $font-size-base;
			color: $color-grey6;
			line-height: 39rpx;
		}
		&--title{
			overflow:hidden; 
			text-overflow:ellipsis;
			display:-webkit-box; 
			-webkit-box-orient:vertical;
			-webkit-line-clamp:2; 
		}
		&--pirce{
			font-size: 22rpx;
			margin-left: 60rpx;
		}
		&--desc{
			width: 510rpx;
			font-size: $font-size-sm;
			color: $color-grey4;
			margin-top: 20rpx;
			line-height: 39rpx;
			display: flex;
			justify-content: space-between;
		}
		&--num{
			font-size: $font-size-base;
			margin-left: 60rpx;
		}
	}
</style>