1002884655 hace 3 años
padre
commit
85bf7d025e
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  1. 6
    6
      src/pages/index/buildingPropertyConsultant/index.jsx

+ 6
- 6
src/pages/index/buildingPropertyConsultant/index.jsx Ver fichero

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