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
694f29f0
Commit
694f29f0
authored
Jun 15, 2021
by
jiacheng.mao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
APP登录逻辑调整
parent
437dc60b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
login.vue
src/pages/login.vue
+3
-3
No files found.
src/pages/login.vue
View file @
694f29f0
...
...
@@ -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
()
{
...
...
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