From 25b73b396040b99a81a2e31fb5f49cd02cb1eed3 Mon Sep 17 00:00:00 2001 From: "tian.guangyuan" Date: Thu, 14 May 2020 09:37:15 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix=E3=80=91=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E9=82=80=E8=AF=B7=E6=A8=A1=E5=9D=97=E7=9A=84?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../exercising/SignUpCompinents/ChildInformation.vue | 2 +- .../ebiz/exercising/SignUpCompinents/UploadImg.vue | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) 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