|
@@ -14,7 +14,6 @@ import './index.scss'
|
14
|
14
|
import * as houseActions from '@/actions/house'
|
15
|
15
|
import * as noticeType from '@/constants/common.js'
|
16
|
16
|
|
17
|
|
-function noop() { }
|
18
|
17
|
|
19
|
18
|
@connect(
|
20
|
19
|
({ user, city, house }) => ({ ...user, ...city, house }),
|
|
@@ -156,7 +155,15 @@ export default class Records extends Component {
|
156
|
155
|
url: `/onlineSelling/pages/raiseMoney/index?salesBatchId=${checkHouse.salesBatchId}`
|
157
|
156
|
})
|
158
|
157
|
}
|
159
|
|
-
|
|
158
|
+ toHouseDetail(item) {
|
|
159
|
+ if (item.housingStatus == '0' || item.saleBatchStatus == '0') {
|
|
160
|
+ Taro.showToast({ title: '当前销售批次或该房源已被取消发布', icon: 'none', duration: 2000 })
|
|
161
|
+ } else {
|
|
162
|
+ Taro.navigateTo({
|
|
163
|
+ url: `/onlineSelling/pages/detail/index?id=${item.houseId}`
|
|
164
|
+ })
|
|
165
|
+ }
|
|
166
|
+ }
|
160
|
167
|
renderPreselection() {
|
161
|
168
|
const { recordList, noRecord, chooseList } = this.state
|
162
|
169
|
|
|
@@ -169,16 +176,16 @@ export default class Records extends Component {
|
169
|
176
|
<View>
|
170
|
177
|
{
|
171
|
178
|
recordList.map((item) => {
|
172
|
|
- const checked = (chooseList || []).filter(x => x == item.houseId)[0]
|
173
|
|
- const disabled = item.housingInfo.houseLockingStatus == 'locked'
|
|
179
|
+ // const checked = (chooseList || []).filter(x => x == item.houseId)[0]
|
|
180
|
+ // const disabled = item.housingInfo.houseLockingStatus == 'locked'
|
174
|
181
|
|
175
|
182
|
return (
|
176
|
183
|
<Label class="checkbox" >
|
177
|
|
- <Checkbox value={item.houseId - 0} checked={checked} disabled={disabled}>
|
|
184
|
+ {/* <Checkbox value={item.houseId - 0} checked={checked} disabled={disabled}> */}
|
178
|
185
|
<View className="carditem" key={item.preselectionRecordId} >
|
179
|
|
- <HouseCard summary={item} onClick={noop} />
|
|
186
|
+ <HouseCard summary={item} onClick={()=>this.toHouseDetail(item)} />
|
180
|
187
|
</View>
|
181
|
|
- </Checkbox>
|
|
188
|
+ {/* </Checkbox> */}
|
182
|
189
|
</Label>
|
183
|
190
|
)
|
184
|
191
|
})
|
|
@@ -189,7 +196,7 @@ export default class Records extends Component {
|
189
|
196
|
<Statement />
|
190
|
197
|
</ScrollView >
|
191
|
198
|
|
192
|
|
- <View className="raise-box"> <View className="raise-btn" onClick={this.handleSubmit}>认筹房源</View></View>
|
|
199
|
+ {/* <View className="raise-box"> <View className="raise-btn" onClick={this.handleSubmit}>认筹房源</View></View> */}
|
193
|
200
|
|
194
|
201
|
</Block>
|
195
|
202
|
)
|
|
@@ -221,7 +228,7 @@ export default class Records extends Component {
|
221
|
228
|
|
222
|
229
|
{
|
223
|
230
|
noRaiseRecord ? <Blank style="margin:10vh 0 22vh 0" tips="暂无认筹记录" /> :
|
224
|
|
- <ScrollView scrollY>
|
|
231
|
+ <ScrollView scrollY className="container">
|
225
|
232
|
{
|
226
|
233
|
raiseList.map(item => (
|
227
|
234
|
<View key={item.raiseRecordId} >
|