Browse Source

静态页面

1002884655 3 years ago
parent
commit
07a35e8324

+ 5
- 1
src/pages/index/addedValueService/index.jsx View File

44
       }
44
       }
45
     })
45
     })
46
     params.push({question: '创建人小程序人员', result: user?.userInfo?.person?.personId, key: 'personId' })
46
     params.push({question: '创建人小程序人员', result: user?.userInfo?.person?.personId, key: 'personId' })
47
-    fetch({ url: API_HELP_FIND_HOUSE_SUBMIT, method: 'post', payload: params }).then((res) => {
47
+    let payload = {}
48
+    params.map((item) => {
49
+      payload[item.key] = item.result || item.resultId
50
+    })
51
+    fetch({ url: API_HELP_FIND_HOUSE_SUBMIT, method: 'post', payload }).then((res) => {
48
       setResultList(res.taBuildingList || [])
52
       setResultList(res.taBuildingList || [])
49
       setShowPopup(true)
53
       setShowPopup(true)
50
     })
54
     })

+ 5
- 1
src/pages/index/helpToFindHouse/index.jsx View File

60
       }
60
       }
61
     })
61
     })
62
     params.push({question: '创建人小程序人员', result: user?.userInfo?.person?.personId, key: 'personId' })
62
     params.push({question: '创建人小程序人员', result: user?.userInfo?.person?.personId, key: 'personId' })
63
-    fetch({ url: API_HELP_FIND_HOUSE_SUBMIT, method: 'post', payload: params }).then((res) => {
63
+    let payload = {}
64
+    params.map((item) => {
65
+      payload[item.key] = item.result || item.resultId
66
+    })
67
+    fetch({ url: API_HELP_FIND_HOUSE_SUBMIT, method: 'post', payload }).then((res) => {
64
       setResultList(res.taBuildingList || [])
68
       setResultList(res.taBuildingList || [])
65
       setShowPopup(true)
69
       setShowPopup(true)
66
     })
70
     })