Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xugong
hls-xcmg-vue-app
Commits
f228e1f2
Commit
f228e1f2
authored
Jun 15, 2021
by
jiacheng.mao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
APP登录逻辑调整
parent
15960077
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
prod.env.js
config/prod.env.js
+1
-1
uat.env.js
config/uat.env.js
+1
-1
login.vue
src/pages/login.vue
+3
-3
No files found.
config/prod.env.js
View file @
f228e1f2
...
@@ -11,5 +11,5 @@ module.exports = {
...
@@ -11,5 +11,5 @@ module.exports = {
ocrPath
:
'"http://www.xcmgfs.com:8087/r/api"'
,
ocrPath
:
'"http://www.xcmgfs.com:8087/r/api"'
,
fileUploadSvcPath
:
'"http://www.xcmgfs.com:8087/r/api/app/fileUploadSvc?sysName=XCMG_PROD&apiName="'
,
fileUploadSvcPath
:
'"http://www.xcmgfs.com:8087/r/api/app/fileUploadSvc?sysName=XCMG_PROD&apiName="'
,
appId
:
'"com.xcmg.app"'
,
appId
:
'"com.xcmg.app"'
,
currentVersion
:
'"0.
2.6
"'
currentVersion
:
'"0.
3.2
"'
}
}
config/uat.env.js
View file @
f228e1f2
...
@@ -11,5 +11,5 @@ module.exports = {
...
@@ -11,5 +11,5 @@ module.exports = {
ocrPath
:
'"http://180.104.121.66:8088/r/api"'
,
ocrPath
:
'"http://180.104.121.66:8088/r/api"'
,
fileUploadSvcPath
:
'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="'
,
fileUploadSvcPath
:
'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="'
,
appId
:
'"com.xcmg.app.dev"'
,
appId
:
'"com.xcmg.app.dev"'
,
currentVersion
:
'"3.0.
7
"'
currentVersion
:
'"3.0.
8
"'
}
}
src/pages/login.vue
View file @
f228e1f2
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment