roose 4 年之前
父节点
当前提交
0160cd7b6d

+ 6 - 6
pages/collectInfo/collectInfo.js

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

+ 1 - 1
pages/collectInfo/collectInfo.wxml

@@ -310,7 +310,7 @@
 				<view wx:for="{{childInfo[activeIndex].Info}}" wx:for-index="idx">
 					<van-divider contentPosition="center">第{{idx+1}}个子女信息</van-divider>
 					<view class="block"><text class="red">*</text>子女姓名<input data-index="{{idx}}" bindblur="tab2Change2" placeholder="子女姓名" value="{{childInfo[activeIndex].Info[idx].name}}" /></view>
-					<view class="required">子女姓名不能为空哦!</view>
+					<!-- <view class="required">子女姓名不能为空哦!</view> -->
 					<view class="block">
 						<view class="name"><text class="red">*</text>子女性别</view>
 						<picker bindchange="tab2Change3" data-index="{{idx}}" value="{{childInfo[activeIndex].Info[idx].sex}}" range="{{childSexArr}}">

+ 1 - 1
pages/finishInfo/finishInfo.js

@@ -312,7 +312,7 @@ Page({
   //获得当前登陆人的信息
   userInfo() {
     wx.request({
-      url: app.globalData.publicUrl + '/sys/login/session',
+      url: app.globalData.publicUrl + '/applet/findUserInfo',
       method: "GET",
       header: {
         appletsId: wx.getStorageSync('openId')

+ 1 - 1
pages/idCardDetail/idCardDetail.js

@@ -6,7 +6,7 @@ Page({
   },
   onLoad: function () {
     wx.request({
-      url: app.globalData.publicUrl + '/sys/login/session',
+      url: app.globalData.publicUrl + '/applet/findUserInfo',
       method: "GET",
       header: {
         appletsId: wx.getStorageSync('openId')

+ 2 - 1
pages/personInfo/personInfo.js

@@ -66,8 +66,9 @@ Page({
         url: '/pages/login/login',
       })
     }
+
     wx.request({
-      url: app.globalData.publicUrl + '/sys/login/session',
+      url: app.globalData.publicUrl + '/applet/findUserInfo',
       method: "GET",
       header: {
         appletsId: wx.getStorageSync('openId')

+ 1 - 1
pages/updatepassword/updatepassword.js

@@ -120,7 +120,7 @@ Page({
   },
   onLoad: function () {
     wx.request({
-      url: app.globalData.publicUrl + '/sys/login/session',
+      url: app.globalData.publicUrl + '/applet/findUserInfo',
       method: "GET",
       header: {
         appletsId: wx.getStorageSync('openId')