Discuz! Board

 找回密碼
 立即註冊
搜索
熱搜: 活動 交友 discuz
查看: 2154|回復: 0
打印 上一主題 下一主題

'#span_send_code'

[複製鏈接]

2586

主題

2588

帖子

9117

積分

管理員

Rank: 9Rank: 9Rank: 9

積分
9117
跳轉到指定樓層
樓主
發表於 2016-9-17 20:57:04 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
萬傢賬號登錄 × 合作賬號登錄 微信登錄 新浪登錄 QQ登錄 短信登錄
驗証即登錄,未注冊將自動創建萬傢賬號
var error_times = 0; $(function(){ //console.log(error_times); if ( error_times >= 5 ) { $('#liimgcode').show(); } // 默認不加載圖片驗証碼,彈出框顯示時加載 if ( $('#pop_login').is(':visible') ) { // 賬號驗証碼 $('#pop_imgcode').attr('src', ''+Math.random()*5); } $('#popup-submit').click(function(){ // 加載驗証 //_pop_login.login(); }); // 發送驗証碼 $(".btn_login_veri").click(function(){ // $("#wrapOut").after($(".wjyBlank_2")); // $("#wrapOut").after($(".login_mod_veri_pop")); // $(".wjyBlank_2").css({"width"("#wjyBlank").width(),"height"("#wjyBlank").height()}) // $(".wjyBlank_2,.login_mod_veri_pop").show(); // $(".login_mod_veri_pop").css({"top": $("#wrapOut").position().top + 100,貨架, "left": $("#wrapOut").position().left + 200, }); }); $(".btn_colse_veri_pop").click(function(){ $(".wjyBlank_2,台北機車借款,.login_mod_veri_pop").hide(); }); $("#btn_reg").unbind("click"); $("#btn_reg").bind('click',function(event) { if ( $('#m_mobile').val() == '' ) { mobile_tips('請填寫手機號'); return false; } if ( ! /1[0-9]{10}/.test($('#m_mobile').val()) ) { mobile_tips('請填寫正確手機號格式'); return false; } if( $('#mobilecode').val() == '' ){ mobile_tips('請獲取手機驗証碼'); return false; } // 驗証是否正確 // if ( parseInt($('#mobile_code_flag').val()) != 1 ) { // mobile_tips('手機驗証碼不正確'); // return false; // } // 手機驗証碼檢測 $.ajax({ type: "post", dataType: 'jsonp', jsonp: 'callback', url: site_url.user + "/signup/checkMobileCode", data: "code=" + $('#mobilecode').val(), success: function(json){ if (json.success) { $('#mobile_code_flag').val(1); do_post($('#m_mobile').val(), $('#mobilecode').val()); } else { mobile_tips(json.message); $('#mobile_code_flag').val(0); } } }); }); }); function do_post(mobile,系統廚具, mobilecode){ $.ajax({ type: "OST", dataType: 'jsonp', jsonp: 'callback', url: site_url.user + "/signup/step1Phone", data: "mobile="+mobile+"&mobilecode=" + mobilecode, success: function(json){ if (json.success) { // 登錄 $.wjybox.hide(); if($("#app_name").val() == 'LsNews' || $("#app_name").val() == 'LsNewsV2' ) { lsNewsStatus(); } else { pop_login_callback(); } } else { // 彈出錯誤 mobile_tips(json.info); } } });
} function mobile_tips(msg){ $('#phone_error_tip').show().find('span').html(msg).parent().fadeOut(3000); // } // 登錄
var _pop_login = { err_times: error_times, login_url: "", flash_callback: function(){ $('#popup-submit').html('登錄'); var response = FlashHelper.getFlash().GetVariable("retText"); outarr = response.split('|'); if ( parseInt(outarr[1]) > 3 ) { } if(outarr[0] == 'error'){ _pop_login.err_times++; console.log(_pop_login.err_times); // 驗証碼顯示 if(_pop_login.err_times >= 5){ $('#liimgcode').show(); } $("#error_tip").show().find('span').html(delHtmlTag(outarr[2])); } else if ( outarr[0] == 'error_img' ) { $("#error_tip").show().find('span').html('驗証碼錯誤'); } else { $.wjybox.hide(); if($("#app_name").val() == 'LsNews' || $("#app_name").val() == 'LsNewsV2' ) { lsNewsStatus(); } else { pop_login_callback(); } } }, login: function(){ var name = $("#user_name").val(); var pass = $("#user_pass").val(); var imgcode = $('#imgcode').val(); var method = 'post'; var body = "user_account="+name+"&password="+pass+"&imgcode="+imgcode+"&callback=callback"; var contentType = 'application/x-www-form-urlencoded'; var fs = FlashHelper.getFlash(); fs.XmlHttp(_pop_login.login_url, "_pop_login.flash_callback", method, body, contentType); $('#popup-submit').html('登錄中'); }
} //第三方登陸
function thirdLogin(name,觀音抽水肥,text){ var login_site_url = ""; window.location.href = login_site_url+"/login?snsapi="+name+"&backUrl=http%3A%2F%2F365jia.cn%2Fnews%2F2016-09-12%2F87DFAE9405C48D6A.html";
} ;(function () { if (!($(".ipt_mod_value").length > 0)) return false; $(".ipt_mod_value").each(function(){ var ff = $(this).val(); $(this).val(ff); $(this).focus(function(){ console.log(ff) if ($(this).val()==ff){ $(this).val(""); $(this).css("color","#a9a9a9"); } }); $(this).blur(function(){ console.log(ff) if ($(this).val()==""){ $(this).val(ff); $(this).css("color",碳粉匣,"#a9a9a9"); } }); }); $(" .login_ipt_mod_password").focus(function(){ $(this).parent().find(".ipt_mod_password_tips").hide(); }); $(".login_ipt_mod_password").blur(function(){ if ( $(this).val() == "" ) { $(this).parent().find(".ipt_mod_password_tips").show(); }; }); }) (); function delHtmlTag(str)
{ return str.replace(/]+>/g,"");//去掉所有的html標記
} function lsNewsStatus(){ $.getJSON('/login_ajax.php?' + Math.random(), function(data) { if(data.msg_c>0 && !$.cookie('top_login_msg_box_close')) { $("#top_login_channel_info").show(); $('#msg_c').text(data.msg_c); } $('#userProfileInfo').show(); $('#top_login_form').hide(); if(data.is_admin) $("#top_login_is_admin").html('|筦理中心'); $('#userNickname').html(''+data.nickname+''); $('#c_type').val(2); $('#p_login,#reply_login').each(function(){ $(this).hide(); }); $('#p_logout,#reply_logout').each(function(){ $(this).show(); }); $('.nickname').each(function(){ $(this).html(data.nickname); }); });
} // 手機登錄
$(function(){ $("#span_send_code").unbind("click"); $("#span_send_code").bind("click", function(event) { $('#span_send').html('圖形驗証碼驗証中'); $.ajax({ type: "get", url: site_url.user+"/signup/checkImgCode", dataType: 'jsonp', jsonp: "callback",湖口通馬桶, data: "img_code=" + $('#img_code').val(), success: function(json){ if (!json.success) { $('#span_send').html('發送驗証碼'); mobile_tips(json.info); $("#img_code_flag").val(0); $("#checkcode").attr("src", ''+Math.random()*5 ); } else { console.log('img code right'); $('#span_send').html('發送驗証碼中'); $("#img_code_flag").val(1); // 發送驗証碼 RegGetBindCode(); } } }) }); $("#mobilecode").unbind("click"); $("#mobilecode").bind("click", function(event){ }); }); var reg_hdl_delay = null; function RegGetBindCode() { if(reg_hdl_delay){ alert("對不起,一分鍾內,請不要重復提交!"); return; } if( $("#img_code_flag").val() == 0 ){ mobile_tips("圖片驗証碼不正確 !"); //$("#img_code").focus(); return false; } console.log('bind code'); $.ajax({ type: 'get', dataType: 'jsonp', jsonp: "callback", url: '', data: 'phone='+$("#m_mobile").val() + '&img_code='+$("#img_code").val() + '&from=lock', success: function(ret){ if(ret.success) { $('#span_send_code').addClass('btn_login_veri_no'); mobile_tips(ret.message); var delay = 60; reg_hdl_delay = setInterval(function() {
回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

Archiver|手機版|小黑屋|禮品交流論壇  

空壓機 , 電梯, 堆高機, 中古沖床, 音波拉皮, 汐止汽車借款, 音波拉皮, 汐止當舖, 汐止免留車, 支票借款, 票貼, 紙杯植纖碗廚餘回收廢鐵回收, 防盜, 樹林當舖, 現金版, 真人百家樂彰化當舖土城當舖房屋二胎機車借款免留車, 汽車借款免留車, 台中搬家系統櫃沙發, L型沙發, 翻譯社, 刷卡換現金白木耳, 贈品, 未上市股票信用卡換現金團體服, 新竹眼科, 飄眉, 汐止汽車借款, 平鎮當舖, 中壢當舖免留車, 爪蓋, LPG壯陽藥Polo衫, 制服, 新店汽車借款, 桃園室內設計, 彰化汽車借款, 汽機車借款, 封口機, 百家樂, 未上市, 滑鼠墊, 床墊, 沙發, 未上市台北招牌設計, 推薦招牌, 未上市股票, 珍珠奶茶, 熱門加盟, 飲食加盟, 小資本加盟創業, 小吃加盟店排行榜 歐冠杯決賽音波拉皮, 不舉, 房屋二胎, 傳感器, 台北網頁設計, 飲水機, 荷重元, 呼吸照護, 滑鼠墊, 床墊, 高雄當舖, 圍裙, T shirt 樹林當舖悠遊卡套紫錐花禮品, 支票借款, 支票貼現, 支票借錢, 保暖護膝, 泡腳桶, 紗窗清潔刷, 雄厚娛樂城, 鉅城娛樂城, 168娛樂城, 九州娛樂城, 玖天娛樂城, gs娛樂城, i88娛樂城線上娛樂城台灣運動彩券首頁運動彩場中投注場中投注時間表台灣運彩足球賠率抗老茶, 去除雀斑, 生髮噴霧,

GMT+8, 2024-5-1 04:21 , Processed in 0.382916 second(s), 21 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表