|
@@ -1064,7 +1064,6 @@ Page({
|
|
_this.setData({
|
|
_this.setData({
|
|
showBj: false,
|
|
showBj: false,
|
|
})
|
|
})
|
|
- isTwoOnshow = true;
|
|
|
|
}
|
|
}
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
@@ -1210,11 +1209,16 @@ Page({
|
|
this.setData({
|
|
this.setData({
|
|
oldPhone1: false
|
|
oldPhone1: false
|
|
})
|
|
})
|
|
- this.SubmitOldmanInfo({
|
|
|
|
- id: this.data.nameArr[this.data.activeIndex]._id,
|
|
|
|
- phone: e.detail.value
|
|
|
|
- })
|
|
|
|
}
|
|
}
|
|
|
|
+ let phone = 'oldInfo[' + this.data.activeIndex + '].phone'
|
|
|
|
+ this.setData({
|
|
|
|
+ [phone]:e.detail.value
|
|
|
|
+ })
|
|
|
|
+ this.SubmitOldmanInfo({
|
|
|
|
+ id: this.data.nameArr[this.data.activeIndex]._id,
|
|
|
|
+ phone: e.detail.value
|
|
|
|
+ })
|
|
|
|
+ console.log(this.data.oldInfo)
|
|
},
|
|
},
|
|
// 补充户籍地址
|
|
// 补充户籍地址
|
|
tab1Change6(e) {
|
|
tab1Change6(e) {
|
|
@@ -1966,8 +1970,7 @@ Page({
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- // 其他收入来源sourceOfIncomeExt
|
|
|
|
- tab1Change14_1: function (e) {
|
|
|
|
|
|
+ tab1change25: function (e) {
|
|
if (e.detail.value == null || e.detail.value == '') {
|
|
if (e.detail.value == null || e.detail.value == '') {
|
|
this.setData({
|
|
this.setData({
|
|
isloveNull: true
|
|
isloveNull: true
|
|
@@ -1982,38 +1985,7 @@ Page({
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- // 其他关爱服务需求
|
|
|
|
- tab1change25: function (e) {
|
|
|
|
- console.log(e.detail.value)
|
|
|
|
- const items = this.data.oldInfo[this.data.activeIndex].oldType
|
|
|
|
- const values = e.detail.value
|
|
|
|
- for (let i = 0, lenI = items.length; i < lenI; ++i) {
|
|
|
|
- items[i].checked = false
|
|
|
|
- for (let j = 0, lenJ = values.length; j < lenJ; ++j) {
|
|
|
|
- if (items[i].name === values[j]) {
|
|
|
|
- items[i].checked = true
|
|
|
|
- break
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- let oldType = 'oldInfo[' + this.data.activeIndex + '].oldType'
|
|
|
|
- this.setData({
|
|
|
|
- [oldType]: items
|
|
|
|
- })
|
|
|
|
- if (e.detail.value == '' || e.detail.value == null) {
|
|
|
|
- this.setData({
|
|
|
|
- isloveQtNull: true
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- this.setData({
|
|
|
|
- isloveQtNull: false,
|
|
|
|
- })
|
|
|
|
- this.SubmitOldmanInfo({
|
|
|
|
- id: this.data.nameArr[this.data.activeIndex]._id,
|
|
|
|
- demandExt: e.detail.value
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
// 老年人类别
|
|
// 老年人类别
|
|
tab1Change26: function (e) {
|
|
tab1Change26: function (e) {
|
|
console.log(e.detail.value)
|
|
console.log(e.detail.value)
|
|
@@ -2107,7 +2079,8 @@ Page({
|
|
},
|
|
},
|
|
goPhoto() {
|
|
goPhoto() {
|
|
let that = this;
|
|
let that = this;
|
|
-
|
|
|
|
|
|
+ isTwoOnshow = true;
|
|
|
|
+ wx.setStorageSync('isTwoOnshow', true)
|
|
wx.showLoading({
|
|
wx.showLoading({
|
|
title: '加载中',
|
|
title: '加载中',
|
|
})
|
|
})
|
|
@@ -2116,6 +2089,8 @@ Page({
|
|
sizeType: ['compressed'],
|
|
sizeType: ['compressed'],
|
|
sourceType: ['camera'],
|
|
sourceType: ['camera'],
|
|
success: function (res) {
|
|
success: function (res) {
|
|
|
|
+ console.log(isTwoOnshow, "我是照片");
|
|
|
|
+ console.log(wx.getStorageSync('isTwoOnshow'), "我是照片");
|
|
let tempFilePaths = res.tempFilePaths
|
|
let tempFilePaths = res.tempFilePaths
|
|
wx.uploadFile({
|
|
wx.uploadFile({
|
|
url: util.globalData.publicUrl + '/sys/user/upload',
|
|
url: util.globalData.publicUrl + '/sys/user/upload',
|
|
@@ -2128,6 +2103,8 @@ Page({
|
|
appletsId: wx.getStorageSync('openId'),
|
|
appletsId: wx.getStorageSync('openId'),
|
|
},
|
|
},
|
|
success: function (res) {
|
|
success: function (res) {
|
|
|
|
+ console.log(isTwoOnshow, "我是上唇");
|
|
|
|
+ console.log(wx.getStorageSync('isTwoOnshow'), "我是上唇");
|
|
console.log(JSON.parse(res.data), "45454545");
|
|
console.log(JSON.parse(res.data), "45454545");
|
|
let datas = JSON.parse(res.data)
|
|
let datas = JSON.parse(res.data)
|
|
let imgPath = 'oldInfo[' + that.data.activeIndex + '].imgPath'
|
|
let imgPath = 'oldInfo[' + that.data.activeIndex + '].imgPath'
|
|
@@ -2145,7 +2122,6 @@ Page({
|
|
})
|
|
})
|
|
},
|
|
},
|
|
complete: (e) => {
|
|
complete: (e) => {
|
|
- isTwoOnshow = true;
|
|
|
|
wx.hideLoading();
|
|
wx.hideLoading();
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -3931,13 +3907,18 @@ Page({
|
|
})
|
|
})
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
- console.log("11111111111111111111111111111111111");
|
|
|
|
if (isTwoOnshow) {
|
|
if (isTwoOnshow) {
|
|
- isTwoOnshow = false;
|
|
|
|
|
|
+ // isTwoOnshow = false;
|
|
return;
|
|
return;
|
|
};
|
|
};
|
|
|
|
+ // if (wx.getStorageSync('isTwoOnshow')) {
|
|
|
|
+ // console.log("啊啊啊","打印了锕");
|
|
|
|
+
|
|
|
|
+ // wx.setStorageSync('isTwoOnshow', false)
|
|
|
|
+ // return;
|
|
|
|
+ // }
|
|
if (isonShow) {
|
|
if (isonShow) {
|
|
- isonShow = false;
|
|
|
|
|
|
+ // isonShow = false;
|
|
return;
|
|
return;
|
|
};
|
|
};
|
|
|
|
|