|
@@ -122,6 +122,7 @@ export default defineComponent({
|
|
|
loading: false,
|
|
|
finished: false,
|
|
|
isAllStatus: true, // 当前是否已经为全部了
|
|
|
+ isFocus: false,// 是否获取焦点
|
|
|
searchPopup: false,
|
|
|
musicDetailPopup: false,
|
|
|
showVip: false,
|
|
@@ -434,7 +435,10 @@ export default defineComponent({
|
|
|
|
|
|
window.addEventListener('resize', tabResize);
|
|
|
useEventListener(document, 'scroll', () => {
|
|
|
- mSearchRef.value?.searchBlur()
|
|
|
+ console.log('1111', state.isFocus)
|
|
|
+ if(state.isFocus) {
|
|
|
+ mSearchRef.value?.searchBlur()
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
listenerMessage('webViewOnResume', () => {
|
|
@@ -547,6 +551,14 @@ export default defineComponent({
|
|
|
class={styles.mSearch11}
|
|
|
onFocus={() => {
|
|
|
state.searchPopup = false;
|
|
|
+ setTimeout(() => {
|
|
|
+ state.isFocus = true;
|
|
|
+ }, 300);
|
|
|
+ }}
|
|
|
+ onBlur={() => {
|
|
|
+ setTimeout(() => {
|
|
|
+ state.isFocus = false;
|
|
|
+ }, 300);
|
|
|
}}
|
|
|
onSearch={(val: any) => {
|
|
|
if (state.tabActive === 'RECOMMEND') {
|
|
@@ -643,7 +655,7 @@ export default defineComponent({
|
|
|
<Popup position="top" round v-model:show={state.searchPopup}>
|
|
|
<div class={styles.searchContainer}>
|
|
|
<div class={styles.changeSubjectContainer}>
|
|
|
- {state.newTags.length > 0 && (
|
|
|
+ {state.newTags.length > 1 && (
|
|
|
<>
|
|
|
<div class={styles.title}>标签</div>
|
|
|
<div class={styles.subjectContainer}>
|