Commit 88a76fb9 authored by 李晓兵's avatar 李晓兵

'插件'

parent 7eea27b0
...@@ -125,12 +125,12 @@ vum.$vumPlatform.ready(function () { ...@@ -125,12 +125,12 @@ vum.$vumPlatform.ready(function () {
try { try {
setTimeout(function () { setTimeout(function () {
navigator.splashscreen.hide() navigator.splashscreen.hide()
if (window.plugins.jPushPlugin) { /*if (window.plugins.jPushPlugin) {
Jpush._init() Jpush._init()
} }
if (window.JMessagePlugin) { if (window.JMessagePlugin) {
Jmessage._init({'isOpenMessageRoaming': true}) Jmessage._init({'isOpenMessageRoaming': true})
} }*/
}, 40) }, 40)
} catch (e) { } catch (e) {
} }
...@@ -191,6 +191,8 @@ new Vue({ ...@@ -191,6 +191,8 @@ new Vue({
router, router,
watch: { // 监听路由变化 watch: { // 监听路由变化
$route (to, from) { $route (to, from) {
alert('from.name' + from.name)
alert('to.name' + to.name)
document.body.scrollTop = 0 document.body.scrollTop = 0
document.documentElement.scrollTop = 0 document.documentElement.scrollTop = 0
}, },
......
...@@ -72,10 +72,10 @@ export default { ...@@ -72,10 +72,10 @@ export default {
window.localStorage.setItem('user_phone', vm.username) window.localStorage.setItem('user_phone', vm.username)
window.localStorage.setItem('password', md5passwprd) window.localStorage.setItem('password', md5passwprd)
vm.$router.push('tab') vm.$router.push('tab')
let tagOption = { /* let tagOption = {
'username': vm.username, 'username': vm.username,
} }
vm.Jpush._jpush_config(tagOption) vm.Jpush._jpush_config(tagOption)*/
} else { } else {
hlsPopup.hideLoading() hlsPopup.hideLoading()
hlsPopup.showLongCenter('登录失败') hlsPopup.showLongCenter('登录失败')
......
...@@ -13,7 +13,7 @@ export default { ...@@ -13,7 +13,7 @@ export default {
window.setTimeout(this.getRegistrationID, 1000) window.setTimeout(this.getRegistrationID, 1000)
} }
} catch (exception) { } catch (exception) {
alert('###'+angular.toJson(exception)); alert('###'+JSON.stringify(exception));
} }
}, },
// 获取设备号 // 获取设备号
......
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