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