|
@@ -1,11 +1,11 @@
|
1
|
1
|
import Taro, { Component } from '@tarojs/taro'
|
2
|
2
|
import { WebView } from '@tarojs/components'
|
3
|
|
-// import { contractUser, contractCheck } from '@/services/project'
|
|
3
|
+import { contractUser, contractCheck } from '@/services/project'
|
4
|
4
|
|
5
|
5
|
export default class Panorama extends Component {
|
6
|
6
|
state = {}
|
7
|
7
|
// tk = undefined
|
8
|
|
- // tk2 = undefined
|
|
8
|
+ tk2 = undefined
|
9
|
9
|
componentWillMount() {
|
10
|
10
|
const { from = '', id: raiseRecordId, consultantName, consultantId } = this.$router.params
|
11
|
11
|
// if (from == 'raiseProfile') {
|
|
@@ -38,22 +38,22 @@ export default class Panorama extends Component {
|
38
|
38
|
}, 5000)
|
39
|
39
|
}
|
40
|
40
|
}
|
41
|
|
- // componentDidHide() {
|
42
|
|
- // if (this.tk) {
|
43
|
|
- // clearInterval(this.tk)
|
44
|
|
- // }
|
45
|
|
- // if (this.tk2) {
|
46
|
|
- // clearInterval(this.tk2)
|
47
|
|
- // }
|
48
|
|
- // }
|
49
|
|
- // componentWillUnmount() {
|
50
|
|
- // if (this.tk) {
|
51
|
|
- // clearInterval(this.tk)
|
52
|
|
- // }
|
53
|
|
- // if (this.tk2) {
|
54
|
|
- // clearInterval(this.tk2)
|
55
|
|
- // }
|
56
|
|
- // }
|
|
41
|
+ componentDidHide() {
|
|
42
|
+ // if (this.tk) {
|
|
43
|
+ // clearInterval(this.tk)
|
|
44
|
+ // }
|
|
45
|
+ if (this.tk2) {
|
|
46
|
+ clearInterval(this.tk2)
|
|
47
|
+ }
|
|
48
|
+ }
|
|
49
|
+ componentWillUnmount() {
|
|
50
|
+ // if (this.tk) {
|
|
51
|
+ // clearInterval(this.tk)
|
|
52
|
+ // }
|
|
53
|
+ if (this.tk2) {
|
|
54
|
+ clearInterval(this.tk2)
|
|
55
|
+ }
|
|
56
|
+ }
|
57
|
57
|
|
58
|
58
|
render() {
|
59
|
59
|
const url = decodeURIComponent(this.$router.params.url)
|