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

'插件'

parent 7eea27b0
......@@ -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
},
......
......@@ -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('登录失败')
......
......@@ -13,7 +13,7 @@ export default {
window.setTimeout(this.getRegistrationID, 1000)
}
} 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