Merge branch 'weixin_guange' into develop

This commit is contained in:
yuanke 2016-09-02 09:48:35 +08:00
commit 5cda2292d0
2 changed files with 3 additions and 1 deletions

View File

@ -23,10 +23,11 @@ app.controller('ClassController', ['$scope', 'config','$http', 'auth','$location
}).then(function successCallback(response) {
console.log(response.data);
if(response.data.status == 0){
vm.class_activities_page = response.data.page;
vm.course_activities_page = response.data.page;
if(response.data.page > 0)
{
vm.course_activities = vm.course_activities.concat(response.data.data);
vm.course_has_more = (response.data.count + response.data.page * 10) < response.data.all_count;
}
else{
vm.course_activities = response.data.data;

View File

@ -63,6 +63,7 @@ app.controller('ProjectController', ['$scope', 'config','$http','$timeout', 'aut
if(response.data.page > 0)
{
vm.project_activities = vm.project_activities.concat(response.data.data);
vm.project_has_more = (response.data.count + response.data.page * 10) < response.data.all_count;
}
else{
vm.project_activities = response.data.data;