1002884655 3 лет назад
Родитель
Сommit
85bf7d025e
1 измененных файлов: 6 добавлений и 6 удалений
  1. 6
    6
      src/pages/index/buildingPropertyConsultant/index.jsx

+ 6
- 6
src/pages/index/buildingPropertyConsultant/index.jsx Просмотреть файл

9
 
9
 
10
 export default withLayout((props) => {
10
 export default withLayout((props) => {
11
   const { router } = props
11
   const { router } = props
12
-  const { buildingId } = router.params
12
+  const { buldingId } = router.params
13
 
13
 
14
   const [List, setList] = useState([])
14
   const [List, setList] = useState([])
15
 
15
 
35
   }
35
   }
36
 
36
 
37
   useEffect(() => {
37
   useEffect(() => {
38
-    if (!buildingId) {
38
+    if (!buldingId) {
39
       Taro.showToast({
39
       Taro.showToast({
40
         title: '没有楼盘信息',
40
         title: '没有楼盘信息',
41
         icon: 'none',
41
         icon: 'none',
43
       return
43
       return
44
     }
44
     }
45
 
45
 
46
-    getCardList({ pageSize: 500, buildingId }).then((res) => {
46
+    getCardList({ pageSize: 500, buildingId: buldingId }).then((res) => {
47
       const { records } = res || []
47
       const { records } = res || []
48
       setList(records)
48
       setList(records)
49
     })
49
     })
50
-  }, [buildingId])
50
+  }, [buldingId])
51
 
51
 
52
   return (
52
   return (
53
     <view className='Page buildingPropertyConsultant'>
53
     <view className='Page buildingPropertyConsultant'>
82
                   ></text>
82
                   ></text>
83
                   
83
                   
84
                 </view>
84
                 </view>
85
-
85
+                
86
                 <view className='Desc'>
86
                 <view className='Desc'>
87
-                  <text>{item.description}</text>
87
+                  <text>{item.description || '暂无简介'}</text>
88
                 </view>
88
                 </view>
89
 
89
 
90
               </view>
90
               </view>