|
@@ -100,6 +100,7 @@ export default class Index extends Component {
|
100
|
100
|
ready.queue(() => {
|
101
|
101
|
|
102
|
102
|
if (this.$router.params.scene) {
|
|
103
|
+
|
103
|
104
|
getQrCodeParams(this.$router.params.scene).then((_, codeParams) => {
|
104
|
105
|
this.setState({
|
105
|
106
|
codeParams: codeParams || ''
|
|
@@ -114,6 +115,7 @@ export default class Index extends Component {
|
114
|
115
|
console.log(hFiveId, "hFiveId")
|
115
|
116
|
// h5id 、第一个分享人ID、置业顾问ID、分享人ID
|
116
|
117
|
getHFiveDetail(hFiveId).then(res => {
|
|
118
|
+ // debugger
|
117
|
119
|
this.setState({
|
118
|
120
|
pageInfo: res
|
119
|
121
|
})
|
|
@@ -125,6 +127,7 @@ export default class Index extends Component {
|
125
|
127
|
this.setState({
|
126
|
128
|
avatarVisible: false,
|
127
|
129
|
})
|
|
130
|
+ console.log(phone, "phone#########")
|
128
|
131
|
// 头像手机号都有
|
129
|
132
|
if (phone) {
|
130
|
133
|
|
|
@@ -154,6 +157,7 @@ export default class Index extends Component {
|
154
|
157
|
avatarVisible: false,
|
155
|
158
|
phoneVisible: true,
|
156
|
159
|
})
|
|
160
|
+
|
157
|
161
|
console.log("授权头像成功!")
|
158
|
162
|
}
|
159
|
163
|
// 授权用户信息
|
|
@@ -168,9 +172,15 @@ export default class Index extends Component {
|
168
|
172
|
const payload = Object.assign(res, { sessionKey })
|
169
|
173
|
// 用户信息保存至服务器
|
170
|
174
|
dispatchUpdateUserInfo(payload).then(res => {
|
171
|
|
- console.log('获取用户信息成功')
|
172
|
175
|
this.onAvatarSuccess();
|
|
176
|
+ console.log('获取用户信息成功')
|
173
|
177
|
Taro.hideLoading()
|
|
178
|
+ const { userInfo: { person: { phone } } } = this.props
|
|
179
|
+ if (phone) {
|
|
180
|
+ this.setState({
|
|
181
|
+ phoneVisible: false,
|
|
182
|
+ })
|
|
183
|
+ }
|
174
|
184
|
})
|
175
|
185
|
},
|
176
|
186
|
fail: (err) => {
|