Commit 166dd738 by 冷斌

fix bug

parent ad32710d
......@@ -36,7 +36,7 @@
<div class="contentBox">
<div class="list">
<div class="list_hd">支付宝账号</div>
<input v-model="form.account" class="list_bd" @change="checkSubmit" type="text" placeholder="请输入您的账号" maxlength="8"/>
<input v-model="form.account" class="list_bd" @change="checkSubmit" type="text" placeholder="请输入您的账号"/>
<p>*</p>
</div>
<div class="list">
......@@ -220,21 +220,22 @@
this.isSubmit = status;
},
submit: function () {
layer.msg("请完善信息");
return;
let data = this.form;
if(data.real_name&&data.cer_no&&data.mobile&&data.front_view&&data.back_view&&data.handset_view){
$.ajax({url:"./index.php?g=Appapi&m=Auth&a=authsave",
let _this = this;
let status = _this.checkSubmit();
let url = _this.url('/api/public//?service=User.updateIdentity');
if(!status){
$.ajax({
url:url,
dataType:"json",
data: data,
data: _this.form,
type:"POST",
success:function(data){
//console.log(data);
if(data.ret==200){
window.location.href="./index.php?g=Appapi&m=Auth&a=success&uid="+uid;
}else{
layer.msg(data.msg);
}
console.log(data);
// if(data.ret==200){
// window.location.href="./index.php?g=Appapi&m=Auth&a=success&uid="+uid;
// }else{
// layer.msg(data.msg);
// }
},
error:function(e){
layer.msg(e.msg);
......
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