|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <view class="content" @touchstart="start" @touchend="end">
|
|
|
+ <view class="content" style="height: 100vh;" @touchstart="start" @touchend="end">
|
|
|
<view class="subsection">
|
|
|
<view class="division">
|
|
|
<u-search placeholder="请输入任务处理人" v-model="name" :showAction="false" @input="search"></u-search>
|
|
|
@@ -183,21 +183,20 @@
|
|
|
this.startData.clientY = e.changedTouches[0].clientY;
|
|
|
},
|
|
|
end(e) {
|
|
|
- // console.log("滑动")
|
|
|
+ console.log("滑动")
|
|
|
const subX = e.changedTouches[0].clientX - this.startData.clientX;
|
|
|
const subY = e.changedTouches[0].clientY - this.startData.clientY;
|
|
|
if (subY > 50 || subY < -50) {
|
|
|
console.log('上下滑')
|
|
|
} else {
|
|
|
if (subX > 100) {
|
|
|
- // console.log('右滑')
|
|
|
+ console.log('右滑')
|
|
|
if(this.current!=0){
|
|
|
this.current--
|
|
|
this.sectionChange(this.current)
|
|
|
}
|
|
|
-
|
|
|
} else if (subX < -100) {
|
|
|
- // console.log('左滑')
|
|
|
+ console.log('左滑')
|
|
|
if(this.current!=2){
|
|
|
this.current++
|
|
|
this.sectionChange(this.current)
|