Kaynağa Gözat

信息修改

1002884655 3 yıl önce
ebeveyn
işleme
e3fbb2ef88

+ 1
- 0
src/pages/index/helpToFindHouse/index.jsx Dosyayı Görüntüle

59
 
59
 
60
         params.push({ ...item, key: 'minPrice', result: CurrentDemandId === 2 ? min : min * 10000 })
60
         params.push({ ...item, key: 'minPrice', result: CurrentDemandId === 2 ? min : min * 10000 })
61
         params.push({ ...item, key: 'maxPrice', result: CurrentDemandId === 2 ? max : max * 10000 })
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
       } else {
63
       } else {
63
         if (CurrentDemandId === 1) {
64
         if (CurrentDemandId === 1) {
64
           if (item.key === 'area') {
65
           if (item.key === 'area') {

+ 2
- 2
src/pages/mine/components/EditUserDetailBasicInfo/index.jsx Dosyayı Görüntüle

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

+ 7
- 2
src/pages/video/index.jsx Dosyayı Görüntüle

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