-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ISSUES CLOSED: #42
- Loading branch information
master1lan
committed
Mar 5, 2023
1 parent
b1a33ac
commit 5b711c5
Showing
7 changed files
with
108 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,28 +1,16 @@ | ||
| import { TagLabelToValueObj } from "@utils/searchSuggestData/tag"; | ||
| import { phoneMoreNameAndFaceUrls } from "../phone/url"; | ||
|
|
||
| export type renderSuggestItemLists = { label: string; value: string }[]; | ||
|
|
||
| //tag列 | ||
| export const pcSuggestTagLists: renderSuggestItemLists = [ | ||
| "莞儿睡不醒", | ||
| "露早GOGO", | ||
| "米诺高分少女", | ||
| "虞莫MOMO", | ||
| "柚恩不加糖", | ||
| "EOE组合", | ||
| "早莞在一起", | ||
| "莞柚引力", | ||
| "一莞米", | ||
| "虞舟唱莞", | ||
| "早柚", | ||
| "西米露", | ||
| "早有虞谋", | ||
| "米哈柚", | ||
| "虞香柚丝", | ||
| "米虞说的道理", | ||
| "虞米之乡", | ||
| ].map((item) => ({ label: item, value: item })); | ||
|
|
||
| export const pcSuggestTagLists: renderSuggestItemLists = Object.keys( | ||
| TagLabelToValueObj | ||
| ).map((item) => ({ | ||
| label: item, | ||
| value: TagLabelToValueObj[item].split(".").join("+"), | ||
| })); | ||
| //up列 | ||
| export const pcSuggestNameLists: renderSuggestItemLists = | ||
| phoneMoreNameAndFaceUrls; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| /** | ||
| * tag的label和value对照表 | ||
| */ | ||
| export const TagLabelToValueObj: { [key: string]: string } = { | ||
| 莞儿: "莞儿.莞儿睡不醒.小莞熊在这里.莞儿有引力.莞儿生日快乐", | ||
| 露早: "露早.露早GOGO.GOGO队立大功!.露早的汪汪日记.露早生日快乐", | ||
| 米诺: "米诺.米诺高分少女.和米诺的对抗路日常.米诺与小恶魔的低语时刻.米诺生日快乐", | ||
| 虞莫: "虞莫.虞莫MOMO.虞与你在一起.么么莫莫宝.虞莫生日快乐", | ||
| 柚恩: "柚恩.柚恩不加糖.柚恩的蜜罐子.和柚恩的婚后生活.柚恩生日快乐", | ||
| EOE组合: "EOE.EOE的魔法盒.EOE的魔法森林", | ||
| 米哈柚: "米哈柚", | ||
| 早有虞谋: "早有虞谋", | ||
| 西米露: "西米露", | ||
| 虞香柚丝: "虞香柚丝", | ||
| 莞柚引力: "莞柚引力", | ||
| 早柚: "早柚.柚子露", | ||
| 早莞在一起: "早莞在一起", | ||
| 虞米之乡: "虞米之乡", | ||
| 虞舟唱莞: "虞舟唱莞", | ||
| 一莞米: "一莞米", | ||
| }; | ||
|
|
||
| //根据tag的label搜索对应的value | ||
| export const TagLabelToValueMap = new Map<string, string>(); | ||
| Object.keys(TagLabelToValueObj).forEach((key) => | ||
| TagLabelToValueMap.set(key, TagLabelToValueObj[key]) | ||
| ); | ||
| //根据tag的value搜索对应的label | ||
| export const TagValueToLabelMap = new Map<string, string>(); | ||
| Object.keys(TagLabelToValueObj).forEach((key) => | ||
| TagValueToLabelMap.set(TagLabelToValueObj[key], key) | ||
| ); |