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