diff --git a/src/subpages/i18n/lang/index.json b/src/subpages/i18n/lang/index.json index d327eb43e..25faac9d5 100644 --- a/src/subpages/i18n/lang/index.json +++ b/src/subpages/i18n/lang/index.json @@ -12918,7 +12918,7 @@ "zh-cn": "专票", "en": "", "zh-tw": "" - }, + }, "5ipxx55": { "zh-cn": "退出小程序", "en": "Exit the mini-program", @@ -12928,5 +12928,25 @@ "zh-cn": "抱歉,本店会员才可以访问", "en": "Sorry, only members of this store can access", "zh-tw": "抱歉,本店會員纔可以訪問" + }, + "1yomk16": { + "zh-cn": "查看数据总览", + "en": "", + "zh-tw": "" + }, + "gpo32": { + "zh-cn": "微信", + "en": "", + "zh-tw": "" + }, + "9b6rva7": { + "zh-cn": "去看看全部商品", + "en": "", + "zh-tw": "" + }, + "k7shki6": { + "zh-cn": "数据不能为空", + "en": "", + "zh-tw": "" } -} +} \ No newline at end of file diff --git a/src/subpages/mdugc/index.js b/src/subpages/mdugc/index.js index c861763f3..7aa0cfa8b 100644 --- a/src/subpages/mdugc/index.js +++ b/src/subpages/mdugc/index.js @@ -35,21 +35,20 @@ import TagsBarcheck from './comps/comp-tags-barcheck' import './index.scss' -const initialState = { - keyword: '', - tagsList: [], - curTagIndex: 0, - filterList: [ - { tag_id: 1, tag_name: '最热' }, - { tag_id: 2, tag_name: '最新' } - ], - curFilterIndex: 0, - leftList: [], - rightList: [], - footerHeight: 0 -} - function UgcIndex() { + const initialState = { + keyword: '', + tagsList: [], + curTagIndex: 0, + filterList: [ + { tag_id: 1, tag_name: '最热' }, + { tag_id: 2, tag_name: '最新' } + ], + curFilterIndex: 0, + leftList: [], + rightList: [], + footerHeight: 0 + } const [state, setState] = useImmer(initialState) const { keyword, tagsList, curTagIndex, filterList, curFilterIndex, leftList, rightList } = state const listRef = useRef() @@ -214,6 +213,13 @@ function UgcIndex() { }} renderFooter={} > + {filterList.map((item) => { + return ( + + {item.tag_name} + + ) + })}