Showing
6 changed files
with
13 additions
and
10 deletions
@@ -282,7 +282,8 @@ const helpers = { | @@ -282,7 +282,8 @@ const helpers = { | ||
282 | }); | 282 | }); |
283 | 283 | ||
284 | _.forEach(s.sub, ss => { | 284 | _.forEach(s.sub, ss => { |
285 | - if ((q.misort && q.misort === ss.categoryId) || (q.sort === ss.relationParameter.sort)) { | 285 | + if ((q.misort && q.misort === ss.categoryId) || |
286 | + (ss.relationParameter && q.sort === ss.relationParameter.sort)) { | ||
286 | ss.checked = true; | 287 | ss.checked = true; |
287 | s.checked = true; | 288 | s.checked = true; |
288 | } | 289 | } |
@@ -41,7 +41,7 @@ const getProductBaseAsync = (productId, uid, skn) => { | @@ -41,7 +41,7 @@ const getProductBaseAsync = (productId, uid, skn) => { | ||
41 | * @return { Object } 收藏状态 | 41 | * @return { Object } 收藏状态 |
42 | */ | 42 | */ |
43 | const getUserIsFav = (uid, productId) => { | 43 | const getUserIsFav = (uid, productId) => { |
44 | - return SingleAPI.get('', { | 44 | + return SingleAPI.get('/favorite', { |
45 | method: 'app.favorite.isFavoriteNew', | 45 | method: 'app.favorite.isFavoriteNew', |
46 | id: productId, | 46 | id: productId, |
47 | uid: uid, | 47 | uid: uid, |
@@ -29,12 +29,12 @@ function _paramHanlde(obj) { | @@ -29,12 +29,12 @@ function _paramHanlde(obj) { | ||
29 | } | 29 | } |
30 | } | 30 | } |
31 | 31 | ||
32 | - if (obj.standard) { | ||
33 | - let standards = obj.standard.split(','); | ||
34 | - | ||
35 | - obj.standard_id = standards[0]; | ||
36 | - obj.standard_value_id = standards[1]; | ||
37 | - } | 32 | + // if (obj.standard) { |
33 | + // let standards = obj.standard.split(','); | ||
34 | + // | ||
35 | + // obj.standard_id = standards[0]; | ||
36 | + // obj.standard_value_id = standards[1]; | ||
37 | + // } | ||
38 | 38 | ||
39 | let _gender; | 39 | let _gender; |
40 | 40 |
@@ -6,7 +6,8 @@ | @@ -6,7 +6,8 @@ | ||
6 | {{# navbars}} | 6 | {{# navbars}} |
7 | <li class="nav-item{{#if cur}} cur{{/if}}"> | 7 | <li class="nav-item{{#if cur}} cur{{/if}}"> |
8 | <a href="{{link}}"{{#if isNewPage}} target="_blank"{{/if}}> | 8 | <a href="{{link}}"{{#if isNewPage}} target="_blank"{{/if}}> |
9 | - {{en}}{{cn}} | 9 | + <span class="nav-en">{{en}}</span> |
10 | + <span class="nav-cn">{{cn}}</span> | ||
10 | </a> | 11 | </a> |
11 | </li> | 12 | </li> |
12 | {{/ navbars}} | 13 | {{/ navbars}} |
-
Please register or login to post a comment