Commit de7e35491ae2b77f6672f9b6fb6f5b71ead822fa
1 parent
f904e194
热销排行优化~
Showing
2 changed files
with
7 additions
and
2 deletions
src/components/goodsItem_8/goodsItem_8.less
| ... | ... | @@ -139,7 +139,11 @@ |
| 139 | 139 | background-color:rgba(245, 166, 35, 0.08); |
| 140 | 140 | padding: 2px 16px; |
| 141 | 141 | color: #F5A623; |
| 142 | + max-width: 100%; | |
| 142 | 143 | border-radius: 18px; |
| 144 | + white-space: nowrap; | |
| 145 | + text-overflow: ellipsis; | |
| 146 | + overflow: hidden; | |
| 143 | 147 | } |
| 144 | 148 | } |
| 145 | 149 | } | ... | ... |
src/components/goodsItem_8/goodsItem_8.vue
| ... | ... | @@ -10,8 +10,9 @@ |
| 10 | 10 | <div class="content-box"> |
| 11 | 11 | <div class="top-box"> |
| 12 | 12 | <div class="title">{{item.title}}</div> |
| 13 | - <div class="sub-title" v-if="sty == '2'">已售出 {{item.num}} 件</div> | |
| 14 | - <div class="sub-title" v-else>{{item.ads}}</div> | |
| 13 | + <!-- <div class="sub-title" v-if="sty == '2'">已售出 {{item.num}} 件</div> --> | |
| 14 | + <!-- <div class="sub-title" v-else>{{item.ads}}</div> --> | |
| 15 | + <div class="sub-title" v-if="item.ads && sty != '2'">{{item.ads}}</div> | |
| 15 | 16 | <div class="icon-stock-is-tight-box" v-if="sty == '1' && item.gift_num <= 10 && item.num == '1' && item.stock != '0'"> |
| 16 | 17 | <img src="static/img/icon_stock_is_tight.png" class="icon-stock-is-tight-img" /> |
| 17 | 18 | </div> | ... | ... |