Your Name 3 years ago
parent
commit
55bf84a8b2

+ 1
- 0
src/components/Picker/index.jsx View File

49
       onChange={handleChange}
49
       onChange={handleChange}
50
       value={inx}
50
       value={inx}
51
       range={dicts}
51
       range={dicts}
52
+      mode={mode||'selector'}
52
       {...leftProps}
53
       {...leftProps}
53
     >
54
     >
54
       <View>{text || placeholder || '请选择'}</View>
55
       <View>{text || placeholder || '请选择'}</View>

+ 1
- 1
src/constants/api.js View File

143
 export const API_MANAGE_CUSTOMER_LIST = resolvePath('marking/customers')
143
 export const API_MANAGE_CUSTOMER_LIST = resolvePath('marking/customers')
144
 export const API_TOBE_MANAGER = resolvePath('marketing')
144
 export const API_TOBE_MANAGER = resolvePath('marketing')
145
 export const API_MY_BUILDINGIDS = resolvePath('building/mine')
145
 export const API_MY_BUILDINGIDS = resolvePath('building/mine')
146
-export const API_MARKETING_VISIT = resolvePath('marketing/visit')
146
+export const API_MARKETING_VISIT = resolvePath('marking//visit')
147
 
147
 
148
 
148
 
149
 // report
149
 // report

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

18
           <text className='Status'>已报备</text>
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 === 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>

+ 4
- 3
src/pages/mine/sureVisit/index.jsx View File

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