app.controller('chnlnewsController', ['$scope','$http','$timeout','uiGridConstants','$templateCache',"$cookieStore", function($scope, $http, $timeout, uiGridConstants, $templateCache, $cookieStore) { $scope.myHeadLine = {}; $scope.HTMLDecode = function (text) { var temp = document.createElement("div"); temp.innerHTML = text; var output = temp.innerText || temp.textContent; temp = null; var re1 = new RegExp("<.+?>","g");//鍖归厤html鏍囩鐨勬鍒欒〃杈惧紡锛?g"鏄悳绱㈠尮閰嶅涓鍚堢殑鍐呭 var msg = output.replace(re1,'');//鎵ц鏇挎崲鎴愮┖瀛楃 return msg; } //鍒锋柊 $scope.refreshHytz = function(){ $scope.getData(); }; //鍒ゆ柇鏄惁鏄墜鏈鸿闂 $scope.isPhone = function(){ var userAgentInfo=navigator.userAgent; var Agents =new Array("Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"); var flag=false; for(var i=0;i-1) { flag=true; break; } } return flag; } $scope.detail = function(XH,XTTZ_XH){ var xh = XH; if(XTTZ_XH){ xh = XTTZ_XH; } //鍒ゆ柇鏄惁鏄墜鏈鸿闂 if(false){ // var url = Common.webRoot() + '/epasp/website/webgl/webglController/phoneView?xh=' + xh; // url = 'http://192.168.1.171:8080/' + url; // top.location.href = url; // window.open(url, "_blank"); }else{ var url = Common.webRoot() + '/epasp/website/webgl/webglController/view?xh=' + xh; window.open(url, "_blank"); } } $scope.detailNdfzbg = function(XH,XTTZ_XH){ var url = Common.webRoot() + '/epasp/website/webgl/webglController/ndfzbgDetail/' + XH; if(XTTZ_XH){ url = Common.webRoot() + '/epasp/website/webgl/webglController/ndfzbgDetail/' + XTTZ_XH; } window.open(url, "_blank"); } $scope.detailList = function(LX){ var url = Common.webRoot() + '/epasp/website/webgl/webglController/chnlnewsList/' + LX; window.open(url, "_blank"); } $scope.detailHeadLine = function(){ var url = Common.webRoot() + '/epasp/website/webgl/webglController/view?xh=' + $scope.myHeadLine.XH; window.open(url, "_blank"); } $scope.pxDetail = function(XH){ var url = Common.webRoot() + '/epasp/website/webgl/webglController/view?lmlx=PX_ZSTZ&xh=' + XH; window.open(url, "_blank"); } $scope.hyDetail = function(XH){ var url = Common.webRoot() + '/epasp/website/webgl/webglController/view?lmlx=CONFERENCE_TZ&xh=' + XH; window.open(url, "_blank"); } //杩涘叆鍗忎細 $scope.intoAssociation = function(LX){ var url = Common.webRoot() + '/epasp/website/webgl/webglController/intoAssociation/' + LX; window.open(url, "_blank"); } //鏈嶅姟涓績 $scope.intoServiceCenter = function(LX){ var url = Common.webRoot() + '/epasp/website/webgl/webglController/intoServiceCenter/' + LX; if(LX == 'GJB'){ url = 'http://www.ciepec.org/index.php/News/index/pid/14.html'; } window.open(url, "_blank"); } //杩涘叆璁よ瘉涓績瀛愮綉绔欒幏璇佸叕甯 $scope.intoServiceCenterHzgb = function(LX){ var url = Common.webRoot() + '/epasp/website/webgl/webglController/intoServiceCenterHzgb/' + LX; window.open(url, "_blank"); } //鏂伴椈鏉垮潡 $scope.getXwbkNews = function(){ Common.send($scope, $http, { method : "POST", url : Common.webRoot() + "/epasp/website/webgl/webglController/queryXwbkNews", showTips : false, data:{ pageSize:8, pageNum:1 }, success : function(reponse) { //澶存柊闂 $scope.myHeadLine = reponse.data.headLineMap; if($scope.myHeadLine && $scope.myHeadLine.BT){ var headBt = $scope.myHeadLine.BT; if(headBt!=null && headBt.length>20){ headBt = headBt.substring(0,20)+"..."; } $("#myHeadLineBt").html(headBt); if($scope.myHeadLine.TZNR){ var headLineContent = $scope.HTMLDecode($scope.myHeadLine.TZNR); if(headLineContent!=null && headLineContent.length>100){ headLineContent = headLineContent.substring(0,100)+"..."; } $("#myHeadLineTznr").html(headLineContent); } } //鏂伴椈鏉垮潡 $scope.xwbk_tpxw = reponse.data.xwbk_tpxw; //鍥剧墖灞曠ず if($scope.xwbk_tpxw.length > 0){ for(var i=1; i<=5; i++){ if($scope.xwbk_tpxw[i-1]){ $("#tpxwImgId_"+i).attr('src',"/epa/business/fjgl/commonfjylcontroller/image/"+$scope.xwbk_tpxw[i-1].WJID); $("#tpxwImgId_"+i).attr('v1', $scope.xwbk_tpxw[i-1].XH); $("#tpxwImgId_"+i).attr('v2', $scope.xwbk_tpxw[i-1].XTTZ_XH); var title = $scope.xwbk_tpxw[i-1].BT; if($scope.xwbk_tpxw[i-1].BT.length>10){ title = title.substring(0,10)+"..."; } $("#tpxwImgIdTitle_"+i).html(title); } } } $scope.xwbk_hjyw = reponse.data.xwbk_hjyw; $scope.xwbk_zhxdt = reponse.data.xwbk_zhxdt; $scope.xwbk_fzjgdt = reponse.data.xwbk_fzjgdt; $scope.xwbk_dfxhdt = reponse.data.xwbk_dfxhdt; //鍗忎細涓氬姟鍔ㄦ€ $scope.xhywdt_rzdt = reponse.data.xhywdt_rzdt; $scope.xhywdt_xypj = reponse.data.xhywdt_xypj; $scope.xhywdt_syjssfgc = reponse.data.xhywdt_syjssfgc; // $scope.xhywdt_ttbz = reponse.data.xhywdt_ttbz; $scope.xhywdt_hybz = reponse.data.xhywdt_hybz; $scope.xhywdt_gjjl = reponse.data.xhywdt_gjjl; $scope.xhywdt_zhdt = reponse.data.xhywdt_zhdt; $scope.xhywdt_zchbgcs = reponse.data.xhywdt_zchbgcs; $scope.xhywdt_dctj = reponse.data.xhywdt_dctj; //琛屼笟淇℃伅鍙戝竷涓績 $scope.hyxx_ndfzbg = reponse.data.hyxx_ndfzbg; $scope.hyxx_scfxbg = reponse.data.hyxx_scfxbg; $scope.hyxx_jqzsbg = reponse.data.hyxx_jqzsbg; $scope.hyxx_cgzs = reponse.data.hyxx_cgzs; $scope.hyxx_hbcyxxtx = reponse.data.hyxx_hbcyxxtx; //鏀跨瓥鏍囧噯 $scope.zcbz_hjfg = reponse.data.zcbz_hjfg; $scope.zcbz_zcwj = reponse.data.zcbz_zcwj; $scope.zcbz_hybzgf = reponse.data.zcbz_hybzgf; $scope.zcbz_xhbz = reponse.data.zcbz_xhbz; //鍗忎細鏂囦欢銆佸叕绀哄叕鍛 $scope.myXhwjList = reponse.data.myXhwjList; $scope.myGsggList = reponse.data.myGsggList; //鐜繚浜у搧璁よ瘉鐩綍銆佺幆澧冩湇鍔¤璇佺洰褰曘€佺豢鑹蹭箣鏄熻璇佺洰褰 $scope.hbcprzml = reponse.data.hbcprzml; $scope.hjfwrzml = reponse.data.hjfwrzml; $scope.lszxrzml = reponse.data.lszxrzml; //浼佷笟瀹惰皥 -- 涓撳瑙嗙偣 $scope.qyjtList = reponse.data.qyjtList; $scope.zjsdList = reponse.data.zjsdList; $scope.hyxx_psyzw = reponse.data.hyxx_psyzw; $scope.hyxx_jszbyfz = reponse.data.hyxx_jszbyfz; $scope.hyxx_qqzlfx = reponse.data.hyxx_qqzlfx; $scope.hyxx_gjzdxjs = reponse.data.hyxx_gjzdxjs; }, error : function(err) { } }); }; $scope.getXwbkNews(); //浼氳閫氱煡 $scope.getHytz = function(){ Common.send($scope, $http, { method : "POST", url : Common.webRoot() + "/epasp/website/webgl/webglController/queryHytz", showTips : false, data:{ pageSize:7, pageNum:1, }, success : function(reponse) { $scope.myHYTZ = reponse.data.list; }, error : function(err) { } }); }; $scope.getHytz(); //浼氳鎶ュ悕 $scope.hyEnroll = function(XH,HYLX){ //涓€鑸殑浼氳闇€瑕佺櫥褰曟墠鍙互鎶ュ悕 if(HYLX == 'YB'){ //鍒ゆ柇鏄惁鍦ㄥ叾瀹冮〉闈㈢櫥褰 var postData = {}; $.ajax({ url : Common.webRoot() + "/epasp/website/webgl/webglController/isUserLogin", type : "POST", dataType : 'json', async : false, contentType : 'application/json', data : JSON.stringify(postData), success : function (result){ var data = result; if(data.model.FLAG){ $scope.ZH_FLAG = data.model.ZH_FLAG; if($scope.ZH_FLAG && $scope.ZH_FLAG != 'QY'){ Common.dialog({ type : 'confirm', content : '璇蜂互浼佷笟璐﹀彿鐧诲綍骞冲彴锛屾槸鍚﹂€€鍑哄綋鍓嶄釜浜鸿处鍙凤紝鐧诲綍浼佷笟璐﹀彿锛?, title : '鎻愮ず', callback: function () { $http({ method : "POST", url : Common.webRoot() + '/loginout', }).success(function(data, header, config, status) { $("#overLogin").addClass('dn'); $("#needLogin").removeClass('dn'); $scope.overLogin = 'FALSE'; }).error(function(data, header, config, status) { }); } }) }else{ var url = Common.webRoot()+'/epasp/conference/conferenceController/editBm/'+XH; window.open(url, "_blank"); } }else{ Common.dialog({ type : 'msg', content : "璇峰厛鐧诲綍锛?, style : 2 }); $("#userXtzh").focus(); $("#userXtzh").css("background-color","#FFFFCC"); } } }); }else if(HYLX == 'FHC'){ var url = Common.webRoot()+'/epasp/conference/conferenceController/editFhcBm/'+XH; window.open(url, "_blank"); }else if(HYLX == 'ZHC'){ var url = Common.webRoot()+'/epasp/conference/conferenceController/editBm/'+XH; window.open(url, "_blank"); } }; //鍩硅閫氱煡 $scope.getPxtz = function(){ Common.send($scope, $http, { method : "POST", url : Common.webRoot() + "/epasp/website/webgl/webglController/queryPxtz", showTips : false, data:{ pageSize:7, pageNum:1 }, success : function(reponse) { $scope.myPXTZ = reponse.data.list; }, error : function(err) { } }); }; $scope.getPxtz(); //鍩硅鎶ュ悕 $scope.pxEnroll = function(TZGG_XH,XH){ //鍒ゆ柇鏄惁鍦ㄥ叾瀹冮〉闈㈢櫥褰 var postData = { }; $.ajax({ url : Common.webRoot() + "/epasp/website/webgl/webglController/isUserLogin", type : "POST", dataType : 'json', async : false, contentType : 'application/json', data : JSON.stringify(postData), success : function (result){ var data = result; if(data.model){ if(data.model.FLAG){ $scope.ZH_FLAG = data.model.ZH_FLAG; if($scope.ZH_FLAG && $scope.ZH_FLAG != 'QY'){ Common.dialog({ type : 'confirm', content : '璇蜂互浼佷笟璐﹀彿鐧诲綍骞冲彴锛屾槸鍚﹂€€鍑哄綋鍓嶄釜浜鸿处鍙凤紝鐧诲綍浼佷笟璐﹀彿锛?, title : '鎻愮ず', callback: function () { $http({ method : "POST", url : Common.webRoot() + '/loginout', }).success(function(data, header, config, status) { $("#overLogin").addClass('dn'); $("#needLogin").removeClass('dn'); $scope.overLogin = 'FALSE'; }).error(function(data, header, config, status) { }); }, error: function () { return false } }) }else{ $scope.data = {}; $scope.data.TZGG_XH = TZGG_XH; $scope.data.PX_XH = XH; $.ajax({ url : Common.webRoot() + '/epasp/pxgl/bm/bmcontroller/checkClickBmRs', type : "POST", dataType : 'json', async : false, contentType : 'application/json', data : JSON.stringify($scope.data), success : function (response){ if (response.result) { var url = Common.webRoot()+'/epasp/pxgl/bm/bmcontroller/editBm/'+TZGG_XH; window.open(url, "_blank"); }else{ Common.dialog({ type : 'msg', style : 2, content : response.message }); } } }); } }else{ Common.dialog({ type : 'msg', content : "璇峰厛鐧诲綍锛?, style : 2 }); $("#userXtzh").focus(); $("#userXtzh").css("background-color","#FFFFCC"); } } } }); }; //杩涘叆浼佷笟淇$敤骞冲彴 $scope.goQyxyptCenter = function(){ var url = Common.webRoot() + '/CreditPlatform/'; window.open(url, "_blank"); } //鎻愮ず淇℃伅 $scope.openTip = function(LX){ var url = Common.webRoot()+ '/epasp/website/webgl/webglController/openTip/'+LX; Common.dialog({ type : 'open', width : '700px', height : '150px', title : '鎻愮ず', url : url, end : function() { } }); } //鍔炰簨澶у巺鐐瑰嚮浜嬩欢 $scope.bsdtClick = function(LX){ var postData = { }; $.ajax({ url : Common.webRoot() + "/epasp/website/webgl/webglController/isUserLogin", type : "POST", dataType : 'json', async : false, contentType : 'application/json', data : JSON.stringify(postData), success : function (result){ var data = result; if(data.model){ if(data.model.FLAG){ $scope.ZH_FLAG = data.model.ZH_FLAG; $scope.bsdtClickDetail(LX); }else{ $scope.openTip(LX); } } } }); }; //鍔炰簨澶у巺鐐瑰嚮浜嬩欢 $scope.bsdtClickDetail = function(LX){ if(LX == 'RHBL'||LX == 'ZHBM'||LX == 'XYPJSB'||LX == 'HYPXBM'||LX == 'SYJSSB'||LX == 'SFGCSB'||LX == 'ZDQYDC'||LX == 'QYBZGKPT'||LX == 'HBCPRZ'||LX == 'HBFWRZ'||LX == 'LSZXRZ'||LX == 'ZZDY'||LX == 'GGSQ'||LX == 'XYPJ'){ if($scope.ZH_FLAG && $scope.ZH_FLAG == 'QY'){ var url =Common.link("/index?flag="+LX); window.open(url, "_blank"); }else{ $scope.diaTip(); } }else if(LX == 'ZZTG'){//鏉傚織鎶曠 if($scope.ZH_FLAG && $scope.ZH_FLAG == 'AUTHOR'){ var url =Common.link("/index"); window.open(url, "_blank"); }else{ Common.dialog({ type : 'confirm', content : '璇蜂互涓汉璐﹀彿鐧诲綍骞冲彴锛屾槸鍚﹂€€鍑哄綋鍓嶄紒涓氳处鍙凤紝鐧诲綍涓汉璐﹀彿锛?, title : '鎻愮ず', callback: function () { $http({ method : "POST", url : Common.webRoot() + '/loginout', }).success(function(data, header, config, status) { $("#overLogin").addClass('dn'); $("#needLogin").removeClass('dn'); $scope.overLogin = 'FALSE'; }).error(function(data, header, config, status) { }); }, error: function () { return false } }) } } } $scope.diaTip = function(){ Common.dialog({ type : 'confirm', content : '璇蜂互浼佷笟璐﹀彿鐧诲綍骞冲彴锛屾槸鍚﹂€€鍑哄綋鍓嶄釜浜鸿处鍙凤紝鐧诲綍浼佷笟璐﹀彿锛?, title : '鎻愮ず', callback: function () { $http({ method : "POST", url : Common.webRoot() + '/loginout', }).success(function(data, header, config, status) { $("#overLogin").addClass('dn'); $("#needLogin").removeClass('dn'); $scope.overLogin = 'FALSE'; }).error(function(data, header, config, status) { }); }, error: function () { return false } }) } //鐞嗕簨銆佸父鍔$悊浜嬨€佸壇浼氶暱鍒楄〃 $scope.toMemberCenterList = function(LMLX){ var url = Common.webRoot()+'/epasp/website/webgl/webglController/memberCenterList/'+LMLX; window.open(url, "_blank"); } //鐐瑰嚮鍔炰簨澶у巺 $scope.clickBsdt = function(){ var postData = { }; $.ajax({ url : Common.webRoot() + "/epasp/website/webgl/webglController/isUserLogin", type : "POST", dataType : 'json', async : false, contentType : 'application/json', data : JSON.stringify(postData), success : function (result){ var data = result; if(data.model){ if(data.model.FLAG && data.model.ZH_FLAG && data.model.ZH_FLAG == 'QY'){ var url =Common.link("/index"); window.open(url, "_blank"); }else{ var url = Common.webRoot()+'/login_wwsb.jsp'; window.open(url, "_blank"); } } } }); }; $scope.hyzcSearch = {}; $scope.hjbzSearch = {}; //鐐瑰嚮鏂囦欢鎼滅储 $scope.toDataCenterSearch = function(lx){ var url = ''; var tzmc = ''; var tzzw = ''; var tzlx = ''; var kssj = ''; var jssj = ''; if(lx == 'HYZC'){ tzmc = $scope.hyzcSearch.TZMC&&$scope.hyzcSearch.TZMC!='undefined'?$scope.hyzcSearch.TZMC:''; tzzw = $scope.hyzcSearch.TZZW&&$scope.hyzcSearch.TZZW!='undefined'?$scope.hyzcSearch.TZZW:''; tzlx = lx; kssj = $scope.hyzcSearch.KSSJ&&$scope.hyzcSearch.KSSJ!='undefined'?$scope.hyzcSearch.KSSJ:''; jssj = $scope.hyzcSearch.JSSJ&&$scope.hyzcSearch.JSSJ!='undefined'?$scope.hyzcSearch.JSSJ:''; }else if(lx == 'HJBZ'){ tzmc = $scope.hjbzSearch.TZMC&&$scope.hjbzSearch.TZMC!='undefined'?$scope.hjbzSearch.TZMC:''; tzzw = $scope.hjbzSearch.TZZW&&$scope.hjbzSearch.TZZW!='undefined'?$scope.hjbzSearch.TZZW:''; tzlx = lx; kssj = $scope.hjbzSearch.KSSJ&&$scope.hjbzSearch.KSSJ!='undefined'?$scope.hjbzSearch.KSSJ:''; jssj = $scope.hjbzSearch.JSSJ&&$scope.hjbzSearch.JSSJ!='undefined'?$scope.hjbzSearch.JSSJ:''; } url = Common.webRoot()+'/epasp/website/webgl/webglController/toDataCenterSearch?tzmc='+tzmc+'&tzzw='+tzzw+'&tzlx='+tzlx+'&kssj='+kssj+'&jssj='+jssj; window.open(url, "_blank"); } $scope.qyxySearch = {}; //鐐瑰嚮淇$敤鎼滅储 $scope.toXyptSearch = function(){ var qymc = $scope.qyxySearch.QYMC&&$scope.qyxySearch.QYMC!='undefined'?$scope.qyxySearch.QYMC:''; var zsbh = $scope.qyxySearch.ZSBH&&$scope.qyxySearch.ZSBH!='undefined'?$scope.qyxySearch.ZSBH:''; var ssdq = $scope.qyxySearch.SSDQ&&$scope.qyxySearch.SSDQ!='undefined'?$scope.qyxySearch.SSDQ:''; var xydj = $scope.qyxySearch.XYDJ&&$scope.qyxySearch.XYDJ!='undefined'?$scope.qyxySearch.XYDJ:''; var yxq = $scope.qyxySearch.YXQ&&$scope.qyxySearch.YXQ!='undefined'?$scope.qyxySearch.YXQ:''; var url = Common.webRoot()+'/epasp/website/webgl/webglController/toXyptSearch?qymc='+ qymc+"&zsbh="+ zsbh+"&ssdq="+ ssdq+"&xydj="+xydj+"&yxq="+yxq; window.open(url, "_blank"); } $scope.hySearch = {}; //鐐瑰嚮浼氬憳鎼滅储 $scope.toHySearch = function(){ var dwmc = $scope.hySearch.DWMC&&$scope.hySearch.DWMC!='undefined'?$scope.hySearch.DWMC:''; var dwdz = $scope.hySearch.DWDZ&&$scope.hySearch.DWDZ!='undefined'?$scope.hySearch.DWDZ:''; var hyzh = $scope.hySearch.HYZH&&$scope.hySearch.HYZH!='undefined'?$scope.hySearch.HYZH:''; var hydj = $scope.hySearch.HYDJ&&$scope.hySearch.HYDJ!='undefined'?$scope.hySearch.HYDJ:''; var ywfw = $scope.hySearch.YWFW&&$scope.hySearch.YWFW!='undefined'?$scope.hySearch.YWFW:''; var url = Common.webRoot()+'/epasp/website/webgl/webglController/toHySearch?dwmc='+ dwmc+"&hyzh="+ hyzh+"&hydj="+hydj+"&ywfw="+ywfw+"&dwdz="+dwdz; window.open(url, "_blank"); } $scope.cprzSearch = {}; //鐐瑰嚮浜у搧璁よ瘉 $scope.toCprzSearch = function(){ var dwmc = $scope.cprzSearch.DWMC&&$scope.cprzSearch.DWMC!='undefined'?$scope.cprzSearch.DWMC:''; var zsbh = $scope.cprzSearch.ZSBH&&$scope.cprzSearch.ZSBH!='undefined'?$scope.cprzSearch.ZSBH:''; var cpmc = $scope.cprzSearch.CPMC&&$scope.cprzSearch.CPMC!='undefined'?$scope.cprzSearch.CPMC:''; var url = Common.webRoot()+'/epasp/website/webgl/webglController/toCprzSearch?dwmc='+ dwmc+"&zsbh="+ zsbh+"&cpmc="+cpmc; window.open(url, "_blank"); } $scope.lszxSearch = {}; //鐐瑰嚮缁胯壊涔嬫槦 $scope.toLszxSearch = function(){ var dwmc = $scope.lszxSearch.DWMC&&$scope.lszxSearch.DWMC!='undefined'?$scope.lszxSearch.DWMC:''; var zsbh = $scope.lszxSearch.ZSBH&&$scope.lszxSearch.ZSBH!='undefined'?$scope.lszxSearch.ZSBH:''; var cpmc = $scope.lszxSearch.CPMC&&$scope.lszxSearch.CPMC!='undefined'?$scope.lszxSearch.CPMC:''; var url = Common.webRoot()+'/epasp/website/webgl/webglController/toLszxSearch?dwmc='+ dwmc+"&zsbh="+ zsbh+"&cpmc="+cpmc; window.open(url, "_blank"); } $scope.syjsSearch = {}; //鐐瑰嚮瀹炵敤鎶€鏈 $scope.toSyjsSearch = function(){ var jsmc = $scope.syjsSearch.JSMC&&$scope.syjsSearch.JSMC!='undefined'?$scope.syjsSearch.JSMC:''; var sbdw = $scope.syjsSearch.SBDW&&$scope.syjsSearch.SBDW!='undefined'?$scope.syjsSearch.SBDW:''; var syly = $scope.syjsSearch.SYLY&&$scope.syjsSearch.SYLY!='undefined'?$scope.syjsSearch.SYLY:''; var jssp = $scope.syjsSearch.JSSP&&$scope.syjsSearch.JSSP!='undefined'?$scope.syjsSearch.JSSP:''; var url = Common.webRoot()+'/epasp/website/webgl/webglController/toSyjsSearch?jsmc='+ jsmc+"&sbdw="+ sbdw+"&syly="+syly+"&jssp="+jssp; window.open(url, "_blank"); } $scope.sfgcSearch = {}; //鐐瑰嚮绀鸿寖宸ョ▼ $scope.toSfgcSearch = function(){ var gcmc = $scope.sfgcSearch.GCMC&&$scope.sfgcSearch.GCMC!='undefined'?$scope.sfgcSearch.GCMC:''; var syly = $scope.sfgcSearch.SYLY&&$scope.sfgcSearch.SYLY!='undefined'?$scope.sfgcSearch.SYLY:''; var sbdw = $scope.sfgcSearch.SBDW&&$scope.sfgcSearch.SBDW!='undefined'?$scope.sfgcSearch.SBDW:''; var url = Common.webRoot()+'/epasp/website/webgl/webglController/toSfgcSearch?gcmc='+ gcmc+"&syly="+syly+"&jssp="+sbdw; window.open(url, "_blank"); } $scope.jsalSearchData = {}; //鐐瑰嚮鎶€鏈渚 $scope.toJsalSearch = function(){ var MC = $scope.jsalSearchData.MC&&$scope.jsalSearchData.MC!='undefined'?$scope.jsalSearchData.MC:''; var JSLY = $scope.jsalSearchData.JSLY&&$scope.jsalSearchData.JSLY!='undefined'?$scope.jsalSearchData.JSLY:''; var SYFW = $scope.jsalSearchData.SYFW&&$scope.jsalSearchData.SYFW!='undefined'?$scope.jsalSearchData.SYFW:''; var SBDW = $scope.jsalSearchData.SBDW&&$scope.jsalSearchData.SBDW!='undefined'?$scope.jsalSearchData.SBDW:''; var ALMC = $scope.jsalSearchData.ALMC&&$scope.jsalSearchData.ALMC!='undefined'?$scope.jsalSearchData.ALMC:''; var KSND = $scope.jsalSearchData.KSND&&$scope.jsalSearchData.KSND!='undefined'?$scope.jsalSearchData.KSND:''; var JSND = $scope.jsalSearchData.JSND&&$scope.jsalSearchData.JSND!='undefined'?$scope.jsalSearchData.JSND:''; var LX = $scope.jsalSearchData.LX&&$scope.jsalSearchData.LX!='undefined'?$scope.jsalSearchData.LX:''; var ALL = $scope.jsalSearchData.ALL&&$scope.jsalSearchData.ALL!='undefined'?$scope.jsalSearchData.ALL:''; var url = Common.webRoot()+'/epasp/website/webgl/webglController/toJsalSearch?LX='+ LX+"&MC="+MC+"&JSLY="+JSLY +"&SYFW="+SYFW+"&SBDW="+SBDW+"&ALMC="+ALMC+"&KSND="+KSND+"&JSND="+JSND+"&ALL="+ALL; window.open(url, "_blank"); } $scope.pxzsSearch = {}; //鐐瑰嚮鍩硅璇佷功 $scope.toPxzsSearch = function(){ var xm = $scope.pxzsSearch.XM&&$scope.pxzsSearch.XM!='undefined'?$scope.pxzsSearch.XM:''; var dwmc = $scope.pxzsSearch.DWMC&&$scope.pxzsSearch.DWMC!='undefined'?$scope.pxzsSearch.DWMC:''; var zsh = $scope.pxzsSearch.ZSH&&$scope.pxzsSearch.ZSH!='undefined'?$scope.pxzsSearch.ZSH:''; var pxlx = $scope.pxzsSearch.PXLX&&$scope.pxzsSearch.PXLX!='undefined'?$scope.pxzsSearch.PXLX:''; var pxmc = $scope.pxzsSearch.PXMC&&$scope.pxzsSearch.PXMC!='undefined'?$scope.pxzsSearch.PXMC:''; var sfzhm = $scope.pxzsSearch.SFZHM&&$scope.pxzsSearch.SFZHM!='undefined'?$scope.pxzsSearch.SFZHM:''; var url = Common.webRoot()+'/epasp/website/webgl/webglController/toPxzsSearch?xm='+ xm+"&dwmc="+dwmc+"&zsh="+zsh+"&pxlx="+pxlx+"&pxmc="+pxmc+"&sfzhm="+sfzhm; window.open(url, "_blank"); } //浼佷笟涓績 $scope.toCompanyCenterAppend = function(LMLX){ var YHID = $("#appendYhid").val(); var url = Common.webRoot()+'/epasp/website/webgl/webglController/companyCenter/'+LMLX+"/"+YHID; window.open(url, "_blank"); } //浼佷笟涓績-2-liuzz-2018-4-22 $scope.toCompanyQyjj = function(YHID){ var url = Common.webRoot()+'/epasp/website/webgl/webglController/companyCenter/QYJJ/'+YHID; window.open(url, "_blank"); } //鏉傚織鏌ョ湅 $scope.magazineNewsDetail = function(XH){ var url = Common.webRoot()+'/epasp/website/webgl/webglController/magazineDetail/'+XH; window.open(url, "_blank"); } //鏉傚織鍒楄〃 $scope.magazineNewsList = function(){ var url = Common.webRoot()+'/epasp/website/webgl/webglController/intoServiceCenterZzsQkll'; window.open(url, "_blank"); } $scope.search = {}; $scope.myMagazineNewsList = new Array(); $scope.search.pageSize = 8; $scope.search.pageNum = 1; $scope.getMagazineList = function(){ Common.send($scope, $http, { method : "POST", url : Common.webRoot() + "/epasp/website/webgl/webglController/queryMagazineListSimple", showTips : false, data:$scope.search, success : function(reponse) { $scope.myMagazineNewsList = reponse.data.list; }, error : function(err) { } }); }; $scope.getMagazineList(); //鐐瑰嚮鐞嗕簨灞曠ず鍖哄煙缃戝潃閾炬帴 $scope.toLsDwwz = function(){ var url = 'http://' + $("#appendDwwz").html(); window.open(url, "_blank"); } //鐐瑰嚮鏂伴椈鍥剧墖 $scope.tpxwImgClick = function(xwXh){ var v1 = $("#tpxwImgId_"+xwXh).attr("v1"); var v2 = $("#tpxwImgId_"+xwXh).attr("v2"); $scope.detail(v1, v2); } //鐐瑰嚮閾炬帴 $scope.openUrl = function(url){ var url = Common.webRoot() + url; window.open(url, "_blank"); } //鐐瑰嚮澶栭儴閾炬帴 $scope.openOutUrl = function(url){ var url = 'http://' + url; window.open(url, "_blank"); } } ]);