angular.module('push') .controller('activitySignMangerCtrl', function ($scope, ActivityService, $stateParams, UtilService) { /* $scope.setStatusBar(1);*/ //切换到对应页面 var activity = ['successSign', 'failSign']; $scope.act = activity[0]; $scope.changeAct = function (num) { //获取配对成功/失败列表(访客列表暂时不做)0配对成功,1未配对 if (num == 0) { $scope.act = activity[num]; } else if (num == 1) { $scope.act = activity[num]; } }; var activityid = $stateParams.activityid; $scope.personlist1 = [];//已签到 $scope.personlist2 = [];//未签到 // 获取签到管理信息 var getCheckinManagerInfo = function () { $scope.showLoadingToast(); ActivityService.getCheckinManagerInfo(activityid).then(function (response) { // ischeckin 0未签到,1已签到 type 1正常人员 2临时加入人员 // console.log(response); if (UtilService.isDefined(response) && response.length > 0) { angular.forEach(response, function (value, index) { if (value.ischeckin == 0) { $scope.personlist2.push(value); } else { $scope.personlist1.push(value); } }) } $scope.hideLoadingToast(); }, function () { $scope.hideLoadingToast(); }) }; getCheckinManagerInfo(); //拨打电话 $scope.openTel = function (tel) { window.open("tel:" + tel); }; });