diff --git a/src/views/ebiz/exercising/SignUpCompinents/ChildInformation.vue b/src/views/ebiz/exercising/SignUpCompinents/ChildInformation.vue index 6e11c109b..372db5ee4 100644 --- a/src/views/ebiz/exercising/SignUpCompinents/ChildInformation.vue +++ b/src/views/ebiz/exercising/SignUpCompinents/ChildInformation.vue @@ -89,7 +89,7 @@ export default { return item.name }) if (arr.length != Array.from(new Set(arr)).length) { - return this.$toast('您孩子的姓名不能重复') + return this.$toast('该子女信息已存在,请勿重复添加') } let feachData = { childrenList: this.childrenList diff --git a/src/views/ebiz/exercising/SignUpCompinents/UploadImg.vue b/src/views/ebiz/exercising/SignUpCompinents/UploadImg.vue index 58a841829..74198aa51 100644 --- a/src/views/ebiz/exercising/SignUpCompinents/UploadImg.vue +++ b/src/views/ebiz/exercising/SignUpCompinents/UploadImg.vue @@ -41,12 +41,19 @@ export default { }, methods: { next() { + let num = this.childrenList.length; for (let child of this.childrenList) { - console.log(child); + // console.log(child); if (child.imgPath == '' || child.imgPath == null) { - return this.$toast('请上传' + child.name + '的作品') + // return this.$toast('请上传' + child.name + '的作品') + i-- } } + if(num == 0){ + return this.$toast('子女参赛作品不能为空') + }else if(num < this.childrenList.length){ + return this.$toast('您上传的作品信息与子女数量不符,请补充后再进行提交!') + } let feachData = {} Object.assign(feachData, this.childInfo) feachData.childrenList = this.childrenList