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 = []