|
@@ -2246,11 +2246,10 @@ Page({
|
|
this.setData({
|
|
this.setData({
|
|
[Info]: []
|
|
[Info]: []
|
|
})
|
|
})
|
|
- this.SubmitOldmanInfo({
|
|
|
|
- id: this.data.nameArr[this.data.activeIndex]._id,
|
|
|
|
- childInfo:JSON.stringify([]),
|
|
|
|
- // childrenNum: this.data.childNums[e.detail.value].substring(0, 1)
|
|
|
|
- })
|
|
|
|
|
|
+ // this.SubmitOldmanInfo({
|
|
|
|
+ // id: this.data.nameArr[this.data.activeIndex]._id,
|
|
|
|
+ // childInfo:JSON.stringify([]),
|
|
|
|
+ // })
|
|
} else if (e.detail.value == 1) {
|
|
} else if (e.detail.value == 1) {
|
|
this.setData({
|
|
this.setData({
|
|
[Info]: [{
|
|
[Info]: [{
|
|
@@ -2338,7 +2337,8 @@ Page({
|
|
}
|
|
}
|
|
this.SubmitOldmanInfo({
|
|
this.SubmitOldmanInfo({
|
|
id: this.data.nameArr[this.data.activeIndex]._id,
|
|
id: this.data.nameArr[this.data.activeIndex]._id,
|
|
- childrenNum: e.detail.value
|
|
|
|
|
|
+ childrenNum: e.detail.value,
|
|
|
|
+ childInfo: JSON.stringify(this.data.childInfo[this.data.activeIndex].Info)
|
|
// childrenNum: this.data.childNums[e.detail.value].substring(0, 1)
|
|
// childrenNum: this.data.childNums[e.detail.value].substring(0, 1)
|
|
})
|
|
})
|
|
},
|
|
},
|