|
|
@@ -237,7 +237,7 @@
|
|
|
},
|
|
|
// 验证手机
|
|
|
checkPhone () {
|
|
|
- if (!this.state.mobile === 'success' && !this.state.token === 'success') {
|
|
|
+ if (this.state.mobile !== 'success' || this.state.token !== 'success') {
|
|
|
this.downToast('请确认填写部分是否有误')
|
|
|
} else if (this.checked === false) {
|
|
|
this.downToast('您对阅读条款未做勾选')
|
|
|
@@ -421,11 +421,11 @@
|
|
|
// 企业注册
|
|
|
sureRegister () {
|
|
|
if (!this.hasRegister) {
|
|
|
- if (this.state.spaceName !== 'success' &&
|
|
|
- this.state.businessCode !== 'success' &&
|
|
|
- this.state.vipName !== 'success' &&
|
|
|
- this.state.password !== 'success' &&
|
|
|
- this.state.confirm !== 'success' &&
|
|
|
+ if (this.state.spaceName !== 'success' ||
|
|
|
+ this.state.businessCode !== 'success' ||
|
|
|
+ this.state.vipName !== 'success' ||
|
|
|
+ this.state.password !== 'success' ||
|
|
|
+ this.state.confirm !== 'success' ||
|
|
|
this.state.email !== 'success') {
|
|
|
this.downToast('请确认填写部分是否有误')
|
|
|
} else {
|
|
|
@@ -433,17 +433,17 @@
|
|
|
}
|
|
|
} else {
|
|
|
if (!this.hasEmail) {
|
|
|
- if (this.state.spaceName !== 'success' &&
|
|
|
- this.state.businessCode !== 'success' &&
|
|
|
- this.state.password !== 'success' &&
|
|
|
+ if (this.state.spaceName !== 'success' ||
|
|
|
+ this.state.businessCode !== 'success' ||
|
|
|
+ this.state.password !== 'success' ||
|
|
|
this.state.email !== 'success') {
|
|
|
this.downToast('请确认填写部分是否有误')
|
|
|
} else {
|
|
|
this.sbmitRegister()
|
|
|
}
|
|
|
} else {
|
|
|
- if (this.state.spaceName !== 'success' &&
|
|
|
- this.state.businessCode !== 'success' &&
|
|
|
+ if (this.state.spaceName !== 'success' ||
|
|
|
+ this.state.businessCode !== 'success' ||
|
|
|
this.state.password !== 'success') {
|
|
|
this.downToast('请确认填写部分是否有误')
|
|
|
} else {
|