修改
This commit is contained in:
parent
703bec0577
commit
36eeb4a4bc
@ -127,11 +127,9 @@
|
|||||||
methods: {
|
methods: {
|
||||||
// 触摸touch事件
|
// 触摸touch事件
|
||||||
start(e) { //@touchstart 触摸开始
|
start(e) { //@touchstart 触摸开始
|
||||||
console.log(e)
|
|
||||||
this.startData.pageY = e.changedTouches[0].pageY; //手指按下时的Y坐标
|
this.startData.pageY = e.changedTouches[0].pageY; //手指按下时的Y坐标
|
||||||
},
|
},
|
||||||
end(e) { //@touchend触摸结束
|
end(e) { //@touchend触摸结束
|
||||||
console.log(this.startData.pageY - this.touch.pageY)
|
|
||||||
if ((this.startData.pageY - this.touch.pageY) > 200) { //在事件结束时,判断滑动的距离是否达到出发需要执行事件的要求
|
if ((this.startData.pageY - this.touch.pageY) > 200) { //在事件结束时,判断滑动的距离是否达到出发需要执行事件的要求
|
||||||
if (this.goodsList.length >= this.total) {} else {
|
if (this.goodsList.length >= this.total) {} else {
|
||||||
this.pageNum++;
|
this.pageNum++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user