|
@@ -45,8 +45,10 @@ export default withLayout(() => {
|
45
|
45
|
const submitForm = (data) => {
|
46
|
46
|
data = data || []
|
47
|
47
|
let params = []
|
|
48
|
+ let budgetCheck = false
|
48
|
49
|
data.map((item) => {
|
49
|
50
|
if (item.key === 'budget') {
|
|
51
|
+ budgetCheck = true
|
50
|
52
|
params.push({ ...item, key: 'minPrice', result: CurrentDemandId === 2 ? item.options[0] : item.options[0] * 10000 })
|
51
|
53
|
params.push({ ...item, key: 'maxPrice', result: CurrentDemandId === 2 ? item.result : item.result * 10000 })
|
52
|
54
|
} else {
|
|
@@ -55,6 +57,10 @@ export default withLayout(() => {
|
55
|
57
|
}
|
56
|
58
|
}
|
57
|
59
|
})
|
|
60
|
+ if(!budgetCheck) {
|
|
61
|
+ params.push({question: '你的预算是多少?', result: 0, key: 'minPrice' })
|
|
62
|
+ params.push({question: '你的预算是多少?', result: 5000000, key: 'maxPrice' })
|
|
63
|
+ }
|
58
|
64
|
params.push({ question: '创建人小程序人员', result: user?.userInfo?.person?.personId, key: 'personId' })
|
59
|
65
|
if(CurrentDemandId !== 3) {
|
60
|
66
|
params.push({ question: '意向区域', result: AreaInfo.id, key: 'intentArea' })
|