Commit d1786ec4223e9b0a286499a386441a297f5ee910
1 parent
f7f20ca8
积分商城裂变样式调优
Showing
2 changed files
with
8 additions
and
1 deletions
src/components/goodsItem_7/goodsItem_7.less
| @@ -154,8 +154,15 @@ | @@ -154,8 +154,15 @@ | ||
| 154 | font-weight: 400; | 154 | font-weight: 400; |
| 155 | color: #FC1541; | 155 | color: #FC1541; |
| 156 | line-height: 42px; | 156 | line-height: 42px; |
| 157 | + overflow: hidden; | ||
| 158 | + text-overflow: ellipsis; | ||
| 159 | + white-space: nowrap; | ||
| 157 | } | 160 | } |
| 158 | } | 161 | } |
| 162 | + /*兼容积分商城样式*/ | ||
| 163 | + .integral-content-box{ | ||
| 164 | + width: 100%; | ||
| 165 | + } | ||
| 159 | &.g-2 { | 166 | &.g-2 { |
| 160 | .content-box { | 167 | .content-box { |
| 161 | .title { | 168 | .title { |
src/components/goodsItem_7/goodsItem_7.vue
| @@ -17,7 +17,7 @@ | @@ -17,7 +17,7 @@ | ||
| 17 | <!-- 角标 --> | 17 | <!-- 角标 --> |
| 18 | <slot name="flag"></slot> | 18 | <slot name="flag"></slot> |
| 19 | </div> | 19 | </div> |
| 20 | - <div class="content-box"> | 20 | + <div class="content-box" :class="{'integral-content-box':company == 1}"> |
| 21 | <div class="title" :class="{'grey-title':company == 2}">{{item.title}}</div> | 21 | <div class="title" :class="{'grey-title':company == 2}">{{item.title}}</div> |
| 22 | <!-- <div class="coupon-box"> | 22 | <!-- <div class="coupon-box"> |
| 23 | 满180减10 | 23 | 满180减10 |