Your Name 3 年之前
父節點
當前提交
4e7d8292d0
共有 3 個檔案被更改,包括 10 行新增7 行删除
  1. 4
    4
      config/prod.js
  2. 5
    2
      src/pages/mine/changeVisit/index.jsx
  3. 1
    1
      src/pages/mine/components/ResidentListItem/index.jsx

+ 4
- 4
config/prod.js 查看文件

3
     NODE_ENV: '"production"'
3
     NODE_ENV: '"production"'
4
   },
4
   },
5
   defineConstants: {
5
   defineConstants: {
6
-    // HOST: '"https://xlj.newlandsh.com"', //正式
7
-    // WSS_HOST: '"wss://xlj.newlandsh.com"',
8
-    HOST: '"https://xlk.njyz.tech"', //正式
9
-    WSS_HOST: '"wss://xlk.njyz.tech"',
6
+    HOST: '"https://xlj.newlandsh.com"', //正式
7
+    WSS_HOST: '"wss://xlj.newlandsh.com"',
8
+    // HOST: '"https://xlk.njyz.tech"', //正式
9
+    // WSS_HOST: '"wss://xlk.njyz.tech"',
10
     OSS_PATH: '"https://xlk-assets.oss-accelerate.aliyuncs.com/"',
10
     OSS_PATH: '"https://xlk-assets.oss-accelerate.aliyuncs.com/"',
11
     OSS_FAST_PATH: '"https://xlk-assets.oss-accelerate.aliyuncs.com/"',
11
     OSS_FAST_PATH: '"https://xlk-assets.oss-accelerate.aliyuncs.com/"',
12
     ICON_FONT: '"https://yz-websit.oss-cn-hangzhou.aliyuncs.com/xlk/css/iconfont.ttf"',
12
     ICON_FONT: '"https://yz-websit.oss-cn-hangzhou.aliyuncs.com/xlk/css/iconfont.ttf"',

+ 5
- 2
src/pages/mine/changeVisit/index.jsx 查看文件

69
   }, [buildingId])
69
   }, [buildingId])
70
 
70
 
71
   useEffect(() => {
71
   useEffect(() => {
72
-    if (CurrentStatusId - 0 !== 3) {
72
+    if (CurrentStatusId - 0 !== 3 && buildingId) {
73
       fetch({ url: `${API_BUILDING_HOUSE_TYPE}?buildingId=${buildingId}&pageSize=${500}`, method: 'get' }).then((res) => {
73
       fetch({ url: `${API_BUILDING_HOUSE_TYPE}?buildingId=${buildingId}&pageSize=${500}`, method: 'get' }).then((res) => {
74
         setHouseTypeList(res.records || [])
74
         setHouseTypeList(res.records || [])
75
       })
75
       })
76
     }
76
     }
77
-  }, [CurrentStatusId])
77
+  }, [CurrentStatusId, buildingId])
78
 
78
 
79
   const CutStatus = (item) => {
79
   const CutStatus = (item) => {
80
     return () => {
80
     return () => {
101
   const InputChange = (key, e) => {
101
   const InputChange = (key, e) => {
102
     let resData = { ...FormData }
102
     let resData = { ...FormData }
103
     resData[key] = e.detail.value
103
     resData[key] = e.detail.value
104
+    console.log('---------resData---------', resData)
104
     setFormData({ ...resData })
105
     setFormData({ ...resData })
105
   }
106
   }
106
 
107
 
108
+  console.log('---------FormData---------', FormData)
109
+
107
   const PickerChange = (key, e) => {
110
   const PickerChange = (key, e) => {
108
     let resData = { ...FormData }
111
     let resData = { ...FormData }
109
     if (key === 'realtyConsultant') {
112
     if (key === 'realtyConsultant') {

+ 1
- 1
src/pages/mine/components/ResidentListItem/index.jsx 查看文件

18
           <text className='Status'>已报备</text>
18
           <text className='Status'>已报备</text>
19
         }
19
         }
20
         {
20
         {
21
-          data.type === 'report' && data.channelStatus === 1 &&
21
+          data.type === 'report' && (data.channelStatus - 0) === 1 &&
22
           <text className='Status' onClick={() => { Taro.navigateTo({ url: `/pages/mine/sureVisit/index?id=${data.id}` }) }}>到访确认</text>
22
           <text className='Status' onClick={() => { Taro.navigateTo({ url: `/pages/mine/sureVisit/index?id=${data.id}` }) }}>到访确认</text>
23
         }
23
         }
24
       </view>
24
       </view>