Showing
1 changed file
with
7 additions
and
3 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-21 16:04:10 | 2 | * @Date: 2022-09-21 16:04:10 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-10-31 14:15:03 | 4 | + * @LastEditTime: 2022-10-31 14:20:36 |
| 5 | * @FilePath: /swx/src/pages/createActivity/index.vue | 5 | * @FilePath: /swx/src/pages/createActivity/index.vue |
| 6 | * @Description: 创建活动页面 | 6 | * @Description: 创建活动页面 |
| 7 | --> | 7 | --> |
| ... | @@ -658,9 +658,9 @@ const onExtendChange = ({ detail }) => { | ... | @@ -658,9 +658,9 @@ const onExtendChange = ({ detail }) => { |
| 658 | job_post.value = detail; | 658 | job_post.value = detail; |
| 659 | extend.value = detail.split(','); | 659 | extend.value = detail.split(','); |
| 660 | } | 660 | } |
| 661 | -const onExtendBlur = () => { // TODO:提交时可以才检查一次 | 661 | +const onExtendBlur = () => { |
| 662 | if (job_post.value.indexOf(',') >= 0) { | 662 | if (job_post.value.indexOf(',') >= 0) { |
| 663 | - Toast('请使用中文标点逗号'); | 663 | + Toast('请使用中文标点逗号分隔'); |
| 664 | } | 664 | } |
| 665 | } | 665 | } |
| 666 | 666 | ||
| ... | @@ -711,6 +711,10 @@ const validForm = () => { // 校验表单 | ... | @@ -711,6 +711,10 @@ const validForm = () => { // 校验表单 |
| 711 | Toast('活动地址不能为空'); | 711 | Toast('活动地址不能为空'); |
| 712 | return false; | 712 | return false; |
| 713 | } | 713 | } |
| 714 | + if (job_post.value.indexOf(',') >= 0) { | ||
| 715 | + Toast('岗位报名,请使用中文标点逗号分隔'); | ||
| 716 | + return false; | ||
| 717 | + } | ||
| 714 | return true; | 718 | return true; |
| 715 | } | 719 | } |
| 716 | 720 | ... | ... |
-
Please register or login to post a comment