Browse Source

修改了样式

feature/feature-compatible
wangkesi 7 years ago
parent
commit
dff45a59d7
1 changed files with 46 additions and 6 deletions
  1. 52
      src/view/goods-classify.vue

52
src/view/goods-classify.vue

@ -27,9 +27,9 @@
</a> </a>
<div class="info f-flex"> <div class="info f-flex">
<div> <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> <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> <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>
</div> </div>
@ -261,6 +261,33 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <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 { .goods {
background-color: #fff; background-color: #fff;
.top { .top {
@ -371,21 +398,34 @@ export default {
// line-height: 1; // line-height: 1;
} }
.full { .full {
height: 0.3rem;
height: 0.2rem;
font-size: 0.2rem; font-size: 0.2rem;
font-style: normal;
font-weight: 400;
color: rgba(244, 163, 83, 1); 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 { i {
font-weight: 400;
color: #f4a353;
overflow: hidden;
height: 0.22rem;
font-style: normal;
background: rgba(255, 242, 229, 1); background: rgba(255, 242, 229, 1);
padding: 1px 3px; padding: 1px 3px;
font-style: normal;
} }
} }
.price { .price {
font-size: 0; font-size: 0;
min-width: 1.5rem; min-width: 1.5rem;
span { span {
display: inline-block;
display: inline-block;
font-size: 0.34rem; font-size: 0.34rem;
} }
.money { .money {

Loading…
Cancel
Save