Commit b16f9085 authored by youjie's avatar youjie

no message

parent e09066b2
...@@ -117,6 +117,12 @@ ...@@ -117,6 +117,12 @@
uni.setStorageSync("lastLogin",new Date().getTime()) uni.setStorageSync("lastLogin",new Date().getTime())
this.$utils.setAttatchParameter(this) this.$utils.setAttatchParameter(this)
uni.hideLoading() uni.hideLoading()
},e=>{
uni.hideLoading()
uni.showToast({
icon:'none',
title: e.message || '绑定员工账号失败'
})
}) })
}, },
bindErpAccountHandle(){ bindErpAccountHandle(){
...@@ -137,21 +143,19 @@ ...@@ -137,21 +143,19 @@
Unoinid:this.mall.Unoinid Unoinid:this.mall.Unoinid
} }
this.apipost("HPSLBindEmp_post", parameters, r =>{ this.apipost("HPSLBindEmp_post", parameters, r =>{
if(r.resultCode == 1){ if(r.resultCode == 1){
this.directUserLoginHandle() this.directUserLoginHandle()
return; return
} }
uni.hideLoading() uni.hideLoading()
uni.showToast({ uni.showToast({
icon:'none', icon:'none',
title:'账号或密码错误' title: r.message || '账号或密码错误'
}) })
},e=>{ },e=>{
uni.hideLoading()
uni.showToast({ uni.showToast({
icon:'none', icon:'none',
title:e title:e.message
}) })
}) })
} }
......
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