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
bc4ee610
Commit
bc4ee610
authored
Nov 13, 2019
by
李晓兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'jpush'
parent
21449f07
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
main.js
src/main.js
+2
-4
login.vue
src/pages/login.vue
+3
-3
my-info.vue
src/pages/myInfo/my-info.vue
+4
-0
No files found.
src/main.js
View file @
bc4ee610
...
...
@@ -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,8 +191,6 @@ 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 @
bc4ee610
<
template
>
<h-content
id=
"login"
:cal-content=
"false"
>
<h-content
id=
"login"
>
<div
class=
"bird-icon"
/>
<div
class=
"login-wrap"
>
<img
class=
"title"
src=
"../assets/login/title.png"
>
...
...
@@ -75,10 +75,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/pages/myInfo/my-info.vue
View file @
bc4ee610
...
...
@@ -320,7 +320,11 @@ export default {
content
:
'确定退出'
,
onConfirm
:
function
(
index
)
{
if
(
index
===
1
)
{
let
width
=
window
.
localStorage
.
getItem
(
'width'
)
let
height
=
window
.
localStorage
.
getItem
(
'height'
)
window
.
localStorage
.
clear
()
window
.
localStorage
.
setItem
(
'width'
,
width
)
window
.
localStorage
.
setItem
(
'height'
,
height
)
vm
.
$router
.
push
(
'/login'
)
}
},
...
...
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