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
4dd05e10
Commit
4dd05e10
authored
Jan 07, 2022
by
胡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 极光推送优化
parent
9aabd347
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
login.vue
src/pages/login.vue
+4
-3
jpushService.js
src/scripts/jpushService.js
+2
-2
No files found.
src/pages/login.vue
View file @
4dd05e10
...
...
@@ -144,9 +144,10 @@ export default {
// vm.$router.push('tab')
vm
.
$router
.
push
(
'/choose-user'
);
let
tagOption
=
{
'username'
:
vm
.
username
,
}
vm
.
Jpush
.
_jpush_config
(
tagOption
)
'username'
:
isNaN
(
Number
(
vm
.
username
))
?
'11111111111'
:
vm
.
username
}
let
phone
=
isNaN
(
Number
(
vm
.
username
))
?
'11111111111'
:
vm
.
username
;
vm
.
Jpush
.
_jpush_config
(
tagOption
,
phone
);
}
else
{
hlsPopup
.
hideLoading
()
hlsPopup
.
showLongCenter
(
res
.
message
)
...
...
src/scripts/jpushService.js
View file @
4dd05e10
...
...
@@ -188,9 +188,9 @@ export default {
},
// 极光推送
_jpush_config
:
function
(
tagOption
)
{
_jpush_config
:
function
(
tagOption
,
phone
)
{
if
(
process
.
env
.
isMobilePlatform
)
{
let
phone
=
window
.
localStorage
.
user_phone
//
let phone = window.localStorage.user_phone
// alert('phone'+phone)
let
tags
=
[]
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