Parcourir la source

Merge branch 'main' of http://git.ycjcjy.com/marketing/miniapp into main

1002884655 il y a 3 ans
Parent
révision
a25996089c

+ 4
- 4
config/index.js Voir le fichier

@@ -29,7 +29,7 @@ const config = {
29 29
   },
30 30
   copy: {
31 31
     patterns: [
32
-      { from: 'src/native/', to: 'dist/native/' },
32
+      // { from: 'src/native/', to: 'dist/native/' },
33 33
     ],
34 34
     options: {
35 35
     }
@@ -37,9 +37,9 @@ const config = {
37 37
   framework: 'react',
38 38
   mini: {
39 39
     compile: {
40
-      exclude: [
41
-        path.resolve(__dirname, '..', 'src/native/')
42
-      ]
40
+      // exclude: [
41
+      //   path.resolve(__dirname, '..', 'src/native/')
42
+      // ]
43 43
     },
44 44
     postcss: {
45 45
       pxtransform: {

+ 4
- 4
config/prod.js Voir le fichier

@@ -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"',

+ 1
- 0
src/components/Picker/index.jsx Voir le fichier

@@ -49,6 +49,7 @@ export default (props) => {
49 49
       onChange={handleChange}
50 50
       value={inx}
51 51
       range={dicts}
52
+      mode={mode||'selector'}
52 53
       {...leftProps}
53 54
     >
54 55
       <View>{text || placeholder || '请选择'}</View>

+ 1
- 1
src/constants/api.js Voir le fichier

@@ -145,7 +145,7 @@ export const API_CHANNEL_REPORT = resolvePath('channel/report')
145 145
 export const API_MANAGE_CUSTOMER_LIST = resolvePath('marking/customers')
146 146
 export const API_TOBE_MANAGER = resolvePath('marketing')
147 147
 export const API_MY_BUILDINGIDS = resolvePath('building/mine')
148
-export const API_MARKETING_VISIT = resolvePath('marketing/visit')
148
+export const API_MARKETING_VISIT = resolvePath('marking//visit')
149 149
 
150 150
 
151 151
 // report

+ 5
- 2
src/pages/mine/changeVisit/index.jsx Voir le fichier

@@ -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 Voir le fichier

@@ -18,7 +18,7 @@ export default function ResidentListItem (props) {
18 18
           <text className='Status'>已报备</text>
19 19
         }
20 20
         {
21
-          data.customerStatus - 0 === 2 && !(data.type === 'report' && data.channelStatus === 3) &&
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>

+ 4
- 3
src/pages/mine/sureVisit/index.jsx Voir le fichier

@@ -11,7 +11,8 @@ import '@/assets/css/iconfont.css'
11 11
 import './index.scss'
12 12
 
13 13
 export default withLayout((props) => {
14
-  const { id } = props
14
+  const { router } = props
15
+  const { id } = router.params
15 16
 
16 17
   const [loading, setLoading] = useState(false)
17 18
   const [channelCustomer, setChannelCustomer] = useState({})
@@ -56,7 +57,7 @@ export default withLayout((props) => {
56 57
         recommendPerson: channelCustomer.recommendPerson,
57 58
         realtyConsultant: consultant,
58 59
         imageUrl,
59
-        visitDate: `${visitDate}T12.00.00.000Z`,  // 随便造了一个时刻
60
+        visitDate: `${visitDate}T12:00:00.000Z`,  // 随便造了一个时刻
60 61
         remark,
61 62
         channelId: channelCustomer.channelId,
62 63
       }
@@ -66,7 +67,7 @@ export default withLayout((props) => {
66 67
     fetch({ url: API_MARKETING_VISIT, payload, method: 'PUT' }).then((res) => {
67 68
       setLoading(false)
68 69
       Taro.showToast({
69
-        url: '操作成功',
70
+        title: '操作成功',
70 71
         icon: 'none'
71 72
       })
72 73
       const t = setTimeout(() => {