http://122.229.30.170:20041/sme-gateway/appcategory/0/-1?hot=&areacode="Apache Tomcat\/7.0.62 - Error report<\/title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--><\/style> <\/head><body><h1>HTTP Status 404 - <\/h1><HR size=\"1\" noshade=\"noshade\"><p><b>type<\/b> Status report<\/p><p><b>message<\/b> <u><\/u><\/p><p><b>description<\/b> <u>The requested resource is not available.<\/u><\/p><HR size=\"1\" noshade=\"noshade\"><h3>Apache Tomcat\/7.0.62<\/h3><\/body><\/html>"<style> /*appcount*/ .appcount{width:158px;height:210px;border:1px solid #dedede; background:#fbfbfb;} .appcount_title{height:40px; background:#fff;border-bottom:1px solid #dedede;color:#555; font-family:"微软雅黑"; font-weight:normal; line-height:40px;padding-left:10px;} .appcount dl{ text-align:center;} .appcount dt{ font-size:16px; font-family:"微软雅黑"; line-height:30px;padding-top:16px;} .appcount dd span{color:#5b8ed1; font-size:18px; vertical-align:bottom;font-family:"微软雅黑";padding:0 3px;} </style> <!--#left_menu.start--> <div class="w160 fl"> <div class="appcount" style="margin-bottom:20px;"> <h2 class="appcount_title">应用统计</h2> <dl> <dt>国家应用落地部署</dt> <dd> 已有<span><</span>个 </dd> <dt style="padding-top:16px;">浙江本地特色应用</dt> <dd> 已有<span><</span>个 </dd> </dl> </div> <div class="appMenu"> <h2 class="type1">应用分类导航</h2> <ul class="ul-appmenu"> 数据暂无 </ul> </div> <div class="appRank pdt20" name="tab-1"> <h2 class="type1">人气排行榜</h2> <ul class="AppLeftList1"> 数据暂无 </ul> </div> </div> <script type="text/javascript"> $(document).ready(function(){ //热门分类hover效果 $("ul.ul-appmenu li").hover(function(){ $(this).addClass("hover"); },function(){ $(this).removeClass("hover"); }); }) </script><!--#right_main.start--> <div class="w820 fr pdb20"> <!--焦点图--> <!--焦点图--> <!--#搜索框.start--> <div class="search-box clearfix app_search pdb5" style=" margin-top: 0px; "> <h2 class="type1">应用搜索</h2> <form method="post" action="/index.php?r=portal/app/search"> <div class="txt-l fl" style=" width: 704px !important; "> <div class="option fl"> <ul class="drop-list"> <li class="st"><a href="#">全部应用</a></li> <li class="othertb" style="display: none;" data-val="-1"><a href="#">全部应用</a></li> <li class="othertb" style="display: none;" data-val="0"><a href="#">免费应用</a></li> <li class="othertb" style="display: none;" data-val="1"><a href="#">收费应用</a></li> </ul> </div> <div class="txt fl" style="width:610px;"> <input type="text" name="keyword" class="s-txt" value="" style="width:100%;"/> <input type="hidden" name="categorycode" value=""/> <input type="hidden" name="categoryname" value=""/> <input type="hidden" name="sort" value=""/> <input type="hidden" id="isfee" name="isfee" value="-1" /> </div> </div> <div class="btn fl" style="background-color: rgb(91, 142, 209); background-position: initial initial; background-repeat: initial initial;"> <input type="submit" value="搜索" class="s-btn" /> </div> </form> </div> <script type="text/javascript"> $(document).ready(function(){ $("div[name='tab']").tabControl("*[name='tabTit'] a" , "*[name='tabCon']" , '.more'); $("div[name='tab-1']").tabControl("*[name='tabTit'] a" , "*[name='tabCon']" , '.more'); $(".app-info .app-detail .txt div.app-price").hover(function(){ $(this).find("p.tips").toggleClass("dis_none"); }) $(".app_search_list ul li ").hover(function(){ $(this).toggleClass("hover"); }) //---------------搜索框交互------------------// //1.搜索框文本框点击效果 var Sbtn = $(".search-box .txt-l .txt .s-txt");// Sbtn.on('click focus',function(){ //$(this).parent(".txt").addClass("nobg") //alert(111); Sbtn.val(""); }) Sbtn.on('blur',function(){ // if (Sbtn.val()=='') // { // Sbtn.val("月亮与玉兔"); //$(this).parent(".txt").removeClass("nobg"); // } }); //2.搜索按钮hover效果 $(".s-btn").hover(function(){ $(this).parent(".btn").css('background','#3f8ec5'); },function(){ $(this).parent(".btn").css('background','#3d95d5'); }) //3.搜索框左侧菜单hover下拉以及点击选中 $('.drop-list').hover(function(){ $(this).find("li.othertb").show(); $(this).find('li.st').addClass('hover'); },function(){ $(this).find("li.othertb").hide(); $(this).find('li.st').removeClass('hover'); }) $('li.othertb').click(function(){ var isfee = $(this).attr('data-val'); $("#isfee").val(isfee); var lot =$("li.othertb"); var lst = $("li.st a"); var oval = $(this).find('a').text(); lst.text(oval) lot.hide(); return false }) //---------------搜索框交互 over------------------// }) </script><!--#应用搜索.over--> <!--#应用推荐.start--> <div class="appRecom clearfix pdt10"> 加载中... </div> <!--#最新应用.start--> <div class="appNew clearfix pdt10"> 加载中... </div> <!--#热门分类.start--> http://122.229.30.170:20041/sme-gateway/appcategory/0/-1?hot=yes&areacode="<html><head><title>Apache Tomcat\/7.0.62 - Error report<\/title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--><\/style> <\/head><body><h1>HTTP Status 404 - <\/h1><HR size=\"1\" noshade=\"noshade\"><p><b>type<\/b> Status report<\/p><p><b>message<\/b> <u><\/u><\/p><p><b>description<\/b> <u>The requested resource is not available.<\/u><\/p><HR size=\"1\" noshade=\"noshade\"><h3>Apache Tomcat\/7.0.62<\/h3><\/body><\/html>"http://122.229.30.170:20041/sme-gateway/appcategory/1/-1?hot=yes&areacode="<html><head><title>Apache Tomcat\/7.0.62 - Error report<\/title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--><\/style> <\/head><body><h1>HTTP Status 404 - <\/h1><HR size=\"1\" noshade=\"noshade\"><p><b>type<\/b> Status report<\/p><p><b>message<\/b> <u><\/u><\/p><p><b>description<\/b> <u>The requested resource is not available.<\/u><\/p><HR size=\"1\" noshade=\"noshade\"><h3>Apache Tomcat\/7.0.62<\/h3><\/body><\/html>"<div class="hotApp"> <h2 class="type1">热门分类</h2> </div> <script type="text/javascript"> $(".hotApp dl dd p span.app_btn").hide(); $(".hotApp dl dd").hover(function(){ $(this).find(".app_price").hide(); $(this).find(".app_btn").show(); },function(){ $(this).find(".app_price").show(); $(this).find(".app_btn").hide(); }) </script> <script type="text/javascript"> var hot = { Collect:function(obj){ var url = '/index.php?r=portal/app/appCollection'; var appcode = $(obj).attr('data-appcode'); var openurl = $(obj).attr('data-openurl'); var html = "<a href='"+openurl+"' class='app-open-btn' id='collect'>打开</a>"; $.getJSON(url,{appcode:appcode},function(data){ if(data['result']=='00000000'){ art.tips({content:'收藏成功!'}); $(obj).replaceWith(html); } else { art.tips({content:data.msg,type:1}); } }) } } </script> <!--#热门分类.over--> </div> <!--#right_main.over--> </div> <!--#portal_main.over--> <!--#current_page_javascript_code.start--> <script type="text/javascript"> $(document).ready(function(){ //---------------搜索框交互------------------ //1.搜索框文本框点击效果 // var Sbtn = $(".search-box .txt-l .txt input");// // Sbtn.on('click focus',function(){ // //$(this).parent(".txt").addClass("nobg") // //alert(111); // Sbtn.val(""); // }) // Sbtn.on('blur',function(){ // if (Sbtn.val()=='') // { // Sbtn.val("单词"); // //$(this).parent(".txt").removeClass("nobg"); // } // }); // //2.搜索按钮hover效果 // $(".s-btn").hover(function(){ // $(this).parent(".btn").css('background','#3f8ec5'); // },function(){ // $(this).parent(".btn").css('background','#5b8ed1'); // }) // //3.搜索框左侧菜单hover下拉以及点击选中 // $('.drop-list').hover(function(){ // $(this).find("li.othertb").show(); // $(this).find('li.st').addClass('hover'); // },function(){ // $(this).find("li.othertb").hide(); // $(this).find('li.st').removeClass('hover'); // }) // $('li.othertb').click(function(){ // var lot =$("li.othertb"); // var lst = $("li.st a"); // var oval = $(this).find('a').text(); // lst.text(oval) // lot.hide(); // return false // }) //---------------搜索框交互 over------------------// $("div[name='tab']").tabControl("*[name='tabTit'] a" , "*[name='tabCon']" , '.more'); $("div[name='tab-1']").tabControl("*[name='tabTit'] a" , "*[name='tabCon']" , '.more'); $("*[name='imgMove-apprecom']").divMove('licon','ricon', '*[name="imgMovebox"] ul','li',1,'',''); $("*[name='imgMove-newapp']").divMove('licon','ricon', '*[name="imgMovebox"] ul','li',1,'',''); $(".app-info .app-detail .txt div.app-price").hover(function(){ $(this).find("p.tips").toggleClass("dis_none"); }) //热门分类hover效果 $(".hotApp dl dd p span.app_btn").hide(); $(".hotApp dl dd p.app_opt").hover(function(){ $(this).find(".app_price").hide(); $(this).find(".app_btn").show(); },function(){ $(this).find(".app_price").show(); $(this).find(".app_btn").hide(); }) $(".appRecom").load("/index.php?r=portal/app/ajaxRecommend"); $('.appRecom').on('click', '.turnPage a', function(){ $(".appRecom").load($(this).attr('href')); return false; }) $(".appNew").load("/index.php?r=portal/app/ajaxNew"); $('.appNew').on('click', '.turnPage a', function(){ $(".appNew").load($(this).attr('href')); return false; }) }) </script> <script type="text/javascript"> var timer; $().ready(function(){ $("#btn_next").hover(function(){$(this).addClass("arrowR arrowRHover")},function(){$(this).removeClass("arrowR arrowRHover")}); $("#btn_prev").hover(function(){$(this).addClass("arrowL arrowLHover")},function(){$(this).removeClass("arrowL arrowLHover")}); $("#area ul li").each(function(){ $(this).mouseleave(function(){ timer = setInterval(function(){$("#btn_next").click();},3000); var spans=$(this).find(".iMark,.intrW"); if(spans.css("display")=="none") return; spans.animate({"top":"270px"},{ duration: 500, complete: function(){ spans.css("display","none"); } }); }); $(this).mouseenter(function(){ clearInterval(timer); var spans=$(this).find(".iMark,.intrW"); if(spans.css("display")=="block") return; spans.css("top","270px"); spans.css("display","block"); spans.animate({"top":"194px"}); }); }); initTrid(); timer = setInterval(function(){$("#btn_next").click();},3000); //$("#zhitou_more").bind('click',zhitouMore); //$("#switch_qt").bind('click',switchQt); $(".tlItem").mouseover(function(){ var a = $(this); a.parent().children().removeClass("tlItem-hover"); a.addClass("tlItem-hover"); }); }); function initTrid() { var trid=new Object(); trid={ li:$("#area li"), ul:$("#area ul"), len:$("#area li").length, door:true, gol:$("#btn_prev"), gor:$("#btn_next"), ico:$("#ico_list li"), curIndex:$("#ico_list li.curr").index(), init: function(){ this.format(); this.bindact(); }, format: function(){ var w = (this.len) * 820 + "px"; this.ul.css({ "width": w }); }, step: function(i){ var self = this; if (!self.door) return false; self.door = false; this.curIndex=this.curIndex+i; this.curIndex=self.curIndex>=self.len?(self.curIndex-self.len):self.curIndex; this.curIndex=self.curIndex<0?(self.curIndex+self.len):self.curIndex; this.ico.removeClass("curr"); this.ico.eq(this.curIndex).addClass("curr"); var m = 820 * i; if (i < 0) { i = -i; for (var k = 0; k < i; k++) { self.ul.find("li:last").prependTo(self.ul); } self.ul.css({"margin-left": m + "px"}); self.ul.animate( {"margin-left": "0"}, { duration: 500, complete: function(){ self.door = true; } }); } else { if (i > 0) { self.ul.animate({ "margin-left": -m + "px" }, { duration: 500, complete: function(){ for (var k = 0; k < i; k++) { self.ul.find("li:first").appendTo(self.ul); } self.ul.css({ "margin-left": 0 }); self.door = true; } }); } } }, bindact: function(){ var self = this; this.gor.bind("click", function(){ self.step(1); $(this).blur(); }); this.gol.bind("click", function(){ self.step(-1); $(this).blur(); }); } } trid.init(); } </script> <!--#current_page_javascript_code.over--> <!--Footer Start--> <div class="kq_footerWrap g_footer"> <div class="kq_footercon"> <p> <span class="fr"> <a href="http://mgr.sxedu.org/aam/index.jsp?platformCode=330621">后台管理</a> | <a href="http://open.zjer.cn/dspportal/home.action" target="_blank">开放平台</a></span> 版权所有:绍兴市柯桥区教育体育局 绍兴市柯桥区教师发展中心   技术支持:<a href="http://www.huijiaoyun.com/" class="linkc" target="_blank">天喻教育科技有限公司</a> </p> <p class="clearfix"> <span class="fr"> <script src="http://s11.cnzz.com/z_stat.php?id=1261731377&web_id=1261731377" language="JavaScript"></script> | <a href="http://yun.sxedu.org/index.php?r=portal/support/feedback" class="red">用户反馈</a> | <a href="http://yun.sxedu.org/index.php?r=portal/support/help">帮助中心</a></span> Copyright ©2017 yun.sxedu.org All rights reserved <a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=33060302000039"> <img src="http://www.beian.gov.cn/img/ghs.png"/></a>ICP备案号:浙ICP备05083914 | 浙公网安备 33060302000039号 <span style="display:block;float:left;width:100%;" class="t_c mgt10"> <a href="http://www.sxga.gov.cn/jwzx/ztzl/wjzt/" target="_blank"> <img width="50" src="http://www.sxedu.org/images/jc.png"></a> <a target="_blank" href="http://bszs.conac.cn/sitename?method=show&id=0D3564794753322DE053022819AC4DF5"> <img width="50" src="http://dcs.conac.cn/image/blue_error.png"></a> </span>   </p> </div> </div> <!-- 通用登录框 --> <!-- {{{ views.portal.user._user_login --> <!-- 4.0登录框 --> <link href="http://yun.sxedu.org:81/zj_edu/area/330621/css/topnew.css?v=1526914819" rel="stylesheet" type="text/css"> <!-- 再次加载样式,防止某些页面丢样式 --> <div class="m_login" id="m_login"> <form data-url="http://space.sxedu.org/index.php?r=portal/user/doLoginPortal&ajax=1" method="post" id="loginForm-1" message_id="loginTips"> <div class="item-newLogo-rect"> <div class="m_close" id="m_close"><span>关闭</span></div> <a href="###" class="logoCaseTab" id="logoCaseTab"></a> <p class="logoTips dis_none"><i class="ico1"></i><i class="ico2"></i><span>扫码登录更安全</span></p> <div class="passWord-case dis_none" name="LoginRect" > <h4>空间登录</h4> <div class="err-tips" id="_user_login_tips" style="display: none;"></div> <ul class="inputlist clearfix"> <li class="u_inputtext"> <input type="text" id="info_username-1" name="account" value="" tabindex="1" placeholder="用户名/邮箱" /> </li> <li class="u_inputpassword"> <input type="password" id="info_password-1" name="pwd" value="" tabindex="2" placeholder="请输入您的密码" /> </li> </ul> <div class="test_code clearfix dis_none"> <input id='valCode11' type="text" placeholder="请输入验证码"> <div class="codeimg"><img id="cimage" width="99" height="37" alt="" vaildata="" src="" onclick='getVcode_user_login_40();'></div> </div> <div class="login_other_rect clearfix"> <div class="rememberMe fl"> <p class="fl"><span></span></p>自动登录 </div> <input type="hidden" id="remember" name="remember" value="0 "/> <p class="fr"> <a href="http://space.sxedu.org/index.php?r=portal/resetPassword/choice" target="_top" class="forget">忘记密码?</a> <a href="http://yun.sxedu.org/index.php?r=portal/register/index" target="_top" style="color:#888">立即注册!</a> </p> </div> <input type="button" value="立即登录" class="login_btn UserLoginBtn-1 m_btn submit" /> <!--<div class="no_account">没有账号?</div>--> </div> <!--扫码部分 start--> <div name="LoginRect" class="smLoing-rect dis_none"> <h4 class="t_c ">手机扫码,安全登录</h4> <div class="sm-case" id="loadding"> <div class="smLoginRect clearfix" id="qr_div"> <div class="wxLogin-img fl" style="width:125px;height:125px;border: 5px solid #ffffff;"><div id="portal_qrcode"></div><span class="wx_bg"></span></div> <img class="wxLoign-tips-img" src="http://yun.sxedu.org:81/zj_edu/area/330621/images/index0906/wxLogin_tips_img.png" width="123" height="184" alt=""/> </div> </div> <div class="sm-invalid dis_none"> <div class="invalid-rect"> <img class="wxLogin-img" src="http://yun.sxedu.org:81/zj_edu/area/330621/images/index0906/wxLogin_img.jpg" width="125" height="125" alt=""/> <strong class="tips">二维码已失效</strong> <a href="javascript:;" id="reload_qrcode">请点击刷新</a> </div> </div> <div class="sm-text-tips cfff t_c f14"><i><img src="http://yun.sxedu.org:81/zj_edu/area/330621/images/index0906/sm_ico.png" width="27" height="27" alt="" class="mgr10"/></i>请打开<a href="http://jxb.sxedu.org">手机移动端</a>扫一扫登录</div> </div> <div class="sm-finish dis_none"> <h4 class="t_c ">手机扫码,安全登录</h4> <div class="finish-rect t_c cfff"> <img src="http://yun.sxedu.org:81/zj_edu/area/330621/images/index0906/wxLogin_finish.png" width="67" height="97" alt=""/> <p class="txt" id="QRinfo1">扫描成功!</p> <p class="f14 mgt10"><strong id="QRinfo2">请在手机上确认登录</strong></p> <p class="f14 mgt10"><a href="javascript:;" id="reload_qrcode1">取消二维码登录</a></p> </div> </div> <input type="hidden" value="" name="userAction" id="userAction"/> <input type="hidden" id="qr_token" value="" /> <input type="hidden" id="qr_status" value="" /> <!--扫码部分 end--> </div> </form> </div> <div class="m_mask" id="m_mask"></div> <script type="text/javascript" src="http://yun.sxedu.org:81/zj_edu/area/330621/js/login.js?v=1526914819"></script> <script type='text/javascript' src='http://space.sxedu.org/statics/common/js/qrcode/jquery.qrcode.min.js?v201610071452'></script> <script type='text/javascript' src='http://space.sxedu.org/statics/common/js/encrypt.min.js?v201610071452'></script> <script type="text/javascript"> $("#click_vail_user_login_40").click(function(){ getVcode_user_login_40(); }); function getVcode_user_login_40(){ $.ajax({ url:"http://yun.sxedu.org/index.php?r=portal/Vcode/GetNewCode", type:'get', data:{}, dataType:'jsonp', callback:'VailCode', // beforeSend:function(){ // $('#codeimg_user_login_40').hide(); // $('#click_vail_user_login_40').hide(); // $('#cimage_user_login_40').hide(); // $('#vail_loadding_user_login_40').show(); // }, success:function(json){ if(json){ $('#cimage').attr('src',json.imageinfo); $('#cimage').attr('vaildata',json.passCode); } else{ art.tips({content:'网络错误',type:2}); // $('#codeimg_user_login_40').show(); // $('#click_vail_user_login_40').show(); // $('#vail_loadding_user_login_40').hide(); } }, error:function(){ art.tips({content:'网络错误',type:2}); // $('#codeimg_user_login_40').show(); // $('#click_vail_user_login_40').show(); // $('#vail_loadding_user_login_40').hide(); } }); } //4.0弹框触发 function userLogin(){ //重新触发关闭扫码请求 if($('#qr_token').val() != ''){ QR_cancel(); } var userAction = arguments[0] ? arguments[0] : ''; var skipcheck = arguments[1] ? arguments[1] : ''; if(userAction) { $('#userAction').val(userAction); } //跳过检测,直接呼出登录框,减少延迟。仅在确认当前页未登录状态下使用。 if(skipcheck){ setTimeout('Login.autoinit();',200); } else{ var url = 'http://yun.sxedu.org/index.php?r=portal/user/ajaxCheckLogin&jsoncallback=?'; $.getJSON( url, function(data){ if (data.code ==='000000') { art.alert('您已登录!',function(){ if(userAction==''){ //location.reload(); location.href = "http://yun.sxedu.org/index.php?r=portal/app/index"; }else{ location.href = userAction; } }); }else{ Login.autoinit(); } } ); } } //Login.init(); loginJH('.m_login'); //登录记住我 (function(){ var oRemmberMe = $('.rememberMe'); var oSpan = oRemmberMe.find('span'); var onoff = true; onoff = true; if(onoff){ onoff = false; oSpan.animate({marginRight:17},200); oSpan.parent().removeClass('on') }else{ onoff = true; oSpan.animate({marginRight:2},200); oSpan.parent().addClass('on'); } oRemmberMe.click(function(){ if(onoff){ onoff = false; oSpan.animate({marginRight:17},200); oSpan.parent().removeClass('on'); $("#remember").val('0'); }else{ onoff = true; oSpan.animate({marginRight:2},200); oSpan.parent().addClass('on'); $("#remember").val('1'); } }) getVcode_user_login_40(); })() //登录处理 $('.UserLoginBtn-1').on("click",function(){ login_portal_index(); }); $('#m_login input').keydown(function(event){ if(event.keyCode==13){ // enter 键 login_portal_index(); } }); function login_portal_index(){ var userId = $('#info_username-1').val(); var userPsw = $('#info_password-1').val(); var remember = $('#remember').val(); var submit_url = $('#loginForm-1').attr('data-url'); var vaildata = $('#cimage').attr('vaildata'); var valCode = $('#valCode11').val(); if(userId == ''){ $('#_user_login_tips').show(); $('#_user_login_tips').html('<em class="close fr" onclick="closep(this);"></em><i class="ico"></i>请输入用户名');return false; } if(userPsw == ''){ $('#_user_login_tips').show(); $('#_user_login_tips').html('<em class="close fr" onclick="closep(this);"></em><i class="ico"></i>请输入密码');return false; } userId = encode_string(userId); userPsw = encode_string(userPsw); // if(valCode == ''){ // $('#_user_login_tips').show(); // $('#_user_login_tips').html('<em class="close fr" onclick="closep(this);"></em><i class="ico"></i>验证码不能为空');return false; // } $('.login_btn').val('正在登录...'); $('.login_btn').die("click"); //ajax调用 $.ajax({type:"POST", dataType:"jsonp",cache:false, url:submit_url, data:{userId:userId, userPsw:userPsw, remember:remember,vaildata:vaildata, valCode:valCode,encrypt:'encrypt'}, success: function(data){ if(data){ if(data.code!='000000' && data.code!='000003'){ $('#cimage_user_login_40').click(); $('.login_btn').val('立即登录'); $('.login_btn').live("click",function(){ login_portal_index(); }); $('#valCode11').val(''); $('#_user_login_tips').show(); $('#_user_login_tips').html('<em class="close fr" onclick="closep(this);"></em><i class="ico"></i>'+data.message); if ( data.code == 222222 || data.code == 123456) { $('#valCode11').parent().show(); } $('#valCode11').next('img').click(); }else if(data.code=='000003'){ $('#cimage_user_login_40').click(); $('.login_btn').val('立即登录'); $('.login_btn').live("click",function(){ login_portal_index(); }); $('#valCode11').val(''); $('#_user_login_tips').show(); $('#_user_login_tips').html('<em class="close fr" onclick="closep(this);"></em><i class="ico"></i>'+data.message); window.parent.location.href = "http://space.sxedu.org"; }else{ $('#_user_login_tips').hide(); $('.login_btn').val('登录成功,正在跳转...'); //联合登录 url = data.url; uc_login(userId,userPsw,url,data.platformCode,data.ppd,remember); } } }, error:function(XMLHttpRequest, textStatus, errorThrown){ $('#cimage_user_login_40').click(); if(textStatus == 'timeout'){ $('#_user_login_tips').show(); $('#_user_login_tips').html('<em class="close fr" onclick="closep(this);"></em><i class="ico"></i>当前网络连接不可用!'); } else{ $('#_user_login_tips').show(); $('#_user_login_tips').html('<em class="close fr" onclick="closep(this);"></em><i class="ico"></i>当前网络连接不可用!'); } $('.login_btn').val('立即登录'); $('.login_btn').live("click",function(){ login_portal_index(); }); } }); } function closep(obj){ $(obj).parent().hide(); } function ajax_submit(frm){ if($(frm).attr('href')!=undefined){ frm.action = $(frm).attr('href') if(frm.method == '' || frm.method == undefined){ frm.method = 'get' } } ajaxSubmit(frm, function(data){ if(data.content!=undefined && data.content!=''){ var obj = data; }else{ var obj = { content:$(data).contents('.zz_changePage').find('.wd').text(), type :2, time:1000 } } if(obj.content=='schooltp_redirect_jump'){ //延迟跳转页面 setTimeout(function(){ //如果设置了跳转页面,就跳转,没有设置页面不跳转,不刷新 if(obj.url!='' && obj.url!=undefined){ if(obj.url==1)window.location.reload(); else location.href = obj.url; } flag = true; },obj.time); return false; } //指定显示信息 var message_id = $(frm).attr('message_id') if(message_id!=undefined && message_id!=''){ //$('#'+message_id).html(obj.content); var a = obj.callback; if(a!=''){ if(typeof a == 'function'){ a(); }else{ eval(a); } } }else{ //显示提示信息 art.tips({ content:obj.content, type:obj.type, time:obj.time, callback:obj.callback }) } //延迟跳转页面 setTimeout(function(){ //如果设置了跳转页面,就跳转,没有设置页面不跳转,不刷新 if(obj.url!='' && obj.url!=undefined){ if(obj.url==1)window.location.reload(); else location.href = obj.url; } flag = true; },obj.time); }); return false; } //二维码登录处理 start function getQRcode(times){ $.ajax({ url:'http://space.sxedu.org/index.php?r=api/QRcode/GetQRcontent', type: "GET", dataType: 'jsonp', jsonp: 'callback', jsonpCallback:'success_QRcode', beforeSend:function(){ $('#portal_qrcode').empty(); }, success:function(json){ $('#portal_qrcode').empty(); jQuery('#portal_qrcode').qrcode(json); $('#qr_token').val(json.token); $('.sm-invalid').hide(); $('.sm-case').show(); getStatus(); }, error:function(){ $('.sm-case').hide(); $('.sm-invalid').show(); if(times < 5){ times += 1; setTimeout('getQRcode('+times+');',1000); } } }); } $('#logoCaseTab').click(function(){ //避免冲突,延迟执行 setTimeout(function(){ if($('#logoCaseTab').attr('class') == 'logoCaseTab CaseTab2'){ getQRcode(); } else{ QR_cancel(); } },5); }); $('#reload_qrcode').click(function(){ QR_cancel(); getQRcode(); }); $('#reload_qrcode1').click(function(){ QR_cancel(); $('.logoTips').children('span').html('扫码登录更安全'); $('.sm-finish').hide(); }); //获取当前二维码扫码进度 function getStatus(){ var token = $('#qr_token').val(); var L_status = $('#qr_status').val(); $.ajax({ url:"http://space.sxedu.org/index.php?r=api/QRcode/GetStatus&token="+token+'&L_status='+L_status, type: "GET", dataType: 'jsonp', jsonp: 'callback', jsonpCallback:'success_Status', success:function(json){ if(json == null){ getStatus(); } else{ $('#qr_status').val(json.code); if(json.code == 99 ){ getStatus(); } if(json.code == 1){ $('.smLoing-rect').hide(); $('.sm-finish').show(); getStatus(); } else if(json.code == 3){ //getQRcode(); if($('#logoCaseTab').attr('class') == 'logoCaseTab CaseTab2'){ $('.smLoing-rect').hide(); $('.passWord-case').show(); $('#logoCaseTab').removeClass('CaseTab2'); } $('.logoTips').children('span').html('扫码登录更安全'); $('.sm-finish').hide(); } else if(json.code == 2){ $('#QRinfo1').html('用户已确认'); $('#QRinfo2').html('正在登录...'); $('#reload_qrcode1').remove(); $.ajax({ url:'http://space.sxedu.org/index.php?r=api/QRcode/Login&token='+token, type: "GET", dataType: 'jsonp', jsonp: 'callback', jsonpCallback:'success_login', success:function(json){ if(json.code == '000000'){ if(json.account && json.ccd){ //用户平台 $.ajax({type:'GET', dataType:'jsonp', cache:false, async:false, url:'http://space.sxedu.org/index.php?r=uc/site', data:{platformCode:json.platfromcode}, success: function(data){ if(data){ var n = data.length; for(var i=0; i<data.length; i++){ var site_domain = data[i].domain; $.ajax({type:'GET', dataType:'jsonp', cache:false, url:'http://'+site_domain+'/index.php?r=uc/login', data:{account:json.account, ccd:json.ccd,remember:0}, success: function(jsonp){ n = n - 1; if (n == 0){ //window.parent.location.href = url; //redirect_url('timeout'); $('#QRinfo2').html('登录成功,正在跳转...'); redirect_url('timeout'); } }, error: function(){ n = n - 1; if (n == 0){ //window.parent.location.href = url; //redirect_url('timeout'); $('#QRinfo2').html('登录成功,正在跳转...'); redirect_url('timeout'); } } }); } }else{ //window.parent.location.href = url; //redirect_url('timeout'); $('#QRinfo2').html('登录成功,正在跳转...'); redirect_url('timeout'); } }, error:function(){ //redirect_url('timeout'); $('#QRinfo2').html('登录成功,正在跳转...'); redirect_url('timeout'); } }); } else{ $('#QRinfo2').html('登录成功,正在跳转...'); redirect_url('timeout'); } } else{ $('#QRinfo2').html(json.msg); } } }); } else if(json.code == 6){ $('.sm-finish').hide(); $('.smLoing-rect').show(); $('.sm-case').hide(); $('.sm-invalid').show(); } } }, error:function(){ getStatus(); } }); } function QR_cancel(){ var token = $('#qr_token').val(); $.getJSON("http://space.sxedu.org/index.php?r=api/QRcode/cancel&token="+token+'&jsoncallback=?'); } //二维码登录处理 end //登录跳转 function redirect_url(param){ var url = ''; var skipurl = ''; var skip = $.trim($('#userAction').val()); if(skip == 'UserSet'){ var currentHost = 'http://'+window.location.host; if(currentHost.indexOf('http://yun.sxedu.org') !== -1 ){ //测试要求连接(r=portal/usecount/anindex)登录成功后,不要跳转到个人中心,所以增加下面的if条件,详见jira(EDUZJTHREE-7394) if(location.href.indexOf('r=portal/usecount/anindex') === -1){ $.ajax({ url:'http://yun.sxedu.org/index.php?r=portal/user/AjaxRedirectJson', async:false,dataType:'json', success:function(data){ url = data.url; } }); if(url){ skipurl = url; } else{ skipurl = window.location.href; } } } else{ skipurl = window.location.href; } } else if(skip){ skipurl = skip; } else{ //skipurl = 'http://yun.sxedu.org/index.php?r=portal/app/index'; skipurl = window.location.href; } var reg = /#/g; skipurl = skipurl.replace(reg,'');; if(param == 'timeout'){ setTimeout('window.location.href = "'+skipurl+'";',500); } else{ window.location.href = skipurl; } } //平台联合登录 function uc_login(account,pwd,url,platformCode,pd,remember) { //用户平台 $.ajax({type:'GET', dataType:'jsonp', cache:false, async:false, url:'http://space.sxedu.org/index.php?r=uc/site', data:{platformCode:platformCode}, success: function(data){ if(data){ var n = data.length; for(var i=0; i<data.length; i++){ var site_domain = data[i].domain; $.ajax({type:'GET', dataType:'jsonp', cache:false, url:'http://'+site_domain+'/index.php?r=uc/login', data:{account:account, pd:pd,remember:remember, encrypt:'encrypt'}, success: function(jsonp){ n = n - 1; if (n == 0){ //window.parent.location.href = url; redirect_url('timeout'); } }, error: function(){ n = n - 1; if (n == 0){ //window.parent.location.href = url; redirect_url('timeout'); } } }); } }else{ //window.parent.location.href = url; redirect_url('timeout'); } }, error:function(){ redirect_url('timeout'); } }); } $(function($){ $('#toUserLogin').bind('click',function(){ userLogin(); }) }); $(function($){ $('#view_into_app').bind('click',function(){ userLogin($(this).attr('url')); }) }); $(function($){ $('#view_add_app').bind('click',function(){ userLogin(); }) }); //平台联合注销 $('a.outSpace,a.exitBtn').live("click",function(){ var platformCode = ''; if(platformCode == ''){ platformCode = $('#logoutPlatformCode').val(); } var $this = $(this); var href = $this.attr('href'); $this.attr('href', 'javascript:;'); //用户平台 $.ajax({ type:'GET', dataType:'jsonp', cache:false, async:false, url:'http://space.sxedu.org/index.php?r=uc/site', data:{platformCode:platformCode}, success: function(data){ if(data){ var n = data.length; for(var i=0; i<data.length; i++){ var site_domain = data[i].domain; $.ajax({ type:'GET', dataType:'jsonp', cache:false, timeout:5000, url:'http://'+site_domain+'/index.php?r=uc/logout', success: function(jsonp){ n = n - 1; if (n == 0){ window.parent.location.href = href; } }, error: function(){ n = n - 1; if (n == 0){ window.parent.location.href = href; } } }); } }else{ window.parent.location.href = href; } } }); return false; }); </script> <!-- }}} --><!--底部模板解析耗时111:0.0004/redis取值:330621--> <!--Footer Over--> <!-- {{{ views.portal.user._user_login --> <!-- 4.0登录框 --> <link href="http://yun.sxedu.org:81/zj_edu/area/330621/css/topnew.css?v=1526914819" rel="stylesheet" type="text/css"> <!-- 再次加载样式,防止某些页面丢样式 --> <div class="m_login" id="m_login"> <form data-url="http://space.sxedu.org/index.php?r=portal/user/doLoginPortal&ajax=1" method="post" id="loginForm-1" message_id="loginTips"> <div class="item-newLogo-rect"> <div class="m_close" id="m_close"><span>关闭</span></div> <a href="###" class="logoCaseTab" id="logoCaseTab"></a> <p class="logoTips dis_none"><i class="ico1"></i><i class="ico2"></i><span>扫码登录更安全</span></p> <div class="passWord-case dis_none" name="LoginRect" > <h4>空间登录</h4> <div class="err-tips" id="_user_login_tips" style="display: none;"></div> <ul class="inputlist clearfix"> <li class="u_inputtext"> <input type="text" id="info_username-1" name="account" value="" tabindex="1" placeholder="用户名/邮箱" /> </li> <li class="u_inputpassword"> <input type="password" id="info_password-1" name="pwd" value="" tabindex="2" placeholder="请输入您的密码" /> </li> </ul> <div class="test_code clearfix dis_none"> <input id='valCode11' type="text" placeholder="请输入验证码"> <div class="codeimg"><img id="cimage" width="99" height="37" alt="" vaildata="" src="" onclick='getVcode_user_login_40();'></div> </div> <div class="login_other_rect clearfix"> <div class="rememberMe fl"> <p class="fl"><span></span></p>自动登录 </div> <input type="hidden" id="remember" name="remember" value="0 "/> <p class="fr"> <a href="http://space.sxedu.org/index.php?r=portal/resetPassword/choice" target="_top" class="forget">忘记密码?</a> <a href="http://yun.sxedu.org/index.php?r=portal/register/index" target="_top" style="color:#888">立即注册!</a> </p> </div> <input type="button" value="立即登录" class="login_btn UserLoginBtn-1 m_btn submit" /> <!--<div class="no_account">没有账号?</div>--> </div> <!--扫码部分 start--> <div name="LoginRect" class="smLoing-rect dis_none"> <h4 class="t_c ">手机扫码,安全登录</h4> <div class="sm-case" id="loadding"> <div class="smLoginRect clearfix" id="qr_div"> <div class="wxLogin-img fl" style="width:125px;height:125px;border: 5px solid #ffffff;"><div id="portal_qrcode"></div><span class="wx_bg"></span></div> <img class="wxLoign-tips-img" src="http://yun.sxedu.org:81/zj_edu/area/330621/images/index0906/wxLogin_tips_img.png" width="123" height="184" alt=""/> </div> </div> <div class="sm-invalid dis_none"> <div class="invalid-rect"> <img class="wxLogin-img" src="http://yun.sxedu.org:81/zj_edu/area/330621/images/index0906/wxLogin_img.jpg" width="125" height="125" alt=""/> <strong class="tips">二维码已失效</strong> <a href="javascript:;" id="reload_qrcode">请点击刷新</a> </div> </div> <div class="sm-text-tips cfff t_c f14"><i><img src="http://yun.sxedu.org:81/zj_edu/area/330621/images/index0906/sm_ico.png" width="27" height="27" alt="" class="mgr10"/></i>请打开<a href="http://jxb.sxedu.org">手机移动端</a>扫一扫登录</div> </div> <div class="sm-finish dis_none"> <h4 class="t_c ">手机扫码,安全登录</h4> <div class="finish-rect t_c cfff"> <img src="http://yun.sxedu.org:81/zj_edu/area/330621/images/index0906/wxLogin_finish.png" width="67" height="97" alt=""/> <p class="txt" id="QRinfo1">扫描成功!</p> <p class="f14 mgt10"><strong id="QRinfo2">请在手机上确认登录</strong></p> <p class="f14 mgt10"><a href="javascript:;" id="reload_qrcode1">取消二维码登录</a></p> </div> </div> <input type="hidden" value="" name="userAction" id="userAction"/> <input type="hidden" id="qr_token" value="" /> <input type="hidden" id="qr_status" value="" /> <!--扫码部分 end--> </div> </form> </div> <div class="m_mask" id="m_mask"></div> <script type="text/javascript" src="http://yun.sxedu.org:81/zj_edu/area/330621/js/login.js?v=1526914819"></script> <script type='text/javascript' src='http://space.sxedu.org/statics/common/js/qrcode/jquery.qrcode.min.js?v201610071452'></script> <script type='text/javascript' src='http://space.sxedu.org/statics/common/js/encrypt.min.js?v201610071452'></script> <script type="text/javascript"> $("#click_vail_user_login_40").click(function(){ getVcode_user_login_40(); }); function getVcode_user_login_40(){ $.ajax({ url:"http://yun.sxedu.org/index.php?r=portal/Vcode/GetNewCode", type:'get', data:{}, dataType:'jsonp', callback:'VailCode', // beforeSend:function(){ // $('#codeimg_user_login_40').hide(); // $('#click_vail_user_login_40').hide(); // $('#cimage_user_login_40').hide(); // $('#vail_loadding_user_login_40').show(); // }, success:function(json){ if(json){ $('#cimage').attr('src',json.imageinfo); $('#cimage').attr('vaildata',json.passCode); } else{ art.tips({content:'网络错误',type:2}); // $('#codeimg_user_login_40').show(); // $('#click_vail_user_login_40').show(); // $('#vail_loadding_user_login_40').hide(); } }, error:function(){ art.tips({content:'网络错误',type:2}); // $('#codeimg_user_login_40').show(); // $('#click_vail_user_login_40').show(); // $('#vail_loadding_user_login_40').hide(); } }); } //4.0弹框触发 function userLogin(){ //重新触发关闭扫码请求 if($('#qr_token').val() != ''){ QR_cancel(); } var userAction = arguments[0] ? arguments[0] : ''; var skipcheck = arguments[1] ? arguments[1] : ''; if(userAction) { $('#userAction').val(userAction); } //跳过检测,直接呼出登录框,减少延迟。仅在确认当前页未登录状态下使用。 if(skipcheck){ setTimeout('Login.autoinit();',200); } else{ var url = 'http://yun.sxedu.org/index.php?r=portal/user/ajaxCheckLogin&jsoncallback=?'; $.getJSON( url, function(data){ if (data.code ==='000000') { art.alert('您已登录!',function(){ if(userAction==''){ //location.reload(); location.href = "http://yun.sxedu.org/index.php?r=portal/app/index"; }else{ location.href = userAction; } }); }else{ Login.autoinit(); } } ); } } //Login.init(); loginJH('.m_login'); //登录记住我 (function(){ var oRemmberMe = $('.rememberMe'); var oSpan = oRemmberMe.find('span'); var onoff = true; onoff = true; if(onoff){ onoff = false; oSpan.animate({marginRight:17},200); oSpan.parent().removeClass('on') }else{ onoff = true; oSpan.animate({marginRight:2},200); oSpan.parent().addClass('on'); } oRemmberMe.click(function(){ if(onoff){ onoff = false; oSpan.animate({marginRight:17},200); oSpan.parent().removeClass('on'); $("#remember").val('0'); }else{ onoff = true; oSpan.animate({marginRight:2},200); oSpan.parent().addClass('on'); $("#remember").val('1'); } }) getVcode_user_login_40(); })() //登录处理 $('.UserLoginBtn-1').on("click",function(){ login_portal_index(); }); $('#m_login input').keydown(function(event){ if(event.keyCode==13){ // enter 键 login_portal_index(); } }); function login_portal_index(){ var userId = $('#info_username-1').val(); var userPsw = $('#info_password-1').val(); var remember = $('#remember').val(); var submit_url = $('#loginForm-1').attr('data-url'); var vaildata = $('#cimage').attr('vaildata'); var valCode = $('#valCode11').val(); if(userId == ''){ $('#_user_login_tips').show(); $('#_user_login_tips').html('<em class="close fr" onclick="closep(this);"></em><i class="ico"></i>请输入用户名');return false; } if(userPsw == ''){ $('#_user_login_tips').show(); $('#_user_login_tips').html('<em class="close fr" onclick="closep(this);"></em><i class="ico"></i>请输入密码');return false; } userId = encode_string(userId); userPsw = encode_string(userPsw); // if(valCode == ''){ // $('#_user_login_tips').show(); // $('#_user_login_tips').html('<em class="close fr" onclick="closep(this);"></em><i class="ico"></i>验证码不能为空');return false; // } $('.login_btn').val('正在登录...'); $('.login_btn').die("click"); //ajax调用 $.ajax({type:"POST", dataType:"jsonp",cache:false, url:submit_url, data:{userId:userId, userPsw:userPsw, remember:remember,vaildata:vaildata, valCode:valCode,encrypt:'encrypt'}, success: function(data){ if(data){ if(data.code!='000000' && data.code!='000003'){ $('#cimage_user_login_40').click(); $('.login_btn').val('立即登录'); $('.login_btn').live("click",function(){ login_portal_index(); }); $('#valCode11').val(''); $('#_user_login_tips').show(); $('#_user_login_tips').html('<em class="close fr" onclick="closep(this);"></em><i class="ico"></i>'+data.message); if ( data.code == 222222 || data.code == 123456) { $('#valCode11').parent().show(); } $('#valCode11').next('img').click(); }else if(data.code=='000003'){ $('#cimage_user_login_40').click(); $('.login_btn').val('立即登录'); $('.login_btn').live("click",function(){ login_portal_index(); }); $('#valCode11').val(''); $('#_user_login_tips').show(); $('#_user_login_tips').html('<em class="close fr" onclick="closep(this);"></em><i class="ico"></i>'+data.message); window.parent.location.href = "http://space.sxedu.org"; }else{ $('#_user_login_tips').hide(); $('.login_btn').val('登录成功,正在跳转...'); //联合登录 url = data.url; uc_login(userId,userPsw,url,data.platformCode,data.ppd,remember); } } }, error:function(XMLHttpRequest, textStatus, errorThrown){ $('#cimage_user_login_40').click(); if(textStatus == 'timeout'){ $('#_user_login_tips').show(); $('#_user_login_tips').html('<em class="close fr" onclick="closep(this);"></em><i class="ico"></i>当前网络连接不可用!'); } else{ $('#_user_login_tips').show(); $('#_user_login_tips').html('<em class="close fr" onclick="closep(this);"></em><i class="ico"></i>当前网络连接不可用!'); } $('.login_btn').val('立即登录'); $('.login_btn').live("click",function(){ login_portal_index(); }); } }); } function closep(obj){ $(obj).parent().hide(); } function ajax_submit(frm){ if($(frm).attr('href')!=undefined){ frm.action = $(frm).attr('href') if(frm.method == '' || frm.method == undefined){ frm.method = 'get' } } ajaxSubmit(frm, function(data){ if(data.content!=undefined && data.content!=''){ var obj = data; }else{ var obj = { content:$(data).contents('.zz_changePage').find('.wd').text(), type :2, time:1000 } } if(obj.content=='schooltp_redirect_jump'){ //延迟跳转页面 setTimeout(function(){ //如果设置了跳转页面,就跳转,没有设置页面不跳转,不刷新 if(obj.url!='' && obj.url!=undefined){ if(obj.url==1)window.location.reload(); else location.href = obj.url; } flag = true; },obj.time); return false; } //指定显示信息 var message_id = $(frm).attr('message_id') if(message_id!=undefined && message_id!=''){ //$('#'+message_id).html(obj.content); var a = obj.callback; if(a!=''){ if(typeof a == 'function'){ a(); }else{ eval(a); } } }else{ //显示提示信息 art.tips({ content:obj.content, type:obj.type, time:obj.time, callback:obj.callback }) } //延迟跳转页面 setTimeout(function(){ //如果设置了跳转页面,就跳转,没有设置页面不跳转,不刷新 if(obj.url!='' && obj.url!=undefined){ if(obj.url==1)window.location.reload(); else location.href = obj.url; } flag = true; },obj.time); }); return false; } //二维码登录处理 start function getQRcode(times){ $.ajax({ url:'http://space.sxedu.org/index.php?r=api/QRcode/GetQRcontent', type: "GET", dataType: 'jsonp', jsonp: 'callback', jsonpCallback:'success_QRcode', beforeSend:function(){ $('#portal_qrcode').empty(); }, success:function(json){ $('#portal_qrcode').empty(); jQuery('#portal_qrcode').qrcode(json); $('#qr_token').val(json.token); $('.sm-invalid').hide(); $('.sm-case').show(); getStatus(); }, error:function(){ $('.sm-case').hide(); $('.sm-invalid').show(); if(times < 5){ times += 1; setTimeout('getQRcode('+times+');',1000); } } }); } $('#logoCaseTab').click(function(){ //避免冲突,延迟执行 setTimeout(function(){ if($('#logoCaseTab').attr('class') == 'logoCaseTab CaseTab2'){ getQRcode(); } else{ QR_cancel(); } },5); }); $('#reload_qrcode').click(function(){ QR_cancel(); getQRcode(); }); $('#reload_qrcode1').click(function(){ QR_cancel(); $('.logoTips').children('span').html('扫码登录更安全'); $('.sm-finish').hide(); }); //获取当前二维码扫码进度 function getStatus(){ var token = $('#qr_token').val(); var L_status = $('#qr_status').val(); $.ajax({ url:"http://space.sxedu.org/index.php?r=api/QRcode/GetStatus&token="+token+'&L_status='+L_status, type: "GET", dataType: 'jsonp', jsonp: 'callback', jsonpCallback:'success_Status', success:function(json){ if(json == null){ getStatus(); } else{ $('#qr_status').val(json.code); if(json.code == 99 ){ getStatus(); } if(json.code == 1){ $('.smLoing-rect').hide(); $('.sm-finish').show(); getStatus(); } else if(json.code == 3){ //getQRcode(); if($('#logoCaseTab').attr('class') == 'logoCaseTab CaseTab2'){ $('.smLoing-rect').hide(); $('.passWord-case').show(); $('#logoCaseTab').removeClass('CaseTab2'); } $('.logoTips').children('span').html('扫码登录更安全'); $('.sm-finish').hide(); } else if(json.code == 2){ $('#QRinfo1').html('用户已确认'); $('#QRinfo2').html('正在登录...'); $('#reload_qrcode1').remove(); $.ajax({ url:'http://space.sxedu.org/index.php?r=api/QRcode/Login&token='+token, type: "GET", dataType: 'jsonp', jsonp: 'callback', jsonpCallback:'success_login', success:function(json){ if(json.code == '000000'){ if(json.account && json.ccd){ //用户平台 $.ajax({type:'GET', dataType:'jsonp', cache:false, async:false, url:'http://space.sxedu.org/index.php?r=uc/site', data:{platformCode:json.platfromcode}, success: function(data){ if(data){ var n = data.length; for(var i=0; i<data.length; i++){ var site_domain = data[i].domain; $.ajax({type:'GET', dataType:'jsonp', cache:false, url:'http://'+site_domain+'/index.php?r=uc/login', data:{account:json.account, ccd:json.ccd,remember:0}, success: function(jsonp){ n = n - 1; if (n == 0){ //window.parent.location.href = url; //redirect_url('timeout'); $('#QRinfo2').html('登录成功,正在跳转...'); redirect_url('timeout'); } }, error: function(){ n = n - 1; if (n == 0){ //window.parent.location.href = url; //redirect_url('timeout'); $('#QRinfo2').html('登录成功,正在跳转...'); redirect_url('timeout'); } } }); } }else{ //window.parent.location.href = url; //redirect_url('timeout'); $('#QRinfo2').html('登录成功,正在跳转...'); redirect_url('timeout'); } }, error:function(){ //redirect_url('timeout'); $('#QRinfo2').html('登录成功,正在跳转...'); redirect_url('timeout'); } }); } else{ $('#QRinfo2').html('登录成功,正在跳转...'); redirect_url('timeout'); } } else{ $('#QRinfo2').html(json.msg); } } }); } else if(json.code == 6){ $('.sm-finish').hide(); $('.smLoing-rect').show(); $('.sm-case').hide(); $('.sm-invalid').show(); } } }, error:function(){ getStatus(); } }); } function QR_cancel(){ var token = $('#qr_token').val(); $.getJSON("http://space.sxedu.org/index.php?r=api/QRcode/cancel&token="+token+'&jsoncallback=?'); } //二维码登录处理 end //登录跳转 function redirect_url(param){ var url = ''; var skipurl = ''; var skip = $.trim($('#userAction').val()); if(skip == 'UserSet'){ var currentHost = 'http://'+window.location.host; if(currentHost.indexOf('http://yun.sxedu.org') !== -1 ){ //测试要求连接(r=portal/usecount/anindex)登录成功后,不要跳转到个人中心,所以增加下面的if条件,详见jira(EDUZJTHREE-7394) if(location.href.indexOf('r=portal/usecount/anindex') === -1){ $.ajax({ url:'http://yun.sxedu.org/index.php?r=portal/user/AjaxRedirectJson', async:false,dataType:'json', success:function(data){ url = data.url; } }); if(url){ skipurl = url; } else{ skipurl = window.location.href; } } } else{ skipurl = window.location.href; } } else if(skip){ skipurl = skip; } else{ //skipurl = 'http://yun.sxedu.org/index.php?r=portal/app/index'; skipurl = window.location.href; } var reg = /#/g; skipurl = skipurl.replace(reg,'');; if(param == 'timeout'){ setTimeout('window.location.href = "'+skipurl+'";',500); } else{ window.location.href = skipurl; } } //平台联合登录 function uc_login(account,pwd,url,platformCode,pd,remember) { //用户平台 $.ajax({type:'GET', dataType:'jsonp', cache:false, async:false, url:'http://space.sxedu.org/index.php?r=uc/site', data:{platformCode:platformCode}, success: function(data){ if(data){ var n = data.length; for(var i=0; i<data.length; i++){ var site_domain = data[i].domain; $.ajax({type:'GET', dataType:'jsonp', cache:false, url:'http://'+site_domain+'/index.php?r=uc/login', data:{account:account, pd:pd,remember:remember, encrypt:'encrypt'}, success: function(jsonp){ n = n - 1; if (n == 0){ //window.parent.location.href = url; redirect_url('timeout'); } }, error: function(){ n = n - 1; if (n == 0){ //window.parent.location.href = url; redirect_url('timeout'); } } }); } }else{ //window.parent.location.href = url; redirect_url('timeout'); } }, error:function(){ redirect_url('timeout'); } }); } $(function($){ $('#toUserLogin').bind('click',function(){ userLogin(); }) }); $(function($){ $('#view_into_app').bind('click',function(){ userLogin($(this).attr('url')); }) }); $(function($){ $('#view_add_app').bind('click',function(){ userLogin(); }) }); //平台联合注销 $('a.outSpace,a.exitBtn').live("click",function(){ var platformCode = ''; if(platformCode == ''){ platformCode = $('#logoutPlatformCode').val(); } var $this = $(this); var href = $this.attr('href'); $this.attr('href', 'javascript:;'); //用户平台 $.ajax({ type:'GET', dataType:'jsonp', cache:false, async:false, url:'http://space.sxedu.org/index.php?r=uc/site', data:{platformCode:platformCode}, success: function(data){ if(data){ var n = data.length; for(var i=0; i<data.length; i++){ var site_domain = data[i].domain; $.ajax({ type:'GET', dataType:'jsonp', cache:false, timeout:5000, url:'http://'+site_domain+'/index.php?r=uc/logout', success: function(jsonp){ n = n - 1; if (n == 0){ window.parent.location.href = href; } }, error: function(){ n = n - 1; if (n == 0){ window.parent.location.href = href; } } }); } }else{ window.parent.location.href = href; } } }); return false; }); </script> <!-- }}} --> <!-- qq pop begin --> <div class="popWrap feedback-popbox" style="width:685px;position:absolute; display:none" id="qqfeedback"> <div class="popInner"> <a href="#" name="close" class="close" id="closebox"><img src="http://yun.sxedu.org:81/zj_edu/space/images/ico/close-pop.png" width="19" height="19" /></a> <h2>用户反馈</h2> <div class="cj_userback"> <p class="cd18959">使用以下表格将您的意见或者使用中遇到的问题提交给我们,我们将会仔细阅读您的反馈。</p> <p class="line40 c000">反馈内容:<a style="text-decoration:none;">(限制5-1000字)</a><span class='ca82929'></span></p> <div class="cj_userbackm clearfix"> <div class="fl"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="2"><textarea name="content" cols="" rows="" class="inp"></textarea></td> </tr> <tr> <td align="right" width="50">QQ号:</td> <td><input name="qq" type="text" class="inp" id="qq" /><span class='ca82929'></span></td> </tr> <tr> <td align="right">验证码:</td> <td><input name="verify" type="text" class="inp" /><span class='ca82929'></span></td> </tr> <tr> <td> </td> <td><a href="#"><img src="" width="90" id="verify"/></a><a href="javascript:void(0);" id="chan" style="margin-left:10px;">换一张</a></td> </tr> <tr> <td> </td> <td class="padt30"><a class="ABtn-Blue-14 view-state" href="javascript:void(0);" id="btn_14">确定</a> <a href="javascript:void(0);" class="ABtn-Gray-14" id="gra_14">重置</a></td> </tr> </table> </div> </div> </div> </div> </div> <!-- qq pop end --> <!-- 弹窗背景遮罩.start --> <div class="dis_none" id="screen"></div> <!-- 弹窗背景遮罩.end --> <!--弹窗-反馈成功 start--> <div class="popWrap feedback-success-popbox" style="width:460px;position:absolute;display:none" id="successfeed"> <div class="popInner"> <a href="javascript:void(0);" class="close" name="close" id="close"><img src="http://yun.sxedu.org:81/zj_edu/space/images/ico/close-pop.png" width="19" height="19" /></a> <h2>系统提示</h2> <div class="pd20 clearfix"> <div class="fl"><img src="http://yun.sxedu.org:81/zj_edu/portal/images/ico/true.png"/></div> <div class="fl f14 c555 pdl20"><p>反馈信息提交成功!</p> <p>衷心感谢您的宝贵意见,我们将尽快处理!</p></div> <p class="pdtb20 tc cl"><a href="javascript:void(0);" class="ABtn-Blue-12" id="btn_12">确定</a></p> </div> </div> </div> <script type="text/javascript"> var verify = { verifyContent:function(){ if($('textarea[name=content]').val() == ''){ $(".line40").children("a").text(""); $(".line40").children("span").text("请输入反馈内容!"); //$('textarea[name=content]').focus(); $('textarea[name=content]').removeClass('focus'); $('textarea[name=content]').addClass('focus'); return false; }else if($('textarea[name=content]').val().length<5 || $('textarea[name=content]').val().length>1000){ $(".line40").children("a").text(""); $(".line40").children("span").text("请输入反馈内容在5-1000字!"); //$('textarea[name=content]').focus(); $('textarea[name=content]').removeClass('focus'); $('textarea[name=content]').addClass('focus'); return false; }else{ $('textarea[name=content]').removeClass('focus'); $(".line40").children("span").text(""); $(".line40").children("a").text("(限制5-1000字)"); return true; } }, verifyQQ:function(){ if($('input[name=qq]').val() == ''){ $('input[name=qq]').next("span").text("请输入QQ号!"); //$('input[name=qq]').focus(); $('input[name=qq]').removeClass('focus'); $('input[name=qq]').addClass('focus'); return false; }else if($('input[name=qq]').val().length < 5){ $('input[name=qq]').next("span").text("qq不能少于5位"); //$('input[name=qq]').focus(); $('input[name=qq]').removeClass('focus'); $('input[name=qq]').addClass('focus'); return false; }else if(!validate()){ $('input[name=qq]').next("span").text("请正确输入qq号"); //$('input[name=qq]').focus(); $('input[name=qq]').removeClass('focus'); $('input[name=qq]').addClass('focus'); return false; }else{ $('input[name=qq]').removeClass('focus'); $('input[name=qq]').next("span").text(""); return true; } }, verifyNum:function(){ if($('input[name=verify]').val() == ''){ $('input[name=verify]').next("span").text("请输入验证码!"); //$('input[name=verify]').focus(); $('input[name=verify]').removeClass('focus'); $('input[name=verify]').addClass('focus'); return false; }else{ $.get('/index.php?r=portal/site/verifyNum'+'&verify='+$('input[name=verify]').val(),function(data){ if(data!=1){ $('input[name=verify]').next("span").text("验证码错误!"); //$('input[name=verify]').focus(); $('input[name=verify]').removeClass('focus'); $('input[name=verify]').addClass('focus'); return false; }else{ $('input[name=verify]').removeClass('focus'); $('input[name=verify]').next("span").text(""); $('input[name=verify]').next("span").append('<img src="http://yun.sxedu.org:81/zj_edu/portal/images/ico/ok.png"/>'); return true; } }); } } } $('textarea[name=content]').blur(function(){ if(verify.verifyContent()){ $('textarea[name=content]').removeClass('focus'); } }) $('input[name=qq]').blur(function(){ if(verify.verifyQQ()){ $('input[name=qq]').next("span").text(''); $('input[name=qq]').next("span").append('<img src="http://yun.sxedu.org:81/zj_edu/portal/images/ico/ok.png"/>'); $('input[name=qq]').removeClass('focus'); } }) $('input[name=verify]').blur(function(){ if(verify.verifyNum()){ $('input[name=verify]').next("span").text(''); $('input[name=verify]').removeClass('focus'); } }) $("#btn_14").bind('click',function(){ verify.verifyContent(); verify.verifyQQ(); verify.verifyNum(); if($('textarea[name=content]').val() != '' && $('input[name=qq]').val() != '' && $('input[name=qq]').val().length >= 5 && validate() && $('input[name=verify]').val() != ''){ $.ajax({ type:'post', url:'index.php?r=portal/site/addfeed', data:'content='+$('textarea[name=content]').val()+'&qq='+$('input[name=qq]').val()+'&verify='+$('input[name=verify]').val(), datatype:'json', success:function(data){ if(data == 1){ var left = document.getElementById('qqfeedback').offsetLeft; var top = document.getElementById('qqfeedback').offsetTop+document.body.scrollTop; document.getElementById('successfeed').style.left = left+110+"px"; document.getElementById('successfeed').style.top = top+100+"px"; $("#successfeed").show(); document.getElementById('qqfeedback').style.display = "none"; $("#btn_12").click(function(){ window.location.href="index.php"+window.location.search; }) $("#close").click(function(){ window.location.href="index.php"+window.location.search; }) }else if(data == 0){ alert("反馈失败"); }else{ $('input[name=verify]').next("span").text(""); $('input[name=verify]').next("span").text("验证码错误!"); $('input[name=verify]').focus(); $('input[name=verify]').removeClass('focus'); $('input[name=verify]').addClass('focus'); } } }) }else{ return false; } }) function validate(){ var reg = /^[1-9]\d{4,13}$/; var obj = document.getElementById("qq"); if(!reg.test(obj.value)){ return false; }else{ return true; } } $('#gra_14').click(function(){ $('textarea[name=content]').val(""); $('input[name=qq]').val(""); $('input[name=verify]').val(""); $('.inp').removeClass('focus'); }) $('#closebox').click(function(){ $('textarea[name=content]').val(""); $('input[name=qq]').val(""); $('input[name=verify]').val(""); $('.inp').removeClass('focus'); }) $("#chan").click(function(){ //var img = document.getElementById("verify"); //var src = $("#verify").attr("src"); var src = "/index.php?r=portal/site/verify"+"&tm="+Math.random(); $("#verify").attr("src",src); }) </script> <script type="text/javascript" src="http://space.sxedu.org/protected/widgets/heartbeat/js/heartbeat.js?url=http%3A%2F%2Fspace.sxedu.org"></script> </body> </html>