Merge branch 'feature/new-product-detail' of http://git.yoho.cn/fe/yohobuy-node …
…into feature/new-product-detail
Showing
7 changed files
with
42 additions
and
21 deletions
@@ -346,7 +346,7 @@ const _getSkuDataByProductBaseInfo = (data) => { | @@ -346,7 +346,7 @@ const _getSkuDataByProductBaseInfo = (data) => { | ||
346 | } | 346 | } |
347 | 347 | ||
348 | // 是否显示到货通知 | 348 | // 是否显示到货通知 |
349 | - size.notify = cur.isSuppled === 'Y' && cur.storage_number === 0 ? 'Y' : 'N'; | 349 | + size.notify = size.isSuppled === 'Y' && size.storage_number === 0 ? 'Y' : 'N'; |
350 | 350 | ||
351 | goodsGroup.size.push({ | 351 | goodsGroup.size.push({ |
352 | name: size.size_name, | 352 | name: size.size_name, |
@@ -842,7 +842,7 @@ const _getDetailDataBySizeInfo = (sizeInfo) => { | @@ -842,7 +842,7 @@ const _getDetailDataBySizeInfo = (sizeInfo) => { | ||
842 | '<img src=': '<img class="lazy img-responsive" width="765" height="200" ' + | 842 | '<img src=': '<img class="lazy img-responsive" width="765" height="200" ' + |
843 | 'src="data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==" ' + | 843 | 'src="data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==" ' + |
844 | 'data-original=', | 844 | 'data-original=', |
845 | - '<img border="0" src=': '<img border="0" class="lazy img-responsive" width="200" height="574" ' + | 845 | + '<img border="0" src=': '<img border="0" class="lazy img-responsive" width="756" height="200" ' + |
846 | 'src="data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==" ' + | 846 | 'src="data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==" ' + |
847 | 'data-original=' | 847 | 'data-original=' |
848 | }; | 848 | }; |
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | 'use strict'; | 5 | 'use strict'; |
6 | 6 | ||
7 | const api = require('./favorite-api'); | 7 | const api = require('./favorite-api'); |
8 | -const serviceApi = global.yoho.ServiceAPI; | 8 | +const serviceApi = global.yoho.SingleAPI; |
9 | 9 | ||
10 | const _ = require('lodash'); | 10 | const _ = require('lodash'); |
11 | 11 | ||
@@ -17,7 +17,7 @@ const cancelFavAsync = _.partial(api.cancelFavAsync, _, _, 'brand'); | @@ -17,7 +17,7 @@ const cancelFavAsync = _.partial(api.cancelFavAsync, _, _, 'brand'); | ||
17 | 17 | ||
18 | const getShopFavNumAsync = (sid) => { | 18 | const getShopFavNumAsync = (sid) => { |
19 | return serviceApi.get('brower/favorite/queryFavoriteCountByShopIds', { | 19 | return serviceApi.get('brower/favorite/queryFavoriteCountByShopIds', { |
20 | - favIds: [sid], | 20 | + favIds: `[${sid}]`, |
21 | type: 'shop' | 21 | type: 'shop' |
22 | }); | 22 | }); |
23 | }; | 23 | }; |
@@ -65,6 +65,8 @@ | @@ -65,6 +65,8 @@ | ||
65 | <span class="sale-tip">{{saleTip}}</span> | 65 | <span class="sale-tip">{{saleTip}}</span> |
66 | {{/if}} | 66 | {{/if}} |
67 | 67 | ||
68 | + <div class="line"></div> | ||
69 | + | ||
68 | {{> product/price-list}} | 70 | {{> product/price-list}} |
69 | 71 | ||
70 | {{> product/activity-list}} | 72 | {{> product/activity-list}} |
1 | <p class="market-price"> | 1 | <p class="market-price"> |
2 | 2 | ||
3 | {{#if marketPrice}} | 3 | {{#if marketPrice}} |
4 | - <br> | 4 | + <span class="price-row"> |
5 | <span class="title">吊牌价:</span> | 5 | <span class="title">吊牌价:</span> |
6 | <span class="price{{#if hasOtherPrice}} has-other-price{{/if}}">{{marketPrice}}</span> | 6 | <span class="price{{#if hasOtherPrice}} has-other-price{{/if}}">{{marketPrice}}</span> |
7 | + </span> | ||
7 | {{/if}} | 8 | {{/if}} |
8 | 9 | ||
9 | {{#if salePrice}} | 10 | {{#if salePrice}} |
10 | <br> | 11 | <br> |
11 | - <span> | 12 | + <span class="promotion-price"> |
12 | <span class="title">促销价:</span> | 13 | <span class="title">促销价:</span> |
13 | <span class="price">{{salePrice}}</span> | 14 | <span class="price">{{salePrice}}</span> |
14 | </span> | 15 | </span> |
@@ -16,10 +17,10 @@ | @@ -16,10 +17,10 @@ | ||
16 | 17 | ||
17 | {{#if studentsPrice}} | 18 | {{#if studentsPrice}} |
18 | <br> | 19 | <br> |
19 | - <p class="students-price"> | 20 | + <span class="students-price"> |
20 | <span class="title">学生价</span> | 21 | <span class="title">学生价</span> |
21 | <span class="price">{{studentsPrice}}</span> | 22 | <span class="price">{{studentsPrice}}</span> |
22 | - </p> | 23 | + </span> |
23 | {{/if}} | 24 | {{/if}} |
24 | 25 | ||
25 | {{#if presalePrice}} | 26 | {{#if presalePrice}} |
@@ -16,17 +16,17 @@ module.exports = { | @@ -16,17 +16,17 @@ module.exports = { | ||
16 | siteUrl: 'http://www.yohobuy.com', | 16 | siteUrl: 'http://www.yohobuy.com', |
17 | cookieDomain: '.yohobuy.com', | 17 | cookieDomain: '.yohobuy.com', |
18 | domains: { | 18 | domains: { |
19 | - favApi: 'http://192.168.102.31:8092/brower', | ||
20 | 19 | ||
21 | - // api: 'http://api-test3.yohops.com:9999/', | ||
22 | - // service: 'http://service-test3.yohops.com:9999/', | ||
23 | - // // | ||
24 | - api: 'http://api.yoho.cn/', | ||
25 | - service: 'http://service.yoho.cn/', | 20 | + // test2 |
21 | + singleApi: 'http://192.168.102.27:8092/brower', | ||
22 | + api: 'http://api-test2.yohops.com:9999/', | ||
23 | + service: 'http://service-test2.yohops.com:9999/', | ||
24 | + | ||
25 | + //api: 'http://api.yoho.cn/', | ||
26 | + //service: 'http://service.yoho.cn/', | ||
26 | 27 | ||
27 | //api: 'http://dev-api.yohops.com:9999/', | 28 | //api: 'http://dev-api.yohops.com:9999/', |
28 | //service: 'http://dev-service.yohops.com:9999/', | 29 | //service: 'http://dev-service.yohops.com:9999/', |
29 | - | ||
30 | search: 'http://192.168.102.216:8080/yohosearch/' | 30 | search: 'http://192.168.102.216:8080/yohosearch/' |
31 | }, | 31 | }, |
32 | subDomains: { | 32 | subDomains: { |
@@ -24,8 +24,8 @@ var Dialog = require('../common/dialog').Dialog; | @@ -24,8 +24,8 @@ var Dialog = require('../common/dialog').Dialog; | ||
24 | 24 | ||
25 | var $main = $('.main'), | 25 | var $main = $('.main'), |
26 | id = $main.data('id'), | 26 | id = $main.data('id'), |
27 | - shopId = $main.data('shop'), | ||
28 | - brandId = $('#brand-favour').data('id'), | 27 | + shopId = parseInt($main.data('shop')), |
28 | + brandId = parseInt($('#brand-favour').data('id')), | ||
29 | md5 = $main.data('md5'), | 29 | md5 = $main.data('md5'), |
30 | skn = $main.data('skn'), | 30 | skn = $main.data('skn'), |
31 | deposit = $main.data('deposit') === 'Y', | 31 | deposit = $main.data('deposit') === 'Y', |
@@ -523,6 +523,10 @@ bindEvent.add(function() { | @@ -523,6 +523,10 @@ bindEvent.add(function() { | ||
523 | return; | 523 | return; |
524 | } | 524 | } |
525 | 525 | ||
526 | + if (!getUid()) { | ||
527 | + return window.jumpUrl(window.signinUrl()); | ||
528 | + } | ||
529 | + | ||
526 | var opt = { //eslint-disable-line | 530 | var opt = { //eslint-disable-line |
527 | className: 'notify-goods-wrapper', | 531 | className: 'notify-goods-wrapper', |
528 | closeIcon: true, | 532 | closeIcon: true, |
@@ -168,8 +168,6 @@ | @@ -168,8 +168,6 @@ | ||
168 | font-size: 13px; | 168 | font-size: 13px; |
169 | line-height: 20px; | 169 | line-height: 20px; |
170 | padding-top: 15px; | 170 | padding-top: 15px; |
171 | - padding-bottom: 15px; | ||
172 | - border-bottom: 1px solid #eaeceb; | ||
173 | } | 171 | } |
174 | 172 | ||
175 | .brand-name { | 173 | .brand-name { |
@@ -181,6 +179,7 @@ | @@ -181,6 +179,7 @@ | ||
181 | color: black; | 179 | color: black; |
182 | font-size: 13px; | 180 | font-size: 13px; |
183 | letter-spacing: 5px; | 181 | letter-spacing: 5px; |
182 | + line-height: 20px; | ||
184 | } | 183 | } |
185 | 184 | ||
186 | .market-price { | 185 | .market-price { |
@@ -197,6 +196,8 @@ | @@ -197,6 +196,8 @@ | ||
197 | font-size: 22px; | 196 | font-size: 22px; |
198 | line-height: 24px; | 197 | line-height: 24px; |
199 | font-weight: bold; | 198 | font-weight: bold; |
199 | + display: inline-block; | ||
200 | + vertical-align: middle; | ||
200 | } | 201 | } |
201 | 202 | ||
202 | .promotion { | 203 | .promotion { |
@@ -227,6 +228,17 @@ | @@ -227,6 +228,17 @@ | ||
227 | margin-left: 20px; | 228 | margin-left: 20px; |
228 | } | 229 | } |
229 | 230 | ||
231 | + .price-row { | ||
232 | + display: inline-block; | ||
233 | + height: 20px; | ||
234 | + margin-bottom: 16px; | ||
235 | + } | ||
236 | + | ||
237 | + .promotion-price { | ||
238 | + display: inline-block; | ||
239 | + height: 24px; | ||
240 | + } | ||
241 | + | ||
230 | .vip-price { | 242 | .vip-price { |
231 | line-height: 14px; | 243 | line-height: 14px; |
232 | color: #707070; | 244 | color: #707070; |
@@ -310,7 +322,7 @@ | @@ -310,7 +322,7 @@ | ||
310 | } | 322 | } |
311 | 323 | ||
312 | .activity-wrapper { | 324 | .activity-wrapper { |
313 | - margin-top: 22px; | 325 | + margin-top: 16px; |
314 | position: relative; | 326 | position: relative; |
315 | width: 100%; | 327 | width: 100%; |
316 | 328 | ||
@@ -545,7 +557,8 @@ | @@ -545,7 +557,8 @@ | ||
545 | width: 100%; | 557 | width: 100%; |
546 | height: 2px; | 558 | height: 2px; |
547 | border-bottom: 1px solid #eaeceb; | 559 | border-bottom: 1px solid #eaeceb; |
548 | - margin-bottom: 22px; | 560 | + margin-top: 20px; |
561 | + margin-bottom: 20px; | ||
549 | } | 562 | } |
550 | 563 | ||
551 | .chose-count .title { | 564 | .chose-count .title { |
@@ -2279,6 +2292,7 @@ | @@ -2279,6 +2292,7 @@ | ||
2279 | width: 560px; | 2292 | width: 560px; |
2280 | height: 560px; | 2293 | height: 560px; |
2281 | border: 2px solid #b0b0b0; | 2294 | border: 2px solid #b0b0b0; |
2295 | + background: white; | ||
2282 | display: block; | 2296 | display: block; |
2283 | position: absolute; | 2297 | position: absolute; |
2284 | overflow: hidden; | 2298 | overflow: hidden; |
-
Please register or login to post a comment