Showing
1 changed file
with
6 additions
and
7 deletions
@@ -7,7 +7,6 @@ | @@ -7,7 +7,6 @@ | ||
7 | 7 | ||
8 | 'use strict'; | 8 | 'use strict'; |
9 | 9 | ||
10 | -// const logger = global.yoho.logger; | ||
11 | const favApi = global.yoho.FavAPI; | 10 | const favApi = global.yoho.FavAPI; |
12 | const api = global.yoho.API; | 11 | const api = global.yoho.API; |
13 | const helpers = global.yoho.helpers; | 12 | const helpers = global.yoho.helpers; |
@@ -19,7 +18,7 @@ const camelCase = global.yoho.camelCase; | @@ -19,7 +18,7 @@ const camelCase = global.yoho.camelCase; | ||
19 | const _userData = (params) => { | 18 | const _userData = (params) => { |
20 | return api.get('', { | 19 | return api.get('', { |
21 | method: 'app.passport.profile', | 20 | method: 'app.passport.profile', |
22 | - uid: params.uid, | 21 | + uid: params.uid |
23 | }, {code: 200}); | 22 | }, {code: 200}); |
24 | }; | 23 | }; |
25 | 24 | ||
@@ -28,7 +27,7 @@ const _userData = (params) => { | @@ -28,7 +27,7 @@ const _userData = (params) => { | ||
28 | */ | 27 | */ |
29 | const _noticeData = () => { | 28 | const _noticeData = () => { |
30 | return api.get('', { | 29 | return api.get('', { |
31 | - method: 'app.resources.getNotices', | 30 | + method: 'app.resources.getNotices' |
32 | }, {code: 200}); | 31 | }, {code: 200}); |
33 | }; | 32 | }; |
34 | 33 | ||
@@ -40,7 +39,7 @@ const _noticeData = () => { | @@ -40,7 +39,7 @@ const _noticeData = () => { | ||
40 | const _favoriteData = (params) => { | 39 | const _favoriteData = (params) => { |
41 | return favApi.get('brower', { | 40 | return favApi.get('brower', { |
42 | method: 'app.favorite.getFavoriteCount', | 41 | method: 'app.favorite.getFavoriteCount', |
43 | - uid: params.uid || '8039759' | 42 | + uid: params.uid |
44 | }, {code: 200}); | 43 | }, {code: 200}); |
45 | }; | 44 | }; |
46 | 45 | ||
@@ -51,7 +50,7 @@ const _infoNum = (params) => { | @@ -51,7 +50,7 @@ const _infoNum = (params) => { | ||
51 | return api.get('', { | 50 | return api.get('', { |
52 | method: 'app.home.getInfoNum', | 51 | method: 'app.home.getInfoNum', |
53 | uid: params.uid, | 52 | uid: params.uid, |
54 | - udid: params.udid, | 53 | + udid: params.udid |
55 | }, {code: 200}); | 54 | }, {code: 200}); |
56 | }; | 55 | }; |
57 | 56 | ||
@@ -69,7 +68,7 @@ const index = (params) => { | @@ -69,7 +68,7 @@ const index = (params) => { | ||
69 | refundExchangeNum: 0, | 68 | refundExchangeNum: 0, |
70 | commentTotal: 0, | 69 | commentTotal: 0, |
71 | cartUrl: helpers.urlFormat('/cart/index/index'), | 70 | cartUrl: helpers.urlFormat('/cart/index/index'), |
72 | - signinUrl: helpers.urlFormat('/signin.html', {refer: helpers.urlFormat('/home')}), | 71 | + signinUrl: helpers.urlFormat('/signin.html', {refer: helpers.urlFormat('/home')}) |
73 | }; | 72 | }; |
74 | 73 | ||
75 | return api.all([ | 74 | return api.all([ |
@@ -94,7 +93,7 @@ const index = (params) => { | @@ -94,7 +93,7 @@ const index = (params) => { | ||
94 | 93 | ||
95 | if (result[2] && result[2].data) { | 94 | if (result[2] && result[2].data) { |
96 | Object.assign(finalResult, { | 95 | Object.assign(finalResult, { |
97 | - productFavoriteTotal: result[2].data.product_favorite_total, | 96 | + productFavoriteTotal: result[2].data.product_favorite_total |
98 | }); | 97 | }); |
99 | } | 98 | } |
100 | 99 |
-
Please register or login to post a comment