Browse Source

信息修改

1002884655 3 years ago
parent
commit
e3fbb2ef88

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

@@ -59,6 +59,7 @@ export default withLayout((props) => {
59 59
 
60 60
         params.push({ ...item, key: 'minPrice', result: CurrentDemandId === 2 ? min : min * 10000 })
61 61
         params.push({ ...item, key: 'maxPrice', result: CurrentDemandId === 2 ? max : max * 10000 })
62
+        params.push({ ...item, key: 'price', result: CurrentDemandId === 2 ? price : price * 10000 })
62 63
       } else {
63 64
         if (CurrentDemandId === 1) {
64 65
           if (item.key === 'area') {

+ 2
- 2
src/pages/mine/components/EditUserDetailBasicInfo/index.jsx View File

@@ -1,7 +1,7 @@
1 1
 import { useState, useEffect } from 'react'
2 2
 import { ScrollView, Input, Picker } from '@tarojs/components'
3 3
 import { fetch } from '@/utils/request'
4
-import { API_SAVE_CUSTOMER_INFO } from '@/constants/api'
4
+import { API_RECOMMEND_EDIT } from '@/constants/api'
5 5
 import Taro from '@tarojs/taro'
6 6
 import './index.scss'
7 7
 
@@ -37,7 +37,7 @@ export default function EditUserDetailBasicInfo (props) {
37 37
 
38 38
   const ToSubmit = () => {
39 39
     let params = { ...FormData, customerId: CustomerId }
40
-    let url = Data.customerId ? `${API_SAVE_CUSTOMER_INFO}/${Data.customerId}` : API_SAVE_CUSTOMER_INFO
40
+    let url = Data.customerId ? `${API_RECOMMEND_EDIT}/${Data.customerId}` : API_RECOMMEND_EDIT
41 41
     fetch({ url, method: Data.customerId ? 'put' : 'post', payload: params }).then(() => {
42 42
       Taro.showToast({ title: '修改成功', icon: 'none', duration: 2000 })
43 43
       close()

+ 7
- 2
src/pages/video/index.jsx View File

@@ -34,11 +34,16 @@ export default withLayout((props) => {
34 34
 
35 35
 
36 36
   const GetLiveList = (params) => {
37
-    if (['all', 'new'].indexOf(CurrnetMenuId) > -1) {
38
-      // 全部与新房用的一个接口
37
+    if (['all'].indexOf(CurrnetMenuId) > -1) {
38
+      // 全部
39 39
       fetch({ url: API_LIVE_LIST, payload: { ...params, cityId: city.id }, spin: true }).then((res) => {
40 40
         setPageList(res.records || [])
41 41
       })
42
+    } else if (['new'].indexOf(CurrnetMenuId) > -1) {
43
+      // 新房
44
+      fetch({ url: API_LIVE_LIST, payload: { ...params, cityId: city.id, newHouse: true }, spin: true }).then((res) => {
45
+        setPageList(res.records || [])
46
+      })
42 47
     } else if (['notice', 'live'].indexOf(CurrnetMenuId) > -1) {
43 48
       // 预告与直播是虽然是同一个接口, 但是返回值字段不一样
44 49
       const process = 'notice' === CurrnetMenuId ? 1 : 2;