diff --git a/src/main/resources/views/platform/activity/school/ActivityApply.html b/src/main/resources/views/platform/activity/school/ActivityApply.html index fff7d0e..ab8a3dd 100644 --- a/src/main/resources/views/platform/activity/school/ActivityApply.html +++ b/src/main/resources/views/platform/activity/school/ActivityApply.html @@ -2102,20 +2102,20 @@ layout("/layouts/platform.html"){ }) //判断每一个选手填写的是否正确 for (let i = 0; i < appliedData.length; i++) { - /* if (!appliedData[i].position) { - this.$message.warning("请填写完整职称职务!") - return - } - if (!appliedData[i].mobile) { - this.$message.warning("请填写手机号!") - return - } else { - const phoneRegex = /^1[3-9]\d{9}$/; - if (!phoneRegex.test(appliedData[i].mobile)) { - this.$message.warning("手机号填写不正确!") - return - } - }*/ + if (!appliedData[i].position) { + this.$message.warning("请填写完整职称职务!") + return + } + if (!appliedData[i].mobile) { + this.$message.warning("请填写手机号!") + return + } else { + const phoneRegex = /^1[3-9]\d{9}$/; + if (!phoneRegex.test(appliedData[i].mobile)) { + this.$message.warning("手机号填写不正确!") + return + } + } } if (this.appliedData3.length == 0 && this.appliedData.length == 0) {