Commit de7e35491ae2b77f6672f9b6fb6f5b71ead822fa

Authored by 王强
1 parent f904e194

热销排行优化~

src/components/goodsItem_8/goodsItem_8.less
@@ -139,7 +139,11 @@ @@ -139,7 +139,11 @@
139 background-color:rgba(245, 166, 35, 0.08); 139 background-color:rgba(245, 166, 35, 0.08);
140 padding: 2px 16px; 140 padding: 2px 16px;
141 color: #F5A623; 141 color: #F5A623;
  142 + max-width: 100%;
142 border-radius: 18px; 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,8 +10,9 @@
10 <div class="content-box"> 10 <div class="content-box">
11 <div class="top-box"> 11 <div class="top-box">
12 <div class="title">{{item.title}}</div> 12 <div class="title">{{item.title}}</div>
13 - <div class="sub-title" v-if="sty == '2'">已售出&nbsp;{{item.num}}&nbsp;件</div>  
14 - <div class="sub-title" v-else>{{item.ads}}</div> 13 + <!-- <div class="sub-title" v-if="sty == '2'">已售出&nbsp;{{item.num}}&nbsp;件</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 <div class="icon-stock-is-tight-box" v-if="sty == '1' && item.gift_num <= 10 && item.num == '1' && item.stock != '0'"> 16 <div class="icon-stock-is-tight-box" v-if="sty == '1' && item.gift_num <= 10 && item.num == '1' && item.stock != '0'">
16 <img src="static/img/icon_stock_is_tight.png" class="icon-stock-is-tight-img" /> 17 <img src="static/img/icon_stock_is_tight.png" class="icon-stock-is-tight-img" />
17 </div> 18 </div>