<view :data-index='idx' :style="{ height: height,width: width }" @touchmove="ListTouchMove"
@touchend.stop="ListTouchEnd" @touchstart="ListTouchStart">
</view>
ListTouchStart(e) {
this.listTouchStartY = e.changedTouches[0].pageY
this.moverOnoff = false;
this.pagesy1 = e.changedTouches[0].pageY;
},
ListTouchMove(e) {
this.listTouchDirection = this.listTouchStartY - e.changedTouches[0].pageY > 10 ? -1 : 0
this.listTouchDirection = e.changedTouches[0].pageY - this.listTouchStartY > 10 ? 1 : this.listTouchDirection
const distance = this.distance + e.changedTouches[0].pageY - this.listTouchStartY
if (distance > 0) return
if (Math.abs(this.listTouchStartY - e.changedTouches[0].pageY) < 2) {
this.listTouchDirection = null
}
},
ListTouchEnd(e) {
let that = this;
if (e.changedTouches[0].pageY - that.pagesy1 < -30) {
if (uni.getSystemInfoSync().platform === 'android') {
}
return;
}
try {
that.clickVideo();
that.translateX = 10
} catch (e) {}
if (that.scroll) return
if (!that.listTouchDirection) {
return
}
},