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

APP登录逻辑调整

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