1002884655 3 лет назад
Родитель
Сommit
cfecdf2122

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

@@ -33,22 +33,16 @@ export default function AddedValueService () {
33 33
   const SubmitForm = (data) => {
34 34
     data = data || []
35 35
     let params = []
36
-    let budgetCheck = false
37 36
     data.map((item) => {
38 37
       if(item.key === 'budget') {
39
-        budgetCheck = true
40 38
         params.push({...item, key: 'minPrice', result: item.options[0] * 10000})
41
-        params.push({...item, key: 'maxPrice', result: item.result * 10000})
39
+        params.push({...item, key: 'maxPrice', result: item.result !== '' ? item.result * 10000 : 5000000})
42 40
       } else {
43 41
         if(item.result !== '' || item.resultId !== null) {
44 42
           params.push(item)
45 43
         }
46 44
       }
47 45
     })
48
-    if(!budgetCheck) {
49
-      params.push({question: '你的装修预算是多少?', result: 1000000, key: 'minPrice' })
50
-      params.push({question: '你的装修预算是多少?', result: 1000000, key: 'maxPrice' })
51
-    }
52 46
     params.push({question: '创建人小程序人员', result: user?.userInfo?.person?.personId, key: 'personId' })
53 47
     let payload = {}
54 48
     params.map((item) => {

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

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