소스 검색

修改项目详情必须授权手机号

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

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

@@ -65,10 +65,10 @@ export default class Index extends Component {
65 65
 
66 66
   componentWillMount() {
67 67
     ready.queue(() => {
68
-      // 分享场景需要先授权手机, 再授权头像
69
-      const options = wx.getLaunchOptionsSync()
70
-      console.log('-------options----->', options)
71
-      if (sceneInShare(options.scene)) {
68
+      // // 分享场景需要先授权手机, 再授权头像
69
+      // const options = wx.getLaunchOptionsSync()
70
+      // console.log('-------options----->', options)
71
+      // if (sceneInShare(options.scene)) {
72 72
         const { person = {} } = this.props.userInfo || {}
73 73
         console.log('-------person----->', person)
74 74
         if ((person.tel || person.phone) && (person.avatarurl || '').indexOf('wx.qlogo.cn') === -1) {
@@ -79,7 +79,7 @@ export default class Index extends Component {
79 79
         this.setState({
80 80
           grantPhoneVisible: true,
81 81
         })
82
-      }
82
+      // }
83 83
 
84 84
 
85 85
       const router = Taro.getStorageSync('router')