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.
56 lines
939 B
56 lines
939 B
3 years ago
|
<!--
|
||
|
* @Author: ch
|
||
|
* @Date: 2022-05-08 14:41:42
|
||
|
* @LastEditors: ch
|
||
|
* @LastEditTime: 2022-05-08 15:11:29
|
||
|
* @Description: file content
|
||
|
-->
|
||
|
<template>
|
||
|
<div class="ui-goods-info">
|
||
|
<div class="ui-goods-info--img">
|
||
|
<img :src="goods.productImageUrl"/>
|
||
|
</div>
|
||
|
<p>
|
||
|
<b>{{goods.productName}}</b>
|
||
|
<span>{{goods.skuDescribe}}{{goods.productName}}</span>
|
||
|
</p>
|
||
|
</div>
|
||
|
</template>
|
||
|
<script>
|
||
|
export default {
|
||
|
props : {
|
||
|
goods : {
|
||
|
type : Object,
|
||
|
default : () => ({})
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
<style lang="scss" scoped>
|
||
|
.ui-goods-info{
|
||
|
display: flex;
|
||
|
&--img{
|
||
|
width: 100px;
|
||
|
height: 100px;
|
||
|
border: 1px solid #eee;
|
||
|
}
|
||
|
p{
|
||
|
width: 270px;
|
||
|
margin: 7px 0 0 18px;
|
||
|
text-align: left;
|
||
|
b{
|
||
|
display: block;
|
||
|
line-height: 22px;
|
||
|
margin-bottom: 10px;
|
||
|
overflow: hidden;
|
||
|
text-overflow:ellipsis;
|
||
|
display:-webkit-box;
|
||
|
-webkit-box-orient:vertical;
|
||
|
-webkit-line-clamp:2;
|
||
|
}
|
||
|
span{
|
||
|
color: #999;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</style>
|