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
7eea27b0
Commit
7eea27b0
authored
Nov 13, 2019
by
李晓兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'推送'
parent
55631cb8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
jpushService.js
src/scripts/jpushService.js
+5
-4
No files found.
src/scripts/jpushService.js
View file @
7eea27b0
...
...
@@ -5,7 +5,7 @@ export default {
// 获取设备号
onGetRegistrationID
:
function
(
data
)
{
try
{
//
alert("JPushPlugin:registrationID is " + JSON.stringify(data));
alert
(
"JPushPlugin:registrationID is "
+
JSON
.
stringify
(
data
));
if
(
data
.
length
!=
0
)
{
window
.
localStorage
.
setItem
(
'registrationID'
,
data
)
}
...
...
@@ -13,7 +13,7 @@ export default {
window
.
setTimeout
(
this
.
getRegistrationID
,
1000
)
}
}
catch
(
exception
)
{
// alert(
angular.toJson(exception));
alert
(
'###'
+
angular
.
toJson
(
exception
));
}
},
// 获取设备号
...
...
@@ -183,6 +183,7 @@ export default {
_jpush_config
:
function
(
tagOption
)
{
if
(
process
.
env
.
isMobilePlatform
)
{
let
phone
=
window
.
localStorage
.
user_phone
alert
(
'phone'
+
phone
)
let
tags
=
[]
for
(
let
key
in
tagOption
)
{
tags
.
push
(
tagOption
[
key
])
...
...
@@ -192,9 +193,9 @@ export default {
} */
window
.
plugins
.
jPushPlugin
.
setTags
({
sequence
:
Number
(
phone
),
tags
:
tags
},
function
(
result
)
{
// alert(
result.tags)
alert
(
'11'
+
result
.
tags
)
},
function
(
error
)
{
// alert(
error.code)
alert
(
'22'
+
error
.
code
)
})
}
},
...
...
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