Commit cb2a37c9 by 刘海龙

11

parent 59f2918a
...@@ -283,22 +283,26 @@ ...@@ -283,22 +283,26 @@
}, },
submit: function () { submit: function () {
let data = this.form; let data = this.form;
$.ajax({url:"./index.php?g=Appapi&m=Auth&a=authsave", if(data.real_name&&data.cer_no&&data.mobile&&data.front_view&&data.back_view&&data.handset_view){
dataType:"json", $.ajax({url:"./index.php?g=Appapi&m=Auth&a=authsave",
data: data, dataType:"json",
type:"POST", data: data,
success:function(data){ type:"POST",
//console.log(data); success:function(data){
if(data.ret==200){ //console.log(data);
window.location.href="./index.php?g=Appapi&m=Auth&a=success&uid="+uid; if(data.ret==200){
}else{ window.location.href="./index.php?g=Appapi&m=Auth&a=success&uid="+uid;
layer.msg(data.msg); }else{
} layer.msg(data.msg);
}, }
error:function(e){ },
layer.msg(e.msg); error:function(e){
} layer.msg(e.msg);
}) }
})
}else{
layer.msg("请完善信息");
}
} }
}, },
watch: { watch: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment