1(function () { 2 var phoneReg = 3 /^(0|86|17951)?(13[0-9]|15[012356789]|16[0-9]|17[0-9]|18[0-9]|14[0-9]|19[0-9])[0-9]{8}$/; 4 5 // 页é¢äº¤äº 6 7 // æ¾ç¤ºé误æç¤ºå¼¹çª 8 function handleOpenModal (errorTip) { 9 $('.error-info').text(errorTip); 10 $('#errorModal').css('display', 'flex').hide().fadeIn(300); 11 } 12 13 // ç´æ¥ç»å½å¹¶æ¨éæ°æ® 14 function postLoginTo(phone) { 15 // 1. æ¬å°"ç»å½"ç¶æï¼å卿æºå· 16 localStorage.setItem("is_jjs_login_ldf", phone); 17 18 // 2. è°ç¨æ°æ®æ¨éæ¥å£ 19 $.ajax({ 20 type: "get", 21 url: "https://apigateway.pxo.cn/bdService/json.html", 22 data: { 23 form_id: 2228, 24 filed10828: phone, 25 source: window.location.href, 26 }, 27 dataType: "jsonp", 28 success: function (data) { 29 if (data && data.code === 200) { 30 console.log('æ°æ®æ¨éæåï¼ææºå·ï¼', phone); 31 } else { 32 console.log('æ°æ®æ¨é失败æè¿åå¼å¸¸ï¼', data); 33 } 34 }, 35 error: function (err) { 36 console.log('æ°æ®æ¨éæ¥å£é误ï¼', err); 37 } 38 }); 39 40 // 3. å ³éç»å½å¼¹çª & é置表å 41 $('#loginModal').fadeOut(300); 42 $('#mobile2').val(''); 43 44 console.log('ç»å½æåï¼æ¬å°ï¼ï¼ææºå·ï¼', phone); 45 } 46 47 // ç¹å»ç»å½æé® 48 $(".submit").click(function() { 49 var phone = $("#mobile2").val(); 50 51 if (!phoneReg.test(phone)) { 52 handleOpenModal("请è¾å ¥æ£ç¡®çææºå·ï¼"); 53 $("#mobile2").focus(); 54 return false; 55 } 56 57 postLoginTo(phone); 58 }); 59 60 // å车é®ç»å½ 61 $("#mobile2").keypress(function(e) { 62 if (e.which === 13) { 63 $(".submit").click(); 64 } 65 }); 66}()) 67
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.