张延森 5 년 전
부모
커밋
4ec82cc417
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      src/pages/project/detail/index.js

+ 2
- 1
src/pages/project/detail/index.js 파일 보기

@@ -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