Authored by 周少峰

Merge branch 'release/4.9.1.0'

No preview for this file type
This diff could not be displayed because it is too large.

1 KB | W: | H:

2.04 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
@@ -95,13 +95,17 @@ @@ -95,13 +95,17 @@
95 95
96 .good-detail-text { 96 .good-detail-text {
97 .name a { 97 .name a {
98 - display: block; 98 + display: -webkit-box;
  99 + overflow: hidden;
  100 + word-break: break-all;
  101 + -webkit-box-orient: vertical;
  102 + -webkit-line-clamp: 2;
99 margin: 15px 0 10px; 103 margin: 15px 0 10px;
100 min-height: 50px; 104 min-height: 50px;
101 color: #444; 105 color: #444;
102 font-size: 22px; 106 font-size: 22px;
103 line-height: 30px; 107 line-height: 30px;
104 - height: 60px; 108 + height: 55px;
105 padding: 5px 0; /* 商品标题限制行数的bug修复 增加元素的clientHeight */ 109 padding: 5px 0; /* 商品标题限制行数的bug修复 增加元素的clientHeight */
106 } 110 }
107 .price { 111 .price {
@@ -122,15 +126,23 @@ @@ -122,15 +126,23 @@
122 display: inline-block; 126 display: inline-block;
123 text-align: center; 127 text-align: center;
124 background: resolve('product/price-tag.png') no-repeat center; 128 background: resolve('product/price-tag.png') no-repeat center;
125 - background-size: cover; 129 + background-size: contain;
126 color: #fff; 130 color: #fff;
127 - font-size: 18px;  
128 - width: 77px;  
129 - height: 26px;  
130 - line-height: 26px; 131 + width: 70px;
  132 + height: 24px;
  133 + position: relative;
  134 + top: 2px;
131 } 135 }
132 } 136 }
133 .student-price { 137 .student-price {
  138 + .sale-price.no-price {
  139 + color: #d62927;
  140 + }
  141 + .sale-price {
  142 + display: inline-block;
  143 + height: 24px;
  144 + line-height: 24px;
  145 + }
134 .market-price { 146 .market-price {
135 margin: 0px; 147 margin: 0px;
136 display: block; 148 display: block;
@@ -35,7 +35,7 @@ @@ -35,7 +35,7 @@
35 <div class="price {{#if students}}student-price{{/if}}"> 35 <div class="price {{#if students}}student-price{{/if}}">
36 {{#if students}} 36 {{#if students}}
37 <span class="sale-price {{^price}}no-price{{/price}}"{{studentPrice}}</span> 37 <span class="sale-price {{^price}}no-price{{/price}}"{{studentPrice}}</span>
38 - <span class="students-price-tag">学生价</span> 38 + <span class="students-price-tag"></span>
39 {{#salePrice}} 39 {{#salePrice}}
40 <span class="market-price"{{.}}</span> 40 <span class="market-price"{{.}}</span>
41 {{/salePrice}} 41 {{/salePrice}}