angular.module('push') .controller('activityCompanyArrangeCtrl', function ($scope, $stateParams, ActivityService) { //切换到对应页面 var activity = ['success', 'fail']; $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; // 企业获取活动安排信息 var getComArrangeList = function () { $scope.showLoadingToast(); ActivityService.getComArrangeList(activityid).then(function (response) { // console.log(response); $scope.companyinfo = response.companyinfo; $scope.company = response.company[0]; $scope.personlist = response.personList; $scope.productlist = response.company_product_lk; $scope.techreqlist = response.company_techrequirement_lk; $scope.hideLoadingToast(); }, function () { $scope.hideLoadingToast(); }); }; getComArrangeList(); });