Merge remote-tracking branch 'origin/release/5.1' into release/5.1
Showing
6 changed files
with
15 additions
and
12 deletions
@@ -20,11 +20,15 @@ const shopList = (uid, tabName) => { | @@ -20,11 +20,15 @@ const shopList = (uid, tabName) => { | ||
20 | }).then((result) => { | 20 | }).then((result) => { |
21 | if (result && result.code === 200) { | 21 | if (result && result.code === 200) { |
22 | _.forEach(result.data, function(data) { | 22 | _.forEach(result.data, function(data) { |
23 | - let href = '//m.yohobuy.com/product/index/brand?shop_id=' + data.shopsId + '&openby:yohobuy={"action":"go.shop","params":{"shop_id":"' | ||
24 | - + data.shopsId + '","shop_template_type":"' + data.shopTemplateType + '","shop_name":"' + data.shopName + '"}}'; | 23 | + let href = '//m.yohobuy.com/product/index/brand?shop_id=' + data.shopsId + '&openby:yohobuy={"action":"go.shop","params":{"shop_id":"' + |
24 | + data.shopsId + '","shop_template_type":"' + data.shopTemplateType + '","shop_name":"' + data.shopName + '"}}'; | ||
25 | 25 | ||
26 | data.isFavorite = data.isFavorite === 'Y'; | 26 | data.isFavorite = data.isFavorite === 'Y'; |
27 | 27 | ||
28 | + if (parseInt(data.collectionNum) > 10000) { | ||
29 | + data.collectionNum = (data.collectionNum / 10000).toFixed(1) + ' w'; | ||
30 | + } | ||
31 | + | ||
28 | data.href = href; | 32 | data.href = href; |
29 | }); | 33 | }); |
30 | return result.data; | 34 | return result.data; |
@@ -17,7 +17,7 @@ | @@ -17,7 +17,7 @@ | ||
17 | </div> | 17 | </div> |
18 | 18 | ||
19 | <div class="info-content"> | 19 | <div class="info-content"> |
20 | - <img class="lazy content" data-original="{{image bannerUrl 690 175}}"></img> | 20 | + <img class="lazy content" data-original="{{image bannerUrl 690 235}}"></img> |
21 | </div> | 21 | </div> |
22 | </a> | 22 | </a> |
23 | </div> | 23 | </div> |
@@ -294,7 +294,7 @@ scrollFn = debounce(function() { | @@ -294,7 +294,7 @@ scrollFn = debounce(function() { | ||
294 | }, 200); | 294 | }, 200); |
295 | 295 | ||
296 | $(function() { | 296 | $(function() { |
297 | - isApp = (window.queryString.app_version || window.queryString.appVersion) ? true : false; | 297 | + isApp = window.queryString.app_version || window.queryString.appVersion; |
298 | 298 | ||
299 | if (isApp) { | 299 | if (isApp) { |
300 | speckParamApp = { | 300 | speckParamApp = { |
@@ -307,7 +307,7 @@ $(function() { | @@ -307,7 +307,7 @@ $(function() { | ||
307 | // 男:1,女:2,潮童:3,创意生活:4 | 307 | // 男:1,女:2,潮童:3,创意生活:4 |
308 | speckParamApp.CID = window.queryString.yh_channel || window._ChannelVary[window.cookie('_Channel')] || 1; | 308 | speckParamApp.CID = window.queryString.yh_channel || window._ChannelVary[window.cookie('_Channel')] || 1; |
309 | 309 | ||
310 | - if (!(window.queryString.app_version || window.queryString.appVersion)) { | 310 | + if (!isApp) { |
311 | $('.tab-nav').css({ | 311 | $('.tab-nav').css({ |
312 | position: 'relative' | 312 | position: 'relative' |
313 | }); | 313 | }); |
@@ -57,7 +57,7 @@ seckillObj = { | @@ -57,7 +57,7 @@ seckillObj = { | ||
57 | $(elem).find('.tick.hour').text(hour < 0 ? '00' : (hour < 10 ? ('0' + hour) : hour)); | 57 | $(elem).find('.tick.hour').text(hour < 0 ? '00' : (hour < 10 ? ('0' + hour) : hour)); |
58 | $(elem).find('.tick.minute').text(minute < 0 ? '00' : (minute < 10 ? ('0' + minute) : minute)); | 58 | $(elem).find('.tick.minute').text(minute < 0 ? '00' : (minute < 10 ? ('0' + minute) : minute)); |
59 | $(elem).find('.tick.second').text(second < 0 ? '00' : (second < 10 ? ('0' + second) : second)); | 59 | $(elem).find('.tick.second').text(second < 0 ? '00' : (second < 10 ? ('0' + second) : second)); |
60 | - if (offsetTime <= 0) { // 结束倒计时刷新状态 | 60 | + if (offsetTime <= 1) { // 结束倒计时刷新状态 |
61 | window.location.reload(); | 61 | window.location.reload(); |
62 | } else { | 62 | } else { |
63 | $el.currentTick = setTimeout(function() { | 63 | $el.currentTick = setTimeout(function() { |
@@ -56,13 +56,14 @@ | @@ -56,13 +56,14 @@ | ||
56 | .fans { | 56 | .fans { |
57 | margin-right: 10px; | 57 | margin-right: 10px; |
58 | color: #666; | 58 | color: #666; |
59 | + font-size: 22px; | ||
59 | } | 60 | } |
60 | 61 | ||
61 | .collect-btn { | 62 | .collect-btn { |
62 | color: #b0b0b0; | 63 | color: #b0b0b0; |
63 | display: inline-block; | 64 | display: inline-block; |
64 | width: 50px; | 65 | width: 50px; |
65 | - font-size: 24px; | 66 | + font-size: 26px; |
66 | text-align: center; | 67 | text-align: center; |
67 | } | 68 | } |
68 | 69 | ||
@@ -109,19 +110,17 @@ | @@ -109,19 +110,17 @@ | ||
109 | .giving { | 110 | .giving { |
110 | width: 170px; | 111 | width: 170px; |
111 | color: #b0b0b0; | 112 | color: #b0b0b0; |
112 | - position: relative; | ||
113 | - top: -10px; | 113 | + font-size: 22px; |
114 | } | 114 | } |
115 | } | 115 | } |
116 | 116 | ||
117 | .info-content { | 117 | .info-content { |
118 | height: 235px; | 118 | height: 235px; |
119 | - padding: 30px; | ||
120 | border-top: 1px solid #e0e0e0; | 119 | border-top: 1px solid #e0e0e0; |
121 | 120 | ||
122 | .content { | 121 | .content { |
123 | width: 690px; | 122 | width: 690px; |
124 | - height: 175px; | 123 | + height: 233px; |
125 | } | 124 | } |
126 | } | 125 | } |
127 | } | 126 | } |
@@ -153,7 +153,7 @@ function tranformPayment(data, orderInfo) { | @@ -153,7 +153,7 @@ function tranformPayment(data, orderInfo) { | ||
153 | 153 | ||
154 | // 有货币 | 154 | // 有货币 |
155 | result.yohoCoin = data.yoho_coin; | 155 | result.yohoCoin = data.yoho_coin; |
156 | - result.useYohoCoin = false; //data.use_yoho_coin; | 156 | + result.useYohoCoin = false; // data.use_yoho_coin; |
157 | 157 | ||
158 | // 发票 | 158 | // 发票 |
159 | if (data.invoices) { | 159 | if (data.invoices) { |
-
Please register or login to post a comment