Authored by lijing

商品列表页增加预售标签

@@ -115,6 +115,9 @@ @@ -115,6 +115,9 @@
115 {{# isLimited}} 115 {{# isLimited}}
116 <p class="good-tag limit-tag">限量</p> 116 <p class="good-tag limit-tag">限量</p>
117 {{/ isLimited}} 117 {{/ isLimited}}
  118 + {{# isPresell}}
  119 + <p class="good-tag is-presell">预售</p>
  120 + {{/ isPresell}}
118 {{/ tags}} 121 {{/ tags}}
119 </div> 122 </div>
120 <div class="good-detail-img"> 123 <div class="good-detail-img">
@@ -44,6 +44,9 @@ @@ -44,6 +44,9 @@
44 {{# isLimited}} 44 {{# isLimited}}
45 <p class="good-tag limit-tag">限量</p> 45 <p class="good-tag limit-tag">限量</p>
46 {{/ isLimited}} 46 {{/ isLimited}}
  47 + {{# isPresell}}
  48 + <p class="good-tag is-presell">预售</p>
  49 + {{/ isPresell}}
47 {{/ tags}} 50 {{/ tags}}
48 </div> 51 </div>
49 <div class="good-detail-img"> 52 <div class="good-detail-img">
@@ -18,6 +18,9 @@ @@ -18,6 +18,9 @@
18 {{# is_limited}} 18 {{# is_limited}}
19 <p class="good-tag limit-tag">限量</p> 19 <p class="good-tag limit-tag">限量</p>
20 {{/ is_limited}} 20 {{/ is_limited}}
  21 + {{# is_presell}}
  22 + <p class="good-tag is-presell">预售</p>
  23 + {{/ is_presell}}
21 {{/ tags}} 24 {{/ tags}}
22 </div> 25 </div>
23 <div class="good-detail-img"> 26 <div class="good-detail-img">
@@ -22,7 +22,7 @@ @@ -22,7 +22,7 @@
22 <p class="good-tag soon-sold-out-tag">即将售罄</p> 22 <p class="good-tag soon-sold-out-tag">即将售罄</p>
23 {{/ is_soon_sold_out}} 23 {{/ is_soon_sold_out}}
24 {{# is_presell}} 24 {{# is_presell}}
25 - <p class="good-tag is_presell">预售</p> 25 + <p class="good-tag is-presell">预售</p>
26 {{/ is_presell}} 26 {{/ is_presell}}
27 {{/ tags}} 27 {{/ tags}}
28 </div> 28 </div>
@@ -19,6 +19,9 @@ @@ -19,6 +19,9 @@
19 {{#if isLimited}} 19 {{#if isLimited}}
20 <p class="good-tag limit-tag">限量商品</p> 20 <p class="good-tag limit-tag">限量商品</p>
21 {{/if}} 21 {{/if}}
  22 + {{# isPresell}}
  23 + <p class="good-tag is-presell">预售</p>
  24 + {{/ isPresell}}
22 {{/each}} 25 {{/each}}
23 </div> 26 </div>
24 <div class="good-detail-img"> 27 <div class="good-detail-img">
@@ -20,6 +20,9 @@ @@ -20,6 +20,9 @@
20 {{# is_limited}} 20 {{# is_limited}}
21 <p class="good-tag limit-tag">限量</p> 21 <p class="good-tag limit-tag">限量</p>
22 {{/ is_limited}} 22 {{/ is_limited}}
  23 + {{# is_presell}}
  24 + <p class="good-tag is-presell">预售</p>
  25 + {{/ is_presell}}
23 {{/ tags}} 26 {{/ tags}}
24 </div> 27 </div>
25 <div class="good-detail-img"> 28 <div class="good-detail-img">
@@ -62,6 +62,12 @@ @@ -62,6 +62,12 @@
62 border: 1px solid #000; 62 border: 1px solid #000;
63 color: #000; 63 color: #000;
64 } 64 }
  65 +
  66 + .is-presell {
  67 + width: 60px;
  68 + background-color: #000;
  69 + color: #fff;
  70 + }
65 } 71 }
66 } 72 }
67 73
@@ -186,9 +186,10 @@ $basicBtnC: #eb0313; @@ -186,9 +186,10 @@ $basicBtnC: #eb0313;
186 color: #fff; 186 color: #fff;
187 } 187 }
188 188
189 - .is_presell { 189 + .is-presell {
190 background-color: #000; 190 background-color: #000;
191 color: #fff; 191 color: #fff;
  192 + width: 60px;
192 } 193 }
193 } 194 }
194 195