Commit 60eae9bf by 冷斌

fix bug

parent 3b354de9
......@@ -24,7 +24,7 @@
<div class="Btn-box">
<button type="button" class="btnStyle" v-if = "is_Submit==1">登录</button>
<button type="button" class="btnStyle_sure" v-else >登录</button>
<button type="button" @click="subMit" class="btnStyle_sure" v-else >登录</button>
<!-- <div class="yzm_login">验证码登录</div>-->
</div>
......@@ -51,7 +51,23 @@
}
},
subMit() {
let _this = this;
$.ajax({
url:"/api/public//?service=Login.userLogin",
dataType:"json",
data: {
source: 'pc',
user_login: _this.account,
user_pass: _this.password
},
type:"POST",
success:function(data){
console.log(data);
},
error:function(e){
layer.msg(e.msg);
}
})
}
},
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