@@ -116,21 +127,12 @@
-
- {{$L(dialogSearchKey ? `没有任何与"${dialogSearchKey}"相关的会话` : `没有任何会话`)}}
-
-
-
+
+ {{$L(dialogSearchKey ? `没有任何与"${dialogSearchKey}"相关的结果` : `没有任何会话`)}}
0 || dialogSearchLoad > 0
}
},
@@ -535,8 +542,8 @@ export default {
if (val == '') {
return
}
- this.__searchTimer && clearTimeout(this.__searchTimer)
- this.__searchTimer = setTimeout(this.searchDialog, 600)
+ this.__search_timer && clearTimeout(this.__search_timer)
+ this.__search_timer = setTimeout(this.searchDialog, 600)
this.dialogSearchLoad++
setTimeout(_ => this.dialogSearchLoad--, 600)
},
@@ -614,7 +621,8 @@ export default {
onKeydown(e) {
if (e.key === "Escape") {
- this.$refs.searchInput.handleClear()
+ this.$refs.searchInput?.handleClear()
+ this.$refs.contactInput?.handleClear()
}
},
@@ -811,8 +819,7 @@ export default {
},
searchTagDialog() {
- //
- this.dialogMarkLoad++;
+ this.dialogSearchLoad++;
this.$store.dispatch("call", {
url: 'dialog/search/tag',
}).then(({data}) => {
@@ -829,7 +836,7 @@ export default {
})
this.dialogSearchList = lists;
}).finally(_ => {
- this.dialogMarkLoad--;
+ this.dialogSearchLoad--;
});
},
diff --git a/resources/assets/sass/pages/page-messenger.scss b/resources/assets/sass/pages/page-messenger.scss
index ebebb2526..2e50fa841 100644
--- a/resources/assets/sass/pages/page-messenger.scss
+++ b/resources/assets/sass/pages/page-messenger.scss
@@ -127,6 +127,16 @@
width: 100%;
overflow-x: hidden;
ul {
+ > li {
+ &.nothing {
+ margin: 0 !important;
+ padding: 24px !important;
+ text-align: center;
+ height: 100%;
+ border-radius: 0;
+ line-height: 22px;
+ }
+ }
&.dialog {
> li {
display: flex;
@@ -364,15 +374,6 @@
}
}
}
- &.nothing {
- justify-content: center;
- padding: 24px;
- margin: 0;
- border: 0;
- line-height: 22px;
- cursor: default;
- word-break: break-all;
- }
}
}
&.contacts {
@@ -398,25 +399,6 @@
transform: scaleY(0.5);
}
}
- &.nothing,
- &.loading {
- text-align: center;
- height: 100%;
- margin: 0;
- padding: 24px;
- border-radius: 0;
- line-height: 22px;
- }
- &.loading {
- display: flex;
- align-items: flex-start;
- justify-content: center;
- .common-loading {
- width: 20px;
- height: 20px;
- margin: 1px;
- }
- }
&.loaded {
margin: 0;
height: 52px;