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
e8b0645c
Commit
e8b0645c
authored
Nov 13, 2019
by
李晓兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'jpush'
parent
f27f3b1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
main.js
src/main.js
+2
-2
jpushService.js
src/scripts/jpushService.js
+3
-3
No files found.
src/main.js
View file @
e8b0645c
...
...
@@ -59,8 +59,8 @@ import Jpush from './scripts/jpushService'
import
Jmessage
from
'./scripts/jmessageService'
// if (process.env.CONFIG_ENV === 'uat') {
const
VConsole
=
require
(
'vconsole'
)
new
VConsole
()
// eslint-disable-line
//
const VConsole = require('vconsole')
//
new VConsole() // eslint-disable-line
// }
Vue
.
use
(
componentInstall
)
...
...
src/scripts/jpushService.js
View file @
e8b0645c
...
...
@@ -191,7 +191,7 @@ export default {
_jpush_config
:
function
(
tagOption
)
{
if
(
process
.
env
.
isMobilePlatform
)
{
let
phone
=
window
.
localStorage
.
user_phone
alert
(
'phone'
+
phone
)
//
alert('phone'+phone)
let
tags
=
[]
for
(
let
key
in
tagOption
)
{
tags
.
push
(
tagOption
[
key
])
...
...
@@ -201,9 +201,9 @@ export default {
} */
window
.
plugins
.
jPushPlugin
.
setTags
({
sequence
:
Number
(
phone
),
tags
:
tags
},
function
(
result
)
{
alert
(
'11'
+
result
.
tags
)
//
alert('11'+result.tags)
},
function
(
error
)
{
alert
(
'22'
+
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