This commit is contained in:
lukaijie
2025-09-01 16:50:12 +08:00
2 changed files with 42 additions and 16 deletions

View File

@@ -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": ""
}
}
}

View File

@@ -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={<SpTabbar height={state.footerHeight} />}
>
{filterList.map((item) => {
return (
<View key={item.tag_id}>
<Text>{item.tag_name}</Text>
</View>
)
})}
<SpSearchBar
keyword={keyword}
placeholder='搜索'