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
795edb77
Commit
795edb77
authored
Nov 13, 2019
by
李晓兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'jpush'
parent
bc4ee610
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
5 deletions
+18
-5
hls.keystore
hls.keystore
+0
-0
main.js
src/main.js
+3
-0
contract-detail.vue
src/pages/contractSigning/contract-detail.vue
+2
-0
jpushService.js
src/scripts/jpushService.js
+13
-5
xcmg.keystore
xcmg.keystore
+0
-0
No files found.
hls.keystore
deleted
100644 → 0
View file @
bc4ee610
File deleted
src/main.js
View file @
795edb77
...
...
@@ -122,6 +122,9 @@ let backButtonPressedOnceToExit
vum
.
$vumPlatform
.
ready
(
function
()
{
if
((
vum
.
Platform
.
isAndroid
())
||
(
vum
.
Platform
.
isIOS
()))
{
/* window.getRegistrationID = function (callback){
callback('')
}*/
try
{
setTimeout
(
function
()
{
navigator
.
splashscreen
.
hide
()
...
...
src/pages/contractSigning/contract-detail.vue
View file @
795edb77
...
...
@@ -471,6 +471,8 @@ export default {
}
},
})
}
else
{
hlsPopup
.
showLongCenter
(
'比对失败'
)
}
})
},
...
...
src/scripts/jpushService.js
View file @
795edb77
...
...
@@ -4,16 +4,24 @@
export
default
{
// 获取设备号
onGetRegistrationID
:
function
(
data
)
{
let
vm
=
this
try
{
alert
(
"JPushPlugin:registrationID is "
+
JSON
.
stringify
(
data
));
if
(
data
.
length
!=
0
)
{
if
(
data
)
{
alert
(
'111'
)
window
.
localStorage
.
setItem
(
'registrationID'
,
data
)
}
if
(
data
.
length
==
0
)
{
window
.
setTimeout
(
this
.
getRegistrationID
,
1000
)
if
(
!
data
)
{
alert
(
'222'
)
window
.
plugins
.
jPushPlugin
.
getRegistrationID
(
this
.
onGetRegistrationID
.
bind
(
vm
))
//window.setTimeout(() => this.getRegistrationID(),1000)
/* window.setTimeout(function () {
vm.getRegistrationID()
}, 1000)*/
}
}
catch
(
exception
)
{
alert
(
'###'
+
JSON
.
stringify
(
exception
)
);
alert
(
'###'
+
exception
);
}
},
// 获取设备号
...
...
@@ -66,7 +74,7 @@ export default {
if
(
process
.
env
.
isMobilePlatform
)
{
window
.
plugins
.
jPushPlugin
.
init
()
window
.
plugins
.
jPushPlugin
.
setDebugMode
(
false
)
window
.
plugins
.
jPushPlugin
.
getRegistrationID
(
this
.
onGetRegistrationID
)
window
.
plugins
.
jPushPlugin
.
getRegistrationID
(
this
.
onGetRegistrationID
.
bind
(
this
)
)
document
.
addEventListener
(
'jpush.openNotification'
,
this
.
onOpenNotification
)
window
.
plugins
.
jPushPlugin
.
resetBadge
()
// 设置Badge
window
.
plugins
.
jPushPlugin
.
setApplicationIconBadgeNumber
(
0
)
...
...
xcmg.keystore
0 → 100644
View file @
795edb77
File added
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