15
15
'hierarchy.lvl2:20',
16
16
'hierarchy.lvl3:20',
17
17
'hierarchy.lvl4:20',
18
- 'content:50 '
18
+ 'content:150 '
19
19
]"
20
20
/>
21
21
<div class =" search-box-container" >
22
22
<div class =" search-container" >
23
23
<ais-search-box
24
24
placeholder =" 热门搜索: 登录、消息扩展"
25
- autofocus
26
25
show-loading-indicator
27
26
/>
28
27
<div class =" search-category" >
32
31
<template
33
32
v-slot =" { state: { query }, results: { nbHits }, status } "
34
33
>
35
- <el-tabs v- model =" activeCategoryType" >
36
- <el-tab-pane name =" product" >
34
+ <el-tabs class = " search-tabs " : model-value =" activeCategoryType" >
35
+ <el-tab-pane name =" product" lazy = " true " >
37
36
<template #label >
38
37
<ais-clear-refinements
39
38
:included-attributes =" includeAttributes"
128
127
}"
129
128
@click =" handleClick({ name: 'sdk', refine })"
130
129
>
131
- SDK 集成文档
130
+ SDK & REST 集成
132
131
</div >
133
132
</template >
134
133
</ais-clear-refinements >
209
208
}"
210
209
@click =" handleClick({ name: 'uikit', refine })"
211
210
>
212
- UIKit 集成文档
211
+ UIKit 集成
213
212
</div >
214
213
</template >
215
214
</ais-clear-refinements >
@@ -326,8 +325,9 @@ const uikitCategoryMap = {
326
325
327
326
const productCategoryMap = {
328
327
产品介绍: " 产品介绍" ,
329
- 即时推送: " 即时推送" ,
330
328
内容审核: " 内容审核" ,
329
+ solution_common: " 常见方案" ,
330
+ 即时推送: " 即时推送" ,
331
331
" AI 集成" : " AI 集成"
332
332
};
333
333
@@ -338,7 +338,7 @@ const categoryMap = {
338
338
};
339
339
340
340
const productFilters =
341
- " category:'产品介绍' OR category:'即时推送' OR category:'内容审核' OR category:'AI 集成'" ;
341
+ " category:'产品介绍' OR category:'即时推送' OR category:'内容审核' OR category:'AI 集成' OR category:'solution_common1' " ;
342
342
343
343
const sdkFilters =
344
344
" category:'Andorid 集成文档' OR category:'iOS 集成文档' OR category:'Web 集成文档' OR category:'HarmonyOS 集成文档' OR category:'小程序集成文档' OR category:'Flutter 集成文档' OR category:'React Native 集成文档' OR category:'Windows 集成文档' OR category:'Unity 集成文档' OR category:'REST API'" ;
@@ -380,7 +380,7 @@ export default {
380
380
),
381
381
initialUiState: {
382
382
[" im-beta-easemob" ]: {
383
- query: useRoute ().query .query || " " ,
383
+ query: useRoute ().query .query || " IM " ,
384
384
refinementList: {
385
385
type: [" content" ],
386
386
category: categoryMap[this .$route .query .s ]
@@ -426,6 +426,9 @@ export default {
426
426
return ;
427
427
}
428
428
refine ();
429
+ setTimeout (() => {
430
+ this .activeCategoryType = name;
431
+ }, 20 );
429
432
},
430
433
getCategoryTypeByCategoryItem (categoryItem ) {
431
434
if (this .sdkCategories .includes (categoryItem)) {
@@ -527,6 +530,10 @@ body {
527
530
font-size : 14px ;
528
531
}
529
532
533
+ .ais-ClearRefinements {
534
+ height : 100% ;
535
+ }
536
+
530
537
/* 分类项的基础样式 */
531
538
.refinement-list-item {
532
539
padding : 10px 15px ;
@@ -560,13 +567,16 @@ body {
560
567
.ais-RatingMenu-link {
561
568
color : var (--theme-color ) !important ;
562
569
}
563
-
564
570
/* active状态的样式 */
565
571
.refinement-list-item--selected {
566
572
background-color : var (--theme-color ); /* active状态的背景色 */
567
573
color : #ffffff ; /* active状态的文本颜色 */
568
574
}
569
575
576
+ .search-tabs .el-tabs__item {
577
+ pointer-events : none ;
578
+ }
579
+
570
580
.no-results {
571
581
text-align : center ;
572
582
color : #4a5568 ;
@@ -585,6 +595,9 @@ body {
585
595
.ais-tab-item {
586
596
color : #303133 ;
587
597
font-size : 15px !important ;
598
+ height : 100% ;
599
+ line-height : 40px ;
600
+ pointer-events : all ;
588
601
}
589
602
590
603
.ais-tab-item--active {
0 commit comments