app.controller('webAd4Controller', [ '$scope', '$http', '$timeout', 'uiGridConstants', '$templateCache', "$cookieStore", function($scope, $http, $timeout, uiGridConstants, $templateCache, $cookieStore) { //涓€浜屼笁鍙峰箍鍛婁綅淇℃伅鍔犺浇 $scope.ad4Manage_List = new Array(); $scope.getAdManageDate = function(){ //娣诲姞澶勭悊閫昏緫 var getConfig = { url: Common.webRoot() + '/epasp/website/webgl/admanage/epaspwebsitewebgladmanagecontroller/getEpaspWebsiteWebglAdmanageList', method: 'POST', showTips: false, success: function(response){ var data = response.data; //鍥涘彿骞垮憡浣嶆帶鍒 if(data.ad4Manage_List){ $scope.ad4Manage_List = data.ad4Manage_List; } $timeout(function(){ loadAd4Style(); },500) }, error: function(response){ throw new Error('璇锋眰[' + getConfig.url + ']鍑洪敊,[' + response + ']') } }; Common.send($scope, $http, getConfig); } $scope.getAdManageDate(); //鐐瑰嚮澶栭儴閾炬帴 $scope.openOutUrl = function(url){ var url = 'http://' + url; window.open(url, "_blank"); } } ]);