angular.module('push') .controller('activityCompanyListContentCtrl', function ($scope, $stateParams, ActivityService) { /* $scope.setStatusBar(1);*/ $scope.showInterestIcon = true; $scope.goInterest = function () { $scope.showInterestIcon = false; }; $scope.removeInterest = function () { $scope.showInterestIcon = true; }; var companyid = $stateParams.companyid; // 获取参与企业详细信息 var getCompanyInfo = function () { $scope.showLoadingToast(); ActivityService.getCompanyInfo(companyid).then(function (response) { // console.log(response); if (angular.isDefined(response.company) && response.company.length > 0) { $scope.company = response.company[0]; } $scope.product = response.company_product_lk; $scope.techrequirement = response.company_techrequirement_lk; $scope.hideLoadingToast(); }, function () { $scope.hideLoadingToast(); }) }; getCompanyInfo(); });