|
|
|
@ -27,9 +27,9 @@ |
|
|
|
</a> |
|
|
|
<div class="info f-flex"> |
|
|
|
<div> |
|
|
|
<p class="title f-ellipsis-1">{{goods.name}}</p> |
|
|
|
<p class="title f-ellipsis-1 ellipsis">{{goods.name}}</p> |
|
|
|
<p class="rule f-ellipsis-1">{{goods.shortDesc}}</p> |
|
|
|
<div class="full f-ellipsis-1"> |
|
|
|
<div class="card-name"> |
|
|
|
<i :style="{marginRight:(i+1)==goods.labelList.length?'0':'0.1rem'}" v-if="label.labelText" v-for="(label,i) in goods.labelList">{{label.labelText}}</i> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -261,6 +261,33 @@ export default { |
|
|
|
}; |
|
|
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
|
|
.card-name { |
|
|
|
height: 0.3rem; |
|
|
|
font-size: 0.2rem; |
|
|
|
font-style: normal; |
|
|
|
font-weight: 400; |
|
|
|
color: #f4a353; |
|
|
|
text-overflow: ellipsis; |
|
|
|
overflow: hidden; |
|
|
|
display: -webkit-box; |
|
|
|
-webkit-box-orient: vertical; |
|
|
|
-webkit-line-clamp: 1; |
|
|
|
word-wrap: break-word; |
|
|
|
i { |
|
|
|
font-style: normal; |
|
|
|
background: rgba(255, 242, 229, 1); |
|
|
|
padding: 1px 3px; |
|
|
|
} |
|
|
|
} |
|
|
|
.ellipsis { |
|
|
|
overflow: hidden; |
|
|
|
display: -webkit-box; |
|
|
|
-webkit-box-orient: vertical; |
|
|
|
-webkit-line-clamp: 1; |
|
|
|
line-height: 1; |
|
|
|
word-wrap: break-word; |
|
|
|
height: 0.3rem; |
|
|
|
} |
|
|
|
.goods { |
|
|
|
background-color: #fff; |
|
|
|
.top { |
|
|
|
@ -371,21 +398,34 @@ export default { |
|
|
|
// line-height: 1; |
|
|
|
} |
|
|
|
.full { |
|
|
|
height: 0.3rem; |
|
|
|
height: 0.2rem; |
|
|
|
font-size: 0.2rem; |
|
|
|
font-style: normal; |
|
|
|
font-weight: 400; |
|
|
|
color: rgba(244, 163, 83, 1); |
|
|
|
margin: 0.16rem 0 0.1rem; |
|
|
|
text-overflow: ellipsis; |
|
|
|
overflow: hidden; |
|
|
|
display: -webkit-box; |
|
|
|
-webkit-box-orient: vertical; |
|
|
|
-webkit-line-clamp: 1; |
|
|
|
word-wrap: break-word; |
|
|
|
margin-top: 0.16rem; |
|
|
|
line-height: 1; |
|
|
|
i { |
|
|
|
font-weight: 400; |
|
|
|
color: #f4a353; |
|
|
|
overflow: hidden; |
|
|
|
height: 0.22rem; |
|
|
|
font-style: normal; |
|
|
|
background: rgba(255, 242, 229, 1); |
|
|
|
padding: 1px 3px; |
|
|
|
font-style: normal; |
|
|
|
} |
|
|
|
} |
|
|
|
.price { |
|
|
|
font-size: 0; |
|
|
|
min-width: 1.5rem; |
|
|
|
span { |
|
|
|
display: inline-block; |
|
|
|
display: inline-block; |
|
|
|
font-size: 0.34rem; |
|
|
|
} |
|
|
|
.money { |
|
|
|
|