Commit 694f29f0 authored by jiacheng.mao's avatar jiacheng.mao

APP登录逻辑调整

parent 437dc60b
......@@ -126,6 +126,7 @@ export default {
login: function () {
let vm = this
// vm.password = CryptoJS.MD5(vm.password).toString().toUpperCase();
let url = process.env.basePath + 'app_login'
let md5passwprd = CryptoJS.MD5(vm.password)
.toString()
.toUpperCase()
......@@ -133,7 +134,7 @@ export default {
phone: vm.username,
password: md5passwprd,
}
vm.$post(process.env.basePath + 'app_login', param).then(function (res) {
vm.hlsHttp.post(url, param).then(function (res) {
if (res.result === 'S' && res.info.login_flag === 'Y') {
vm.hlsPopup.hideLoading()
vm.updateVersion() // 版本更新
......@@ -146,9 +147,8 @@ export default {
vm.Jpush._jpush_config(tagOption)
} else {
hlsPopup.hideLoading()
hlsPopup.showLongCenter('手机号未注册或密码错误')
hlsPopup.showLongCenter(res.message)
}
// 极光推送
})
},
async getAccessToken () {
......
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