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
88a76fb9
Commit
88a76fb9
authored
Nov 13, 2019
by
李晓兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'插件'
parent
7eea27b0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
main.js
src/main.js
+4
-2
login.vue
src/pages/login.vue
+2
-2
jpushService.js
src/scripts/jpushService.js
+1
-1
No files found.
src/main.js
View file @
88a76fb9
...
...
@@ -125,12 +125,12 @@ vum.$vumPlatform.ready(function () {
try
{
setTimeout
(
function
()
{
navigator
.
splashscreen
.
hide
()
if
(
window
.
plugins
.
jPushPlugin
)
{
/*
if (window.plugins.jPushPlugin) {
Jpush._init()
}
if (window.JMessagePlugin) {
Jmessage._init({'isOpenMessageRoaming': true})
}
}
*/
},
40
)
}
catch
(
e
)
{
}
...
...
@@ -191,6 +191,8 @@ new Vue({
router
,
watch
:
{
// 监听路由变化
$route
(
to
,
from
)
{
alert
(
'from.name'
+
from
.
name
)
alert
(
'to.name'
+
to
.
name
)
document
.
body
.
scrollTop
=
0
document
.
documentElement
.
scrollTop
=
0
},
...
...
src/pages/login.vue
View file @
88a76fb9
...
...
@@ -72,10 +72,10 @@ export default {
window
.
localStorage
.
setItem
(
'user_phone'
,
vm
.
username
)
window
.
localStorage
.
setItem
(
'password'
,
md5passwprd
)
vm
.
$router
.
push
(
'tab'
)
let
tagOption
=
{
/*
let tagOption = {
'username': vm.username,
}
vm
.
Jpush
.
_jpush_config
(
tagOption
)
vm.Jpush._jpush_config(tagOption)
*/
}
else
{
hlsPopup
.
hideLoading
()
hlsPopup
.
showLongCenter
(
'登录失败'
)
...
...
src/scripts/jpushService.js
View file @
88a76fb9
...
...
@@ -13,7 +13,7 @@ export default {
window
.
setTimeout
(
this
.
getRegistrationID
,
1000
)
}
}
catch
(
exception
)
{
alert
(
'###'
+
angular
.
toJson
(
exception
));
alert
(
'###'
+
JSON
.
stringify
(
exception
));
}
},
// 获取设备号
...
...
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