...
|
...
|
@@ -212,24 +212,24 @@ |
|
|
var yzm;
|
|
|
var phone;
|
|
|
function Message_validation(){
|
|
|
yzm = $('#Ver_code').val();
|
|
|
phone = $('#phone').val();
|
|
|
if(phone == '' || !(/^1[34578]\d{9}$/.test(phone))){
|
|
|
alert('手机号有错误,请重新输入');
|
|
|
}else if(yzm == ''){
|
|
|
alert('请输入验证码');
|
|
|
}else{
|
|
|
$.post("{:url('Personalcenter/is_money_code')}",{yzm:yzm,phone:phone},function(data){
|
|
|
console.log(data)
|
|
|
if(data != false){
|
|
|
$(".tx_maskPhone").css("display","none");
|
|
|
$(".tx_mask").css("display","block");
|
|
|
}else{
|
|
|
alert('验证码错误!');
|
|
|
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
// yzm = $('#Ver_code').val();
|
|
|
// phone = $('#phone').val();
|
|
|
// if(phone == '' || !(/^1[34578]\d{9}$/.test(phone))){
|
|
|
// alert('手机号有错误,请重新输入');
|
|
|
// }else if(yzm == ''){
|
|
|
// alert('请输入验证码');
|
|
|
// }else{
|
|
|
// $.post("{:url('Personalcenter/is_money_code')}",{yzm:yzm,phone:phone},function(data){
|
|
|
// console.log(data)
|
|
|
// if(data != false){
|
|
|
// $(".tx_maskPhone").css("display","none");
|
|
|
// $(".tx_mask").css("display","block");
|
|
|
// }else{
|
|
|
// alert('验证码错误!');
|
|
|
//
|
|
|
// }
|
|
|
// });
|
|
|
// }
|
|
|
}
|
|
|
</script>
|
|
|
<script>
|
...
|
...
|
|