|
@@ -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(() => {
|