|
@@ -67,6 +67,7 @@ export default class Index extends Component {
|
67
|
67
|
const options = wx.getLaunchOptionsSync()
|
68
|
68
|
if (sceneInShare(options.scene)) {
|
69
|
69
|
const { person = {} } = this.props.userInfo || {}
|
|
70
|
+ console.log('-------person----->', person)
|
70
|
71
|
if ((person.tel || person.phone) && (person.avatarurl || '').indexOf('wx.qlogo.cn') === -1) {
|
71
|
72
|
Taro.reLaunch({ url: '/pages/auth/index' })
|
72
|
73
|
return
|
|
@@ -79,13 +80,13 @@ export default class Index extends Component {
|
79
|
80
|
|
80
|
81
|
this.initPageData()
|
81
|
82
|
})
|
82
|
|
- console.log('---------------after componentWillMount---------------')
|
83
|
83
|
}
|
84
|
84
|
|
85
|
85
|
componentWillUnmount() {
|
86
|
86
|
const { recordId } = this.state
|
87
|
87
|
recordId && updatePoint(recordId)
|
88
|
88
|
}
|
|
89
|
+
|
89
|
90
|
initPageData() {
|
90
|
91
|
const router = Taro.getStorageSync('router')
|
91
|
92
|
const id = this.$router.params.id || router.query.id
|