注册
注册页面
手机号:
密码:
验证码:
function registerUser() {
var mobile = document.getElementById("mobile").value;
var password = document.getElementById("password").value;
var idcode = document.getElementById("idcode").value;
if(mobile==''){
alert(" 请输入电话号码!");
return;
}
if(password==''){
alert(" 请输入密码!");
return;
}
if(idcode==''){
alert(" 请输入验证码!");
return;
}
$.ajax({
type:'post',
url:'/rs/rs',
data: JSON.stringify({"code":1,"attribute":[
{"key": "mobile", "value": mobile},
{"key": "password", "value": password},
{"key": "idcode", "value": idcode}]}),
async:false,
cache:false,
dataType:'json',
success:function(data){
if(data.errcode==0){
alert("开户成功");
}
else{
alert(data.detail);
}
},
error:function(XMLResponse){
alert("error");
}
});
}
function sendSMS() {
var mobile = document.getElementById("mobile").value;
if(mobile==''){
window.alert(" 请输入电话号码!");
return;
}
$.ajax({
type:'post',
url:'/rs/rs',
data: JSON.stringify({"code":0,"attribute":[{"key": "mobile", "value": mobile}]}),
async:false,
dataType:'json',
cache:false,
success:function(data){
if(data.errcode==0){
alert("验证码已发送,请在"+data.detail+"s内输入");
}else if(data.errcode==1 ){
alert("别着急,验证码马上就来了");
}
else{
alert("验证码发送失败");
}
},
error:function(XMLResponse){
alert("error");
}
});
}
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
机房租用,北京机房租用,IDC机房托管, http://www.fwqtg.net
相关推荐: USACO section 2.1 The Castle(dfs)
The Castle IOI’94 – Day 1 In a stroke of luck almost beyond imagination, Farmer John was sent a ticket to the Irish Sweepstakes (r…