|
|
|
@ -108,10 +108,19 @@ |
|
|
|
console.log('main created') |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mounted() { |
|
|
|
// 监听返回事件,点击系统返回时 |
|
|
|
if(window.history && window.history.pushState){ |
|
|
|
window.addEventListener('popstate',this.goback,false) |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|
|
|
|
goback(){ |
|
|
|
console.log("6666666666666666666") |
|
|
|
let path = this.$route.path |
|
|
|
this.$toast(path) |
|
|
|
}, |
|
|
|
// 账户类型 |
|
|
|
radioChange(evt) { |
|
|
|
this.userType = evt.detail.value |
|
|
|
@ -247,6 +256,11 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
//退出页面 |
|
|
|
destroyed(){ |
|
|
|
//销毁监听 |
|
|
|
window.removeEventListener('popstate',this.goback,false) |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
</script> |
|
|
|
|