Files
advertising/home/js/password.js
Administrator 0e902893ca 1.0-version
2019-04-11 15:54:34 +08:00

36 lines
661 B
JavaScript

$(document).ready(function(){
/*
提交
*/
$("body").unbind('click');
$("body").click(function(event){
var _id=$(event.target).attr("id");
if (_id=="pw_btn")
{
clearErrorTips("tip","waring");
var phone=trimAll($("[name=phone]").val(),"g");
//var number=trimAll($("[name=number]").val(),"g");
if (phone=="")
{
setErrorTips("phone_tip","errorTips",message[6]);
return ;
}else
{
var bool=checkPhone(phone);
if (bool==false)
{
setErrorTips("phone_tip","errorTips",message[11]);
return ;
}
}
var msg={"telephone":phone};
sendClientMsg(root+"Login/getPassword",msg,"");
}
});
});