|
@@ -1256,13 +1256,29 @@ Page({
|
|
|
console.log(e.detail.value)
|
|
|
let Info = 'oldInfo[' + this.data.activeIndex + '].chooseAdressArr1'
|
|
|
let Infos = 'oldInfo[' + this.data.activeIndex + '].addressExt'
|
|
|
+ let address = 'oldInfo[' + this.data.activeIndex + '].address'
|
|
|
console.log(this.data.oldInfo[this.data.activeIndex].nativePlaceExt, "打印下这个");
|
|
|
-
|
|
|
if (e.detail.value[0] == '现居地址与户籍地址一致') {
|
|
|
+
|
|
|
+ if (this.data.oldInfo[this.data.activeIndex].chooseAdressArr.length == 5) {
|
|
|
+ let nativePlaceId = '';
|
|
|
+ let nativePlace = '';
|
|
|
+ for (let value of this.data.oldInfo[this.data.activeIndex].chooseAdressArr) {
|
|
|
+ nativePlace += value.CIVILREGIONALISMNAME + '/'
|
|
|
+ nativePlaceId += value.CIVILREGIONALISMID + ','
|
|
|
+ console.log(value, "打印下");
|
|
|
+ }
|
|
|
+ this.SubmitOldmanInfo({
|
|
|
+ id: this.data.nameArr[this.data.activeIndex]._id,
|
|
|
+ address: nativePlace.substring(0, nativePlace.length - 1),
|
|
|
+ addressId: nativePlaceId.substring(0, nativePlaceId.length - 1),
|
|
|
+ })
|
|
|
+ }
|
|
|
this.SubmitOldmanInfo({
|
|
|
id: this.data.nameArr[this.data.activeIndex]._id,
|
|
|
isSameWithAddress: '是',
|
|
|
addressExt: this.data.oldInfo[this.data.activeIndex].nativePlaceExt,
|
|
|
+
|
|
|
})
|
|
|
this.setData({
|
|
|
[Info]: this.data.oldInfo[this.data.activeIndex].chooseAdressArr,
|