Commit bc4ee610 authored by 李晓兵's avatar 李晓兵

'jpush'

parent 21449f07
......@@ -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
},
......
<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('登录失败')
......
......@@ -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')
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment