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
5097b2d8
Commit
5097b2d8
authored
Jan 06, 2022
by
胡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 关于极光推送ios崩溃的问题
parent
374efdff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
finger-login.vue
src/pages/finger-login.vue
+3
-1
login.vue
src/pages/login.vue
+6
-4
jpushService.js
src/scripts/jpushService.js
+2
-2
No files found.
src/pages/finger-login.vue
View file @
5097b2d8
...
@@ -73,7 +73,9 @@ export default {
...
@@ -73,7 +73,9 @@ export default {
'user_id'
:
res
.
user_id
,
'user_id'
:
res
.
user_id
,
'mobile'
:
res
.
mobile
,
'mobile'
:
res
.
mobile
,
}
}
vm
.
Jpush
.
_jpush_config
(
tagOption
)
let
userPhone
=
window
.
localStorage
.
getItem
(
'user_phone'
);
let
phone
=
isNaN
(
parseInt
(
userPhone
))
?
'11111111111'
:
userPhone
;
vm
.
Jpush
.
_jpush_config
(
tagOption
,
phone
);
}
}
})
})
},
},
...
...
src/pages/login.vue
View file @
5097b2d8
...
@@ -142,7 +142,7 @@ export default {
...
@@ -142,7 +142,7 @@ export default {
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() // 版本更新
window
.
localStorage
.
setItem
(
'user_phone'
,
isNaN
(
parseInt
(
vm
.
username
))
?
'11111111111'
:
vm
.
username
)
window
.
localStorage
.
setItem
(
'user_phone'
,
vm
.
username
)
window
.
localStorage
.
setItem
(
'password'
,
md5passwprd
)
window
.
localStorage
.
setItem
(
'password'
,
md5passwprd
)
// vm.$router.push({
// vm.$router.push({
// name: 'HomePage',
// name: 'HomePage',
...
@@ -153,9 +153,11 @@ export default {
...
@@ -153,9 +153,11 @@ export default {
window
.
localStorage
.
setItem
(
'app_user_id'
,
res
.
info
.
app_user_id
)
window
.
localStorage
.
setItem
(
'app_user_id'
,
res
.
info
.
app_user_id
)
let
tagOption
=
{
let
tagOption
=
{
'username'
:
isNaN
(
parseInt
(
vm
.
username
))
?
'11111111111'
:
vm
.
username
'username'
:
isNaN
(
Number
(
vm
.
username
))
?
'11111111111'
:
vm
.
username
}
}
vm
.
Jpush
.
_jpush_config
(
tagOption
);
let
phone
=
isNaN
(
parseInt
(
vm
.
username
))
?
'11111111111'
:
vm
.
username
;
vm
.
Jpush
.
_jpush_config
(
tagOption
,
phone
);
}
else
{
}
else
{
...
...
src/scripts/jpushService.js
View file @
5097b2d8
...
@@ -188,9 +188,9 @@ export default {
...
@@ -188,9 +188,9 @@ export default {
},
},
// 极光推送
// 极光推送
_jpush_config
:
function
(
tagOption
)
{
_jpush_config
:
function
(
tagOption
,
phone
)
{
if
(
process
.
env
.
isMobilePlatform
)
{
if
(
process
.
env
.
isMobilePlatform
)
{
let
phone
=
window
.
localStorage
.
user_phone
//
let phone = window.localStorage.user_phone
// alert('phone'+phone)
// alert('phone'+phone)
let
tags
=
[]
let
tags
=
[]
for
(
let
key
in
tagOption
)
{
for
(
let
key
in
tagOption
)
{
...
...
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