mirror of
https://gitee.com/wangkang/udf.git
synced 2026-10-30 16:00:58 +00:00
下拉刷新
This commit is contained in:
+3
-3
@@ -257,7 +257,7 @@
|
||||
e.preventDefault();
|
||||
this.moveDistance = Math.pow(move, 0.8);
|
||||
// console.log(window.innerHeight, scrollTop, e.targetTouches[0].clientY, y, this.startY, move, this.moveDistance);
|
||||
if (this.moveDistance > 80) {
|
||||
if (this.moveDistance > 70) {
|
||||
if (this.moveState === 1) return;
|
||||
this.moveState = 1;
|
||||
} else {
|
||||
@@ -271,8 +271,8 @@
|
||||
touchEnd(e) {
|
||||
//下拉刷新逻辑
|
||||
{
|
||||
if (this.moveDistance > 80) {
|
||||
this.moveDistance = 80;
|
||||
if (this.moveDistance > 70) {
|
||||
this.moveDistance = 70;
|
||||
this.$EventBus.$emit(glob.eventNames.globRefreshEventName);
|
||||
this.moveState = 0;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user