Commit 3af62674 by 李伟康

提交代码

1 parent e49c1671
...@@ -307,6 +307,7 @@ export default { ...@@ -307,6 +307,7 @@ export default {
}) })
}, },
created () { created () {
let _this = this let _this = this
const jsApiList = [ const jsApiList = [
'getLocation', 'getLocation',
...@@ -320,6 +321,9 @@ export default { ...@@ -320,6 +321,9 @@ export default {
this.getActivityGroup() this.getActivityGroup()
}) })
}) })
window.addEventListener(this.IsIOS ? 'pagehide' : 'unload', e => {
window.localStorage.setItem('leave_time', new Date().format('yyyy-MM-dd hh:mm:ss'))
})
window.addEventListener('scroll', _this.debounce(() => { window.addEventListener('scroll', _this.debounce(() => {
_this.scrollY = window.scrollY _this.scrollY = window.scrollY
if (_this.progress) return if (_this.progress) return
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!