Commit 0589ddd2 by 宋冰琦

修复取单码下拉距离

parent aec35523
...@@ -98,8 +98,7 @@ export default { ...@@ -98,8 +98,7 @@ export default {
if(val<0){ if(val<0){
this.popupStyle.transform = `translateY(${-val}px)` this.popupStyle.transform = `translateY(${-val}px)`
} }
if(val<-200){ if(val<-20){
console.log('滑动了:'+val + ',关闭')
this.close() this.close()
} }
}, },
...@@ -107,8 +106,7 @@ export default { ...@@ -107,8 +106,7 @@ export default {
this.clientYEnd = e.changedTouches[0].clientY; this.clientYEnd = e.changedTouches[0].clientY;
const val = parseInt((this.clientYStart-this.clientYEnd)) const val = parseInt((this.clientYStart-this.clientYEnd))
console.log(val) console.log(val)
if(val>-200){ if(val>-20){
console.log('滑动了:'+val + ',回到顶部')
this.popupStyle.transform = 'translateY(0px)' 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