|
@@ -4,6 +4,8 @@ import { View, Image, ScrollView } from '@tarojs/components'
|
|
|
import { AtNoticebar } from 'taro-ui'
|
|
import { AtNoticebar } from 'taro-ui'
|
|
|
import ListMore from '@/c/pageDataList/listMore'
|
|
import ListMore from '@/c/pageDataList/listMore'
|
|
|
import EchartLine from './components/price/EchartLine'
|
|
import EchartLine from './components/price/EchartLine'
|
|
|
|
|
+import Chat from '@/c/chat/com'
|
|
|
|
|
+import LoginJudge from '@/c/login/Judge'
|
|
|
import './price.scss'
|
|
import './price.scss'
|
|
|
|
|
|
|
|
class Index extends Component {
|
|
class Index extends Component {
|
|
@@ -40,11 +42,17 @@ class Index extends Component {
|
|
|
|
|
|
|
|
componentWillMount () {
|
|
componentWillMount () {
|
|
|
Taro.$AHU(this)
|
|
Taro.$AHU(this)
|
|
|
- const { name } = this.$router.params
|
|
|
|
|
|
|
+ const {id, name } = this.$router.params
|
|
|
Taro.setNavigationBarTitle({
|
|
Taro.setNavigationBarTitle({
|
|
|
title: `${name}的历史成交价`
|
|
title: `${name}的历史成交价`
|
|
|
})
|
|
})
|
|
|
- this.getDataList()
|
|
|
|
|
|
|
+ this.getDataList(() => {
|
|
|
|
|
+ if (this.subChat) this.subChat.getData({name, id}, 'pt')
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ refChat = (ref) => {
|
|
|
|
|
+ this.subChat = ref
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
componentDidShow () { }
|
|
componentDidShow () { }
|
|
@@ -52,7 +60,7 @@ class Index extends Component {
|
|
|
componentDidHide () { }
|
|
componentDidHide () { }
|
|
|
|
|
|
|
|
|
|
|
|
|
- getDataList () {
|
|
|
|
|
|
|
+ getDataList (bc) {
|
|
|
const {id: estate_id} = this.$router.params
|
|
const {id: estate_id} = this.$router.params
|
|
|
let { page_size, page, dataList, isListEmpty } = this.state
|
|
let { page_size, page, dataList, isListEmpty } = this.state
|
|
|
Taro.api.house.apiestatepricelist({
|
|
Taro.api.house.apiestatepricelist({
|
|
@@ -91,6 +99,7 @@ class Index extends Component {
|
|
|
if (lineData.length > 0) {
|
|
if (lineData.length > 0) {
|
|
|
if (this.subLine) this.subLine.getData(lineData.reverse() || [])
|
|
if (this.subLine) this.subLine.getData(lineData.reverse() || [])
|
|
|
}
|
|
}
|
|
|
|
|
+ if (bc) bc()
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
onScrollToLower (e) {
|
|
onScrollToLower (e) {
|
|
@@ -220,9 +229,11 @@ class Index extends Component {
|
|
|
render () {
|
|
render () {
|
|
|
return (
|
|
return (
|
|
|
<View className="l-box">
|
|
<View className="l-box">
|
|
|
|
|
+ <LoginJudge />
|
|
|
{this.renderTop()}
|
|
{this.renderTop()}
|
|
|
{this.renderList()}
|
|
{this.renderList()}
|
|
|
- {this.renderFooter()}
|
|
|
|
|
|
|
+ <Chat onRef={this.refChat} />
|
|
|
|
|
+ {/* {this.renderFooter()} */}
|
|
|
</View>
|
|
</View>
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|