正在显示
1 个修改的文件
包含
17 行增加
和
7 行删除
| @@ -908,13 +908,23 @@ Page({ | @@ -908,13 +908,23 @@ Page({ | ||
| 908 | // this.showtoast('邮箱格式有误'); | 908 | // this.showtoast('邮箱格式有误'); |
| 909 | // return | 909 | // return |
| 910 | // } | 910 | // } |
| 911 | - if (formdata.bank_account && formdata.bank_account.length > 0 && !format.banknoCheck(formdata.bank_account)) { | ||
| 912 | - wx.showToast({ | ||
| 913 | - title: '银行卡号格式有误', | ||
| 914 | - duration: 2000, | ||
| 915 | - icon: 'none' | ||
| 916 | - }) | ||
| 917 | - return | 911 | + if (formdata.bank_account && formdata.bank_account.length > 0) { |
| 912 | + if (!format.banknoCheck(formdata.bank_account)){ | ||
| 913 | + wx.showToast({ | ||
| 914 | + title: '银行卡号格式有误', | ||
| 915 | + duration: 2000, | ||
| 916 | + icon: 'none' | ||
| 917 | + }) | ||
| 918 | + return | ||
| 919 | + } | ||
| 920 | + if (!this.data.bankInfo.selected) { | ||
| 921 | + wx.showToast({ | ||
| 922 | + title: '请选择开户银行', | ||
| 923 | + duration: 2000, | ||
| 924 | + icon: 'none' | ||
| 925 | + }) | ||
| 926 | + return | ||
| 927 | + } | ||
| 918 | } | 928 | } |
| 919 | this.goCommit(formdata); | 929 | this.goCommit(formdata); |
| 920 | // else if (this.data.personstatusData.selected.length < 1) { | 930 | // else if (this.data.personstatusData.selected.length < 1) { |
请
注册
或
登录
后发表评论