Discuz! Board

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

function

[複製鏈接]

2565

主題

2622

帖子

1萬

積分

管理員

Rank: 9Rank: 9Rank: 9

積分
10872
跳轉到指定樓層
樓主
發表於 2016-10-7 14:23:54 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
萬傢賬號登錄 × 合作賬號登錄 微信登錄 新浪登錄 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-10-06%2FB85A25561EF00B36.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() { $('#delay').show().html('(' + (delay--) + ')'); if(delay < 1) { console.log('end'); $('#span_send').html('發送驗証碼'); $('#span_send_code').removeClass('btn_login_veri_no'); cl
驗証即登錄,未注冊將自動創建萬傢賬號
回復

使用道具 舉報

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

本版積分規則

Archiver|手機版|小黑屋|台灣健康養生論壇  

seo, 益生菌, 冷凍減脂, 未上市股票, 翻譯社, YKS沙發, 團體服, 夾克, 背心, 廚具樹林當舖, 汽車借款免留車, 當舖, 台北市花店, 台北當舖, 未上市, 壯陽藥, 壯陽藥推薦, 最有效的壯陽藥, 滑鼠墊T恤, 聚左旋乳酸, polo衫, 團體服, 隆乳, 牙周病, 植牙, 牙齒美白, 白內障近視雷射傳感器, Load cell, 水彩畫室素描美體SPA, 塑身, 飄眉, 割雙眼皮植牙診所, 贈品, 禮品, 搬家公司, 抽脂價格, 隔熱紙未上市, 音波拉皮, 戒煙產品預防血栓中風心腦血管保健食品增加白血球提升免疫力

GMT+8, 2024-5-3 04:20 , Processed in 0.864940 second(s), 24 queries .

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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