|
|
@@ -69,6 +69,11 @@
|
|
|
components: {
|
|
|
RemindBox
|
|
|
},
|
|
|
+ mounted () {
|
|
|
+ this.$nextTick(function () {
|
|
|
+ window.addEventListener('scroll', this.onScroll(event))
|
|
|
+ })
|
|
|
+ },
|
|
|
fetch ({store, route}) {
|
|
|
return Promise.all([
|
|
|
store.dispatch('searchData/searchForListInMobile', {count: 15, filter: {}, keyword: route.query.w, page: 1, sorting: {'GO_RESERVE': 'DESC', 'GO_SEARCH': 'DESC'}}),
|
|
|
@@ -141,6 +146,13 @@
|
|
|
},
|
|
|
goLastPage: function () {
|
|
|
window.history.back(-1)
|
|
|
+ },
|
|
|
+ onScroll: function (e) {
|
|
|
+// let width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth
|
|
|
+// let height = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
|
|
|
+// let x = Math.min(width - 20, e.touches[0].clientX)
|
|
|
+// let y = Math.min(height - 20, e.touches[0].clientY)
|
|
|
+ console.log(e.touches[0].clientY)
|
|
|
}
|
|
|
}
|
|
|
}
|