|
@@ -12,7 +12,7 @@ import ColumnTitle from '../components/ColumnTitle/index'
|
12
|
12
|
import './index.scss'
|
13
|
13
|
|
14
|
14
|
export default withLayout((props) => {
|
15
|
|
- const { router } = props
|
|
15
|
+ const { router, city } = props
|
16
|
16
|
const { id } = router.params
|
17
|
17
|
|
18
|
18
|
const [PageList, setPageList] = useState([])
|
|
@@ -31,7 +31,7 @@ export default withLayout((props) => {
|
31
|
31
|
|
32
|
32
|
const GetPageList = () => {
|
33
|
33
|
setHasNextPage(false)
|
34
|
|
- fetch({ url: API_ITEMS_LIST, method: 'get', payload: { pageNumber, pageSize: 10, brandId: id } }).then((res) => {
|
|
34
|
+ fetch({ url: API_ITEMS_LIST, method: 'get', payload: { pageNumber, pageSize: 10, brandId: id, cityId: city.id } }).then((res) => {
|
35
|
35
|
setPageList(pageNumber === 1 ? res.records || [] : PageList.concat(res.records || []))
|
36
|
36
|
setHasNextPage(res.current < res.pages)
|
37
|
37
|
setPull(false)
|