Merge branch 'develop' of git.yoho.cn:fe/yohoblk-wap into develop
Showing
3 changed files
with
3 additions
and
3 deletions
@@ -55,7 +55,7 @@ module.exports = { | @@ -55,7 +55,7 @@ module.exports = { | ||
55 | /* 收藏店铺 */ | 55 | /* 收藏店铺 */ |
56 | collectShop: (req, res, next) => { | 56 | collectShop: (req, res, next) => { |
57 | if (!req.user.uid) { | 57 | if (!req.user.uid) { |
58 | - res.json({ | 58 | + return res.json({ |
59 | code: 403, | 59 | code: 403, |
60 | message: '未登录' | 60 | message: '未登录' |
61 | }); | 61 | }); |
@@ -32,7 +32,7 @@ | @@ -32,7 +32,7 @@ | ||
32 | // query | 32 | // query |
33 | url: '/search.json', | 33 | url: '/search.json', |
34 | order: '', | 34 | order: '', |
35 | - query: qs.query, | 35 | + query: decodeURIComponent(qs.query), |
36 | page: 0, // 未搜索 page=0; 全部加载完 page = totalPage; 无数据: page !=0 && productList.length=0 | 36 | page: 0, // 未搜索 page=0; 全部加载完 page = totalPage; 无数据: page !=0 && productList.length=0 |
37 | totalPage: null, | 37 | totalPage: null, |
38 | 38 |
-
Please register or login to post a comment