mirror of
https://gitee.com/ShopeX/ECShopX_mobile-frontend
synced 2026-08-14 17:41:45 +08:00
Merge branch 'master' of https://git.ishopex.cn/ecshopx/ecshopx-vshop
This commit is contained in:
@@ -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": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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='搜索'
|
||||
|
||||
Reference in New Issue
Block a user