From 65e758a09c1d6384a12030f72f0a0ea7939834a9 Mon Sep 17 00:00:00 2001 From: zyronon Date: Fri, 17 Sep 2021 18:00:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=88=86=E4=BA=AB=E6=9C=8B?= =?UTF-8?q?=E5=8F=8B=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/dialog/FromBottomDialog.vue | 7 +++++-- src/pages/home/components/ShareToFriend.vue | 9 +++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/components/dialog/FromBottomDialog.vue b/src/components/dialog/FromBottomDialog.vue index 3f3b3da..405a8b7 100644 --- a/src/components/dialog/FromBottomDialog.vue +++ b/src/components/dialog/FromBottomDialog.vue @@ -166,9 +166,11 @@ export default { }, end(e) { if (!this.touchMoved) return; - //点击 - if (Date.now() - this.startTime < 150) return + //点击 + if (Date.now() - this.startTime < 150 && Math.abs(this.moveYDistance) < 30) { + return + } //滑动 if (this.$refs.dialog.scrollTop !== 0) return @@ -184,6 +186,7 @@ export default { // this.$setCss(this.$refs.dialog, 'transition-duration', `0ms`) }, 300) } + this.moveYDistance = 0 } } } diff --git a/src/pages/home/components/ShareToFriend.vue b/src/pages/home/components/ShareToFriend.vue index 13f4c94..cf96f1c 100644 --- a/src/pages/home/components/ShareToFriend.vue +++ b/src/pages/home/components/ShareToFriend.vue @@ -18,7 +18,7 @@
- +
@@ -56,7 +56,7 @@
所有朋友
- +
{{ item.name }} @@ -76,7 +76,7 @@
- +
{{ text }}
@@ -126,7 +126,8 @@ export default { if (newVal) { let temp = this.$clone(this.localFriends) this.searchResult = temp.filter(v => { - return v.name.includes(newVal) || v.account.includes(newVal); + // return v.name.includes(newVal) || v.account.includes(newVal); + return v.name.includes(newVal); }) } else { this.searchResult = []