Commit 95655fc5 authored by 18224442217's avatar 18224442217

no message

parent d75c074b
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
}, },
loginByOpenId(){ loginByOpenId(){
if(this.msg.OpenId!=''){ if(this.msg.OpenId!=''){
this.loginErpHandler() this.loginErpHandler(1)
}else{ }else{
uni.showToast({ uni.showToast({
icon:'none', icon:'none',
...@@ -61,13 +61,19 @@ ...@@ -61,13 +61,19 @@
}) })
} }
}, },
loginErpHandler(){ loginErpHandler(t=0){
if(this.loginLoading) return; if(this.loginLoading) return;
this.loginLoading=true this.loginLoading=true
uni.showLoading({ uni.showLoading({
title:'登录中...' title:'登录中...'
}) })
this.apipost("b2b_post_Login",this.msg,(res) => {
let param= JSON.parse(JSON.stringify(this.msg))
if(t!=0){
param.account=''
param.password=''
}
this.apipost("b2b_post_Login",param,(res) => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
uni.setStorageSync('b2b_user',res.data) uni.setStorageSync('b2b_user',res.data)
this.getLogin() this.getLogin()
......
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