|
@@ -284,6 +284,18 @@ class Index extends Component {
|
|
|
const stairsRateArr = curObj.stairs_rate ? curObj.stairs_rate.split('-') : []
|
|
|
|
|
|
const appUserInfo = Taro.getStorageSync('APP_userInfo')
|
|
|
+
|
|
|
+ const schoolList = curObj.school_list && curObj.school_list.duikou ? curObj.school_list.duikou : []
|
|
|
+
|
|
|
+ // <View className="t t1">{arrToObj(dictData.school_attrib)[item.school_attrib]}</View>
|
|
|
+ // <View className="t t4">{arrToObj(dictData.school_type)[item.school_type]}</View>
|
|
|
+ const schoolViews = schoolList.map((item) => {
|
|
|
+ return (
|
|
|
+ <View className="v-sub-op" key={item.id}>{`${item.school_name}[${arrToObj(dictData.school_attrib)[item.school_attrib]}][${arrToObj(dictData.school_type)[item.school_type]}]`}</View>
|
|
|
+ )
|
|
|
+
|
|
|
+ })
|
|
|
+ // console.log(schoolStrList)
|
|
|
return (
|
|
|
<View className="scoped-main">
|
|
|
{/* {this.renderQrcode()} */}
|
|
@@ -321,6 +333,15 @@ class Index extends Component {
|
|
|
<View className="k">单价</View>
|
|
|
<View className="v">{parseInt(curObj.price * 10000 / curObj.area)}元/㎡</View>
|
|
|
</View>
|
|
|
+ <View className="op full">
|
|
|
+ <View className="k">学区</View>
|
|
|
+ <View className="v">
|
|
|
+ <View className="v-sub">
|
|
|
+ {schoolViews}
|
|
|
+ {/* <View className="v-sub-op"></View> */}
|
|
|
+ </View>
|
|
|
+ </View>
|
|
|
+ </View>
|
|
|
<View className="op">
|
|
|
<View className="k">楼层</View>
|
|
|
<View className="v">{FHstr}/{curObj.storeys}层</View>
|
|
@@ -331,7 +352,7 @@ class Index extends Component {
|
|
|
</View>
|
|
|
<View className="op">
|
|
|
<View className="k">满几</View>
|
|
|
- <View className="v">{hryObj[curObj.full_year]}</View>
|
|
|
+ <View className="v">{hryObj[curObj.full_year] || '未知'}</View>
|
|
|
</View>
|
|
|
<View className="op">
|
|
|
<View className="k">装修</View>
|
|
@@ -888,6 +909,59 @@ class Index extends Component {
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ renderOptionsDkSchool () {
|
|
|
+ const { curObj } = this.state
|
|
|
+ return (
|
|
|
+ <View className="dtl-options scoped-school">
|
|
|
+ <View className="do-title">
|
|
|
+ <View className="t">对口学校</View>
|
|
|
+ <View className="r2">注:目前该楼盘在此学区中</View>
|
|
|
+ </View>
|
|
|
+ {this.renderDkSchool()}
|
|
|
+ </View>
|
|
|
+ )
|
|
|
+ }
|
|
|
+ renderDkSchool () {
|
|
|
+ const { curObj } = this.state
|
|
|
+ const dictData = Taro.getStorageSync('dictData')
|
|
|
+ const arr = curObj.school_list && curObj.school_list.duikou || []
|
|
|
+ const curItems = arr.map((item, index) => {
|
|
|
+ return (
|
|
|
+ <Navigator url={'/pagesSchool/indexDtl?id=' + item.id} className="lb-item" key={index}>
|
|
|
+ <View className="lb-img">
|
|
|
+ <Image className="img" src={item.pri_image + '_xs'} />
|
|
|
+ </View>
|
|
|
+ <View className="lb-info">
|
|
|
+ <View className="lb-p1">{item.school_name}</View>
|
|
|
+ <View className="lb-p2">{item.address}</View>
|
|
|
+ <View className="lb-tag">
|
|
|
+ <View className="t t1">{arrToObj(dictData.school_attrib)[item.school_attrib]}</View>
|
|
|
+ <View className="t t4">{arrToObj(dictData.school_type)[item.school_type]}</View>
|
|
|
+ </View>
|
|
|
+ </View>
|
|
|
+ </Navigator>
|
|
|
+ )
|
|
|
+ })
|
|
|
+ return (
|
|
|
+ <View className="l-list-box t2">
|
|
|
+ {curItems}
|
|
|
+ </View>
|
|
|
+ )
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
render () {
|
|
|
const userInfo = Taro.getStorageSync('APP_userInfo') || {}
|
|
|
const { curObj } = this.state
|
|
@@ -898,6 +972,7 @@ class Index extends Component {
|
|
|
{this.renderMain()}
|
|
|
{this.renderImg()}
|
|
|
{this.renderAround()}
|
|
|
+ {this.renderOptionsDkSchool()}
|
|
|
{(curObj.es_house_list && curObj.es_house_list.length > 0) && this.renderOther()}
|
|
|
{this.renderSale()}
|
|
|
{this.renderPopup()}
|