Commit f228e1f2 authored by jiacheng.mao's avatar jiacheng.mao

APP登录逻辑调整

parent 15960077
......@@ -11,5 +11,5 @@ module.exports = {
ocrPath:'"http://www.xcmgfs.com:8087/r/api"',
fileUploadSvcPath:'"http://www.xcmgfs.com:8087/r/api/app/fileUploadSvc?sysName=XCMG_PROD&apiName="',
appId: '"com.xcmg.app"',
currentVersion: '"0.2.6"'
currentVersion: '"0.3.2"'
}
......@@ -11,5 +11,5 @@ module.exports = {
ocrPath:'"http://180.104.121.66:8088/r/api"',
fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="',
appId: '"com.xcmg.app.dev"',
currentVersion: '"3.0.7"'
currentVersion: '"3.0.8"'
}
......@@ -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