Discuz! Board

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

'#span_send_code'

[複製鏈接]

2839

主題

2841

帖子

1萬

積分

管理員

Rank: 9Rank: 9Rank: 9

積分
10025
跳轉到指定樓層
樓主
發表於 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型沙發, 未上市刷卡換現金白木耳, 信用卡換現金新竹眼科, 爪蓋, 汽機車借款, 未上市, 床墊, 熱門加盟, 飲食加盟, 小資本加盟創業, 小吃加盟店排行榜 音波拉皮, 樹林當舖房屋二胎, 中古沖床, 中古機械買賣, 禮品, 贈品, 當舖, 汽車借款, 未上市, 荷重元, Force Sensor, load cell, 悠遊卡套, 台北網頁設計, 飲水機, 呼吸照護, 滑鼠墊, 床墊, 高雄當舖, 支票借款, 保暖護膝, 雄厚娛樂城, 鉅城娛樂城, 大老爺, 九州娛樂城, Rg娛樂城, 88win娛樂城武財神娛樂城財神娛樂城

GMT+8, 2026-8-19 20:43 , Processed in 0.046254 second(s), 21 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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