Authored by lea guo

发现好货

... ... @@ -59,6 +59,11 @@ exports.fetchMore = function(req, res, next) {
res.render('find-goods/item-list', {
content: result.data,
layout: false,
// eslint-disable-next-line no-shadow
}, null, function(_, reshtml) {
res.jsonp({
data: reshtml
});
});
})
.catch(next);
... ...
{
"name": "yohobuywap-node-activity",
"version": "6.9.13-beta-4",
"version": "6.9.13-beta-5",
"private": true,
"description": "A New Yohobuy Project With Express",
"repository": {
... ...
... ... @@ -27,7 +27,7 @@ function onPullUp() {
) {
isLoading = true;
$.ajax({
url: '//m.yohobuy.com/activity/find/goods/more',
url: '//m.yohobuy.com:6001/activity/find/goods/more',
type: 'get',
dataType: 'jsonp',
data: {
... ... @@ -35,11 +35,11 @@ function onPullUp() {
},
success: function(res) {
isLoading = false;
if (res) {
if (res.data) {
currentPage++;
$(_this)
.find('.find-goods-wrapper')
.append(res);
.append(res.data);
} else {
noMore = true;
}
... ...