|
@@ -1,4 +1,4 @@
|
1
|
|
-import { useState, useEffect } from 'react'
|
|
1
|
+import { useState, useEffect, useCallback } from 'react'
|
2
|
2
|
import { useSelector } from 'react-redux'
|
3
|
3
|
import Taro from '@tarojs/taro'
|
4
|
4
|
import { ScrollView } from '@tarojs/components'
|
|
@@ -75,6 +75,7 @@ export default withLayout((props) => {
|
75
|
75
|
}
|
76
|
76
|
}, [city?.id])
|
77
|
77
|
|
|
78
|
+ const toBuilingList = useCallback(() => Taro.navigateTo({ url: `/pages/index/buildingList/index` }), [])
|
78
|
79
|
|
79
|
80
|
return (
|
80
|
81
|
<view className='Page Index'>
|
|
@@ -124,7 +125,7 @@ export default withLayout((props) => {
|
124
|
125
|
|
125
|
126
|
{/* 全部项目 */}
|
126
|
127
|
<view className='AllProject'>
|
127
|
|
- <ColumnTitle Name='全部项目' Icon='icon-aixin' ShowMore ToMore={() => { Taro.navigateTo({ url: `/pages/index/buildingList/index` }) }}></ColumnTitle>
|
|
128
|
+ <ColumnTitle Name='推荐楼盘' Icon='icon-aixin' ShowMore ToMore={toBuilingList}></ColumnTitle>
|
128
|
129
|
<view className='ProjectList'>
|
129
|
130
|
{
|
130
|
131
|
ProjectList.map((item, index) => (
|
|
@@ -135,8 +136,8 @@ export default withLayout((props) => {
|
135
|
136
|
</view>
|
136
|
137
|
|
137
|
138
|
{/* bottom */}
|
138
|
|
- <view className='PageBottom'>
|
139
|
|
- <text>已经到底了~</text>
|
|
139
|
+ <view className='PageBottom' onClick={toBuilingList}>
|
|
140
|
+ <text>点击查看更多</text>
|
140
|
141
|
</view>
|
141
|
142
|
|
142
|
143
|
</view>
|