Showing
3 changed files
with
7 additions
and
8 deletions
@@ -20,8 +20,8 @@ const favorite = (req, res) => { | @@ -20,8 +20,8 @@ const favorite = (req, res) => { | ||
20 | title: '我的收藏', | 20 | title: '我的收藏', |
21 | pageFooter: true, | 21 | pageFooter: true, |
22 | favorite: { | 22 | favorite: { |
23 | - productUrl: 'm.yohobuy.com', | ||
24 | - brandUrl: 'm.yohobuy.com' | 23 | + productUrl: '//m.yohobuy.com/product/new', |
24 | + brandUrl: '//m.yohobuy.com/product/new' | ||
25 | } | 25 | } |
26 | }); | 26 | }); |
27 | }; | 27 | }; |
@@ -32,7 +32,6 @@ let favProduct = (req, res, next) => { | @@ -32,7 +32,6 @@ let favProduct = (req, res, next) => { | ||
32 | let limit = 10; | 32 | let limit = 10; |
33 | 33 | ||
34 | favoriteModel.favProduct(uid, page, limit).then((result) => { | 34 | favoriteModel.favProduct(uid, page, limit).then((result) => { |
35 | - | ||
36 | if (typeof(result.total) === 'undefined' && typeof(result.more) === 'undefined') { | 35 | if (typeof(result.total) === 'undefined' && typeof(result.more) === 'undefined') { |
37 | res.render('favorite/favorite-product', { | 36 | res.render('favorite/favorite-product', { |
38 | layout: false, | 37 | layout: false, |
@@ -328,7 +328,7 @@ const getGrade = (param) => { | @@ -328,7 +328,7 @@ const getGrade = (param) => { | ||
328 | obj = _.assign(obj, { | 328 | obj = _.assign(obj, { |
329 | costOfThisYear: result[0].data.current_year_cost, | 329 | costOfThisYear: result[0].data.current_year_cost, |
330 | sumCost: result[0].data.current_total_cost, | 330 | sumCost: result[0].data.current_total_cost, |
331 | - allUrl: helpers.urlFormat('/home/preferential'), | 331 | + allUrl: helpers.urlFormat('/home/privilege'), |
332 | costGap: upg | 332 | costGap: upg |
333 | }); | 333 | }); |
334 | 334 | ||
@@ -369,12 +369,12 @@ const getGrade = (param) => { | @@ -369,12 +369,12 @@ const getGrade = (param) => { | ||
369 | * @param params | 369 | * @param params |
370 | */ | 370 | */ |
371 | 371 | ||
372 | -const getPreferential = (uid, channel) => { | 372 | +const getPreferential = (params) => { |
373 | 373 | ||
374 | return api.get('', { | 374 | return api.get('', { |
375 | method: 'app.passport.getPrivilege', | 375 | method: 'app.passport.getPrivilege', |
376 | - uid: uid, | ||
377 | - channel: channel || 1 | 376 | + uid: params.uid, |
377 | + channel: params.channel || 1 | ||
378 | }, { | 378 | }, { |
379 | code: 200 | 379 | code: 200 |
380 | }).then((result) => { | 380 | }).then((result) => { |
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | <h2>{{title}}</h2> | 8 | <h2>{{title}}</h2> |
9 | <div class="fav-price"> | 9 | <div class="fav-price"> |
10 | {{# discountPrice}} | 10 | {{# discountPrice}} |
11 | - <span class="new-price">{{.}}</span> | 11 | + <span class="new-price">¥{{.}}</span> |
12 | {{/ discountPrice}} | 12 | {{/ discountPrice}} |
13 | <span class="fav-price {{# discountPrice}}price-underline{{/ discountPrice}}">{{price}}</span> | 13 | <span class="fav-price {{# discountPrice}}price-underline{{/ discountPrice}}">{{price}}</span> |
14 | </div> | 14 | </div> |
-
Please register or login to post a comment