mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-24 00:52:53 +08:00
【fix】 修复活动邀请模块的错误信息描述
This commit is contained in:
@@ -89,7 +89,7 @@ export default {
|
|||||||
return item.name
|
return item.name
|
||||||
})
|
})
|
||||||
if (arr.length != Array.from(new Set(arr)).length) {
|
if (arr.length != Array.from(new Set(arr)).length) {
|
||||||
return this.$toast('您孩子的姓名不能重复')
|
return this.$toast('该子女信息已存在,请勿重复添加')
|
||||||
}
|
}
|
||||||
let feachData = {
|
let feachData = {
|
||||||
childrenList: this.childrenList
|
childrenList: this.childrenList
|
||||||
|
|||||||
@@ -41,12 +41,19 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
next() {
|
next() {
|
||||||
|
let num = this.childrenList.length;
|
||||||
for (let child of this.childrenList) {
|
for (let child of this.childrenList) {
|
||||||
console.log(child);
|
// console.log(child);
|
||||||
if (child.imgPath == '' || child.imgPath == null) {
|
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 = {}
|
let feachData = {}
|
||||||
Object.assign(feachData, this.childInfo)
|
Object.assign(feachData, this.childInfo)
|
||||||
feachData.childrenList = this.childrenList
|
feachData.childrenList = this.childrenList
|
||||||
|
|||||||
Reference in New Issue
Block a user