Your Name 3 anni fa
parent
commit
4e7d8292d0

+ 4
- 4
config/prod.js Vedi File

@@ -3,10 +3,10 @@ module.exports = {
3 3
     NODE_ENV: '"production"'
4 4
   },
5 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 10
     OSS_PATH: '"https://xlk-assets.oss-accelerate.aliyuncs.com/"',
11 11
     OSS_FAST_PATH: '"https://xlk-assets.oss-accelerate.aliyuncs.com/"',
12 12
     ICON_FONT: '"https://yz-websit.oss-cn-hangzhou.aliyuncs.com/xlk/css/iconfont.ttf"',

+ 5
- 2
src/pages/mine/changeVisit/index.jsx Vedi File

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

+ 1
- 1
src/pages/mine/components/ResidentListItem/index.jsx Vedi File

@@ -18,7 +18,7 @@ export default function ResidentListItem (props) {
18 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 22
           <text className='Status' onClick={() => { Taro.navigateTo({ url: `/pages/mine/sureVisit/index?id=${data.id}` }) }}>到访确认</text>
23 23
         }
24 24
       </view>