浏览代码

子女 0个 时候添加问题

roose 4 年之前
父节点
当前提交
e0d21cacbd
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      pages/collectInfo/collectInfo.js

+ 5 - 0
pages/collectInfo/collectInfo.js

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