...
|
...
|
@@ -54,7 +54,7 @@ export default class Login extends Component { |
|
|
const union_id = wx.getStorageSync('unionid');
|
|
|
this.setState({
|
|
|
inviteCode: this.$router.params.inviteCode ? this.$router.params.inviteCode : '',
|
|
|
hasUnionID: union_id !== null && union_id !== '' && union_id !== undefined ? true : false,
|
|
|
hasUnionID: union_id ? true : false,
|
|
|
union_id
|
|
|
});
|
|
|
this.fetchImageCheckSwitchOn();
|
...
|
...
|
@@ -323,12 +323,18 @@ export default class Login extends Component { |
|
|
}
|
|
|
|
|
|
checkUnionIdIsBind(e) {
|
|
|
let { hasUnionID } = this.state;
|
|
|
if (hasUnionID) {
|
|
|
checkUnionIdIsBind(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
render () {
|
|
|
let { tipText, verifyBtnText, countryArea, graphicsCodeElement, graphicsCodeSwitch, graphicsCodeUrl, hasUnionID, is_bind } = this.state;
|
|
|
let showBind = wx.getStorageSync('show_bind');
|
|
|
console.log(hasUnionID);
|
|
|
|
|
|
return (
|
|
|
<View className="login-page">
|
...
|
...
|
|