Showing
3 changed files
with
9 additions
and
4 deletions
@@ -59,6 +59,11 @@ exports.fetchMore = function(req, res, next) { | @@ -59,6 +59,11 @@ exports.fetchMore = function(req, res, next) { | ||
59 | res.render('find-goods/item-list', { | 59 | res.render('find-goods/item-list', { |
60 | content: result.data, | 60 | content: result.data, |
61 | layout: false, | 61 | layout: false, |
62 | + // eslint-disable-next-line no-shadow | ||
63 | + }, null, function(_, reshtml) { | ||
64 | + res.jsonp({ | ||
65 | + data: reshtml | ||
66 | + }); | ||
62 | }); | 67 | }); |
63 | }) | 68 | }) |
64 | .catch(next); | 69 | .catch(next); |
1 | { | 1 | { |
2 | "name": "yohobuywap-node-activity", | 2 | "name": "yohobuywap-node-activity", |
3 | - "version": "6.9.13-beta-4", | 3 | + "version": "6.9.13-beta-5", |
4 | "private": true, | 4 | "private": true, |
5 | "description": "A New Yohobuy Project With Express", | 5 | "description": "A New Yohobuy Project With Express", |
6 | "repository": { | 6 | "repository": { |
@@ -27,7 +27,7 @@ function onPullUp() { | @@ -27,7 +27,7 @@ function onPullUp() { | ||
27 | ) { | 27 | ) { |
28 | isLoading = true; | 28 | isLoading = true; |
29 | $.ajax({ | 29 | $.ajax({ |
30 | - url: '//m.yohobuy.com/activity/find/goods/more', | 30 | + url: '//m.yohobuy.com:6001/activity/find/goods/more', |
31 | type: 'get', | 31 | type: 'get', |
32 | dataType: 'jsonp', | 32 | dataType: 'jsonp', |
33 | data: { | 33 | data: { |
@@ -35,11 +35,11 @@ function onPullUp() { | @@ -35,11 +35,11 @@ function onPullUp() { | ||
35 | }, | 35 | }, |
36 | success: function(res) { | 36 | success: function(res) { |
37 | isLoading = false; | 37 | isLoading = false; |
38 | - if (res) { | 38 | + if (res.data) { |
39 | currentPage++; | 39 | currentPage++; |
40 | $(_this) | 40 | $(_this) |
41 | .find('.find-goods-wrapper') | 41 | .find('.find-goods-wrapper') |
42 | - .append(res); | 42 | + .append(res.data); |
43 | } else { | 43 | } else { |
44 | noMore = true; | 44 | noMore = true; |
45 | } | 45 | } |
-
Please register or login to post a comment