正在显示
1 个修改的文件
包含
23 行增加
和
13 行删除
@@ -1230,19 +1230,33 @@ Page({ | @@ -1230,19 +1230,33 @@ Page({ | ||
1230 | this.showtoast('手机号码有误'); | 1230 | this.showtoast('手机号码有误'); |
1231 | return | 1231 | return |
1232 | } | 1232 | } |
1233 | + if (formdata.current_address_detail.length > 0 && this.data.currentaddressInfo.selected.length < 1) { | ||
1234 | + this.showtoast('请选择居住地址'); | ||
1235 | + return | ||
1236 | + } | ||
1233 | if (this.data.curAddress_haschanged) {//选择了地址 || this.data.taxInfo.current_address.province_code | 1237 | if (this.data.curAddress_haschanged) {//选择了地址 || this.data.taxInfo.current_address.province_code |
1234 | if (formdata.current_address_detail.length < 1) { | 1238 | if (formdata.current_address_detail.length < 1) { |
1235 | this.showtoast('请填写详细居住地址'); | 1239 | this.showtoast('请填写详细居住地址'); |
1236 | return | 1240 | return |
1237 | } | 1241 | } |
1238 | } | 1242 | } |
1243 | + if (formdata.huji_address_detail.length > 0 && this.data.birthaddressInfo.selected.length < 1) { | ||
1244 | + this.showtoast('请选择户籍地址'); | ||
1245 | + return | ||
1246 | + } | ||
1239 | if (this.data.birthAddress_haschanged) {//选择了地址 || this.data.taxInfo.huji_address.province_code | 1247 | if (this.data.birthAddress_haschanged) {//选择了地址 || this.data.taxInfo.huji_address.province_code |
1240 | if (formdata.huji_address_detail.length < 1) { | 1248 | if (formdata.huji_address_detail.length < 1) { |
1241 | this.showtoast('请填写详细户籍地址'); | 1249 | this.showtoast('请填写详细户籍地址'); |
1242 | return | 1250 | return |
1243 | } | 1251 | } |
1244 | } | 1252 | } |
1245 | - if (this.data.contactAddress_haschanged) {//选择了地址 || this.data.taxInfo.contact_address.province_code | 1253 | + if (this.data.hasOtherCard && formdata.contact_address_detail.length > 0) { |
1254 | + if (this.data.contactaddressInfo.selected.length < 1) { | ||
1255 | + this.showtoast('请选择联系地址'); | ||
1256 | + return | ||
1257 | + } | ||
1258 | + } | ||
1259 | + if (this.data.hasOtherCard && this.data.contactAddress_haschanged) {//选择了地址 || this.data.taxInfo.contact_address.province_code | ||
1246 | if (formdata.contact_address_detail.length < 1) { | 1260 | if (formdata.contact_address_detail.length < 1) { |
1247 | this.showtoast('请填写详细联系地址'); | 1261 | this.showtoast('请填写详细联系地址'); |
1248 | return | 1262 | return |
@@ -1256,21 +1270,17 @@ Page({ | @@ -1256,21 +1270,17 @@ Page({ | ||
1256 | // this.showtoast('邮箱格式有误'); | 1270 | // this.showtoast('邮箱格式有误'); |
1257 | // return | 1271 | // return |
1258 | // } | 1272 | // } |
1273 | + if (this.data.bankInfo.selected.length > 0 && formdata.bank_account.length < 1) { | ||
1274 | + this.showtoast('请输入银行卡号') | ||
1275 | + return | ||
1276 | + } | ||
1259 | if (formdata.bank_account && formdata.bank_account.length > 0) { | 1277 | if (formdata.bank_account && formdata.bank_account.length > 0) { |
1260 | if (!format.banknoCheck(formdata.bank_account)){ | 1278 | if (!format.banknoCheck(formdata.bank_account)){ |
1261 | - wx.showToast({ | ||
1262 | - title: '银行卡号格式有误', | ||
1263 | - duration: 2000, | ||
1264 | - icon: 'none' | ||
1265 | - }) | 1279 | + this.showtoast('银行卡号格式有误') |
1266 | return | 1280 | return |
1267 | } | 1281 | } |
1268 | if (!this.data.bankInfo.selected) { | 1282 | if (!this.data.bankInfo.selected) { |
1269 | - wx.showToast({ | ||
1270 | - title: '请选择开户银行', | ||
1271 | - duration: 2000, | ||
1272 | - icon: 'none' | ||
1273 | - }) | 1283 | + this.showtoast('请选择开户银行') |
1274 | return | 1284 | return |
1275 | } | 1285 | } |
1276 | } | 1286 | } |
@@ -1370,8 +1380,8 @@ Page({ | @@ -1370,8 +1380,8 @@ Page({ | ||
1370 | "is_lonely_man": that.data.lonelyolderInfo.selected, | 1380 | "is_lonely_man": that.data.lonelyolderInfo.selected, |
1371 | "comment": formdata.comment, | 1381 | "comment": formdata.comment, |
1372 | 1382 | ||
1373 | - "contact_address": request_contact_address, | ||
1374 | - "contact_address_detail": formdata.contact_address_detail, | 1383 | + "contact_address": that.data.hasOtherCard ? request_contact_address : {}, |
1384 | + "contact_address_detail": that.data.hasOtherCard ? formdata.contact_address_detail: '', | ||
1375 | 1385 | ||
1376 | // "join_date": that.data.startDate.selected.length > 0 ? Date.parse(new Date(that.data.startDate.selected)) / 1000 : this.data.taxInfo.join_date, | 1386 | // "join_date": that.data.startDate.selected.length > 0 ? Date.parse(new Date(that.data.startDate.selected)) / 1000 : this.data.taxInfo.join_date, |
1377 | // "separate_date": that.data.endDate.selected.length > 0 ? Date.parse(new Date(that.data.endDate.selected)) / 1000 : this.data.taxInfo.separate_date, | 1387 | // "separate_date": that.data.endDate.selected.length > 0 ? Date.parse(new Date(that.data.endDate.selected)) / 1000 : this.data.taxInfo.separate_date, |
请
注册
或
登录
后发表评论