diff --git a/public/assets/wechat/activities.html b/public/assets/wechat/activities.html index 3ea46af8f..1642eb159 100644 --- a/public/assets/wechat/activities.html +++ b/public/assets/wechat/activities.html @@ -219,7 +219,9 @@ -
更多
+
+
更多
+
diff --git a/public/javascripts/wechat/app.js b/public/javascripts/wechat/app.js index baa5a2731..e68563c3d 100644 --- a/public/javascripts/wechat/app.js +++ b/public/javascripts/wechat/app.js @@ -1,6 +1,6 @@ var app = angular.module('wechat', ['ngRoute','ngCookies']); var apiUrl = 'http://wechat.trustie.net/api/v1/'; -var debug = true; //调试标志,如果在本地请置为true +var debug = false; //调试标志,如果在本地请置为true if(debug===true){ apiUrl = 'http://localhost:3000/api/v1/'; @@ -68,7 +68,7 @@ app.controller('ActivityController',function($scope, $http, auth, rms, common){ console.log("ActivityController load"); $scope.activities = rms.get("activities") || []; - $scope.page = 1; + $scope.page = 0; var loadActData = function(page){ $scope.page = page; @@ -78,6 +78,8 @@ app.controller('ActivityController',function($scope, $http, auth, rms, common){ data: {openid: auth.openid(), page: page} }).then(function successCallback(response) { $scope.activities = $scope.activities.concat(response.data.data); + $scope.all_count = response.data.all_count; + $scope.count = response.data.count; rms.save('activities', $scope.activities); }, function errorCallback(response) { });