Commit 0589ddd2 by 宋冰琦

修复取单码下拉距离

parent aec35523
......@@ -98,8 +98,7 @@ export default {
if(val<0){
this.popupStyle.transform = `translateY(${-val}px)`
}
if(val<-200){
console.log('滑动了:'+val + ',关闭')
if(val<-20){
this.close()
}
},
......@@ -107,8 +106,7 @@ export default {
this.clientYEnd = e.changedTouches[0].clientY;
const val = parseInt((this.clientYStart-this.clientYEnd))
console.log(val)
if(val>-200){
console.log('滑动了:'+val + ',回到顶部')
if(val>-20){
this.popupStyle.transform = 'translateY(0px)'
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment