From f993fa87ff6ec497cfd49dfe757a5b4302bf286c Mon Sep 17 00:00:00 2001 From: guange <8863824@gmail.com> Date: Tue, 7 Jun 2016 17:18:28 +0800 Subject: [PATCH] base --- public/javascripts/wechat/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/javascripts/wechat/app.js b/public/javascripts/wechat/app.js index 91dc41015..5dc1e90fd 100644 --- a/public/javascripts/wechat/app.js +++ b/public/javascripts/wechat/app.js @@ -107,7 +107,7 @@ app.controller('ActivityController',function($anchorScroll, $location,$scope, $h rms.save("activities", $scope.activities); - rms.save("yoffset", $document.body.scrollHeight); + $scope.has_more = (response.data.count + response.data.page * 10) < response.data.all_count; @@ -135,7 +135,7 @@ app.controller('ActivityController',function($anchorScroll, $location,$scope, $h //跳到详情页 $scope.goDetail = function(type, act_id,id){ - rms.save("yoffset",'act_'+id); + rms.save("yoffset", $document.body.scrollHeight); $location.path('/'+type+'/'+act_id); }