Authored by QC-L

修改自动验证判断

@@ -54,7 +54,7 @@ export default class Login extends Component { @@ -54,7 +54,7 @@ export default class Login extends Component {
54 const union_id = wx.getStorageSync('unionid'); 54 const union_id = wx.getStorageSync('unionid');
55 this.setState({ 55 this.setState({
56 inviteCode: this.$router.params.inviteCode ? this.$router.params.inviteCode : '', 56 inviteCode: this.$router.params.inviteCode ? this.$router.params.inviteCode : '',
57 - hasUnionID: union_id !== null && union_id !== '' && union_id !== undefined ? true : false, 57 + hasUnionID: union_id ? true : false,
58 union_id 58 union_id
59 }); 59 });
60 this.fetchImageCheckSwitchOn(); 60 this.fetchImageCheckSwitchOn();
@@ -323,12 +323,18 @@ export default class Login extends Component { @@ -323,12 +323,18 @@ export default class Login extends Component {
323 } 323 }
324 324
325 checkUnionIdIsBind(e) { 325 checkUnionIdIsBind(e) {
  326 + let { hasUnionID } = this.state;
  327 + if (hasUnionID) {
326 checkUnionIdIsBind(e); 328 checkUnionIdIsBind(e);
327 } 329 }
  330 + }
  331 +
  332 +
328 333
329 render () { 334 render () {
330 let { tipText, verifyBtnText, countryArea, graphicsCodeElement, graphicsCodeSwitch, graphicsCodeUrl, hasUnionID, is_bind } = this.state; 335 let { tipText, verifyBtnText, countryArea, graphicsCodeElement, graphicsCodeSwitch, graphicsCodeUrl, hasUnionID, is_bind } = this.state;
331 let showBind = wx.getStorageSync('show_bind'); 336 let showBind = wx.getStorageSync('show_bind');
  337 + console.log(hasUnionID);
332 338
333 return ( 339 return (
334 <View className="login-page"> 340 <View className="login-page">