张延森 5 years ago
parent
commit
4ec82cc417
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/pages/project/detail/index.js

+ 2
- 1
src/pages/project/detail/index.js View File

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