Authored by TaoHuang

Merge remote-tracking branch 'origin/develop' into develop

@@ -10,20 +10,32 @@ @@ -10,20 +10,32 @@
10 <ImgSize class="item-imge" :src="product.secondhand_image" :width="343" :height="343"/> 10 <ImgSize class="item-imge" :src="product.secondhand_image" :width="343" :height="343"/>
11 </div> 11 </div>
12 12
13 - <div class="item-name">  
14 - <p>  
15 - <span v-if="product.secondhandTypeName">{{product.secondhandTypeName}}</span>  
16 - <span>{{product.product_name}}</span>  
17 - </p> 13 + <div v-if="product.fromSize">
  14 + <div class="item-bottom-wrapper">
  15 + <div class="price-flag">
  16 + <span class='price-flag'>{{product.skup_price && '¥'}}{{product.skup_price || ' '}}</span>
  17 + <span class='hand-type' v-if="product.secondhandTypeName">{{product.secondhandTypeName}}</span>
  18 + </div>
  19 + <div class="size-flag">{{product.size_name}}码</div>
  20 + </div>
18 </div> 21 </div>
19 22
20 - <div class="item-bottom">  
21 - <div class="item-price">  
22 - <span>{{product.skup_price && '¥'}}</span><span>{{product.skup_price || ' '}}</span>  
23 - <span class='save-flag'>{{product.save_price && '已省¥'}}{{product.save_price || ' '}}</span> 23 + <div v-else>
  24 + <div class="item-name">
  25 + <p>
  26 + <span v-if="product.secondhandTypeName">{{product.secondhandTypeName}}</span>
  27 + <span>{{product.product_name}}</span>
  28 + </p>
  29 + </div>
  30 +
  31 + <div class="item-bottom">
  32 + <div class="item-price">
  33 + <span>{{product.skup_price && '¥'}}</span><span>{{product.skup_price || ' '}}</span>
  34 + <span class='save-flag'>{{product.save_price && '已省¥'}}{{product.save_price || ' '}}</span>
  35 + </div>
  36 + <div class="size-flag">{{product.size_name}}码</div>
  37 + </div>
24 </div> 38 </div>
25 - <div class="size-flag">{{product.size_name}}码</div>  
26 - </div>  
27 </div> 39 </div>
28 </div> 40 </div>
29 </template> 41 </template>
@@ -191,6 +203,31 @@ export default { @@ -191,6 +203,31 @@ export default {
191 } 203 }
192 } 204 }
193 205
  206 + .item-bottom-wrapper {
  207 + padding: 20px 14px 30px 20px;
  208 + display: flex;
  209 + justify-content: space-between;
  210 + align-items: center;
  211 +
  212 + .hand-type {
  213 + margin-left: 5px;
  214 + color: #fff;
  215 + background: #000;
  216 + padding: 4px 8px;
  217 + text-align: center;
  218 + font-size: 24px;
  219 + line-height: 30px;
  220 + display: inline-block;
  221 + }
  222 + }
  223 +
  224 + .sale_flag {
  225 + background: #000;
  226 + height: 40px;
  227 + padding: 0 8px;
  228 + border-radius: 4px;
  229 + }
  230 +
194 .item-bottom { 231 .item-bottom {
195 padding: 0 14px 30px 20px; 232 padding: 0 14px 30px 20px;
196 display: flex; 233 display: flex;
@@ -208,6 +245,15 @@ export default { @@ -208,6 +245,15 @@ export default {
208 @include num 245 @include num
209 } 246 }
210 247
  248 + .price-flag {
  249 + color: #000;
  250 + font-size: 32px;
  251 + vertical-align: center;
  252 + display: flex;
  253 + flex-direction: row;
  254 + align-items: center;
  255 + }
  256 +
211 .save-flag { 257 .save-flag {
212 margin-left: 5px; 258 margin-left: 5px;
213 color: #d0021d; 259 color: #d0021d;