|
@@ -16,6 +16,9 @@ export default class checkin extends Component {
|
16
|
16
|
}
|
17
|
17
|
|
18
|
18
|
componentWillMount () {
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
19
|
22
|
const router = Taro.getStorageSync('router')
|
20
|
23
|
console.log('router---', parseQueryString)
|
21
|
24
|
console.log(router)
|
|
@@ -25,9 +28,14 @@ export default class checkin extends Component {
|
25
|
28
|
const { id = router.query.id , type = router.query.type || '' } = parseQueryString(router.query.params)
|
26
|
29
|
console.log(id, 'id-----')
|
27
|
30
|
this.setState({ id, type })
|
28
|
|
- this.getcheckinDetails(id, type)
|
|
31
|
+
|
29
|
32
|
|
30
|
33
|
|
|
34
|
+ }
|
|
35
|
+
|
|
36
|
+ componentDidShow(){
|
|
37
|
+ const { id , type } = this.state
|
|
38
|
+this.getcheckinDetails(id, type)
|
31
|
39
|
}
|
32
|
40
|
// dynamicId
|
33
|
41
|
getcheckinDetails (id, type) {
|
|
@@ -58,7 +66,7 @@ export default class checkin extends Component {
|
58
|
66
|
title: `失败: ${err.message}`,
|
59
|
67
|
icon: 'none'
|
60
|
68
|
})
|
61
|
|
-
|
|
69
|
+
|
62
|
70
|
console.error(err)
|
63
|
71
|
})
|
64
|
72
|
}
|