angular.module('push') .controller('activityFeedBackListContentCtrl', function ($scope, $stateParams, ActivityService, $ionicActionSheet, UserService) { /* $scope.setStatusBar(1);*/ var folupid = $stateParams.folupid; $scope.userid = UserService.id; $scope.roleid = UserService.role[0]; var getFollowupDetail = function () { $scope.showLoadingToast(); ActivityService.getFollowupDetail(folupid,1).then(function (response) { // console.log(response); $scope.followup = response; $scope.hideLoadingToast(); }, function () { $scope.hideLoadingToast(); }) }; getFollowupDetail(); $scope.moreActivitySchedule = function () { $ionicActionSheet.show({ buttons: [ {text: '编辑需求详情'}, {text: '添加状态'}, {text: '删除需求详情'} ], cancelText: '取消', buttonClicked: function (index) { if (index == 0) { } else if (index == 1) { } else if (index == 2) { } return true; } }); }; // 添加反馈状态 $scope.addState = function () { $scope.go("addState",{folupid: $scope.followup.id}); }; });