angular.module('push') .controller('noticeHelperCtrl', function ($scope, $stateParams) { $scope.companylist = []; $scope.datalist = $stateParams.list; angular.forEach($scope.datalist, function (val, index) { $scope.companylist[index] = val.resNameSet + ","; $scope.companylist[index] = $scope.companylist[index].substring(0, $scope.companylist[index].length - 1); if ($scope.companylist[index].length > 40) { $scope.companylist[index] = $scope.companylist[index].substring(0, 39) + "..."; } }) $scope.hideLoadingToast(); //接收人信息 $scope.goRecieveInfo = function (smsList) { $scope.go("receiveInfo", {smsList: smsList}); } //新建短信通知 $scope.newMessage = function () { $scope.go('choiceResource'); } $scope.gobackaccount = function () { $scope.go('tab.account'); } });