|
@@ -826,7 +826,7 @@ Page({
|
|
|
})
|
|
|
},
|
|
|
fail: function () {
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
complete: function () {
|
|
|
wx.hideLoading();
|
|
@@ -900,7 +900,7 @@ Page({
|
|
|
[phone]: e.detail.value
|
|
|
})
|
|
|
this.formCheckPhone();
|
|
|
- if (!this.data.oldPhoneNull) {
|
|
|
+ if (!this.data.oldPhoneNull && !this.data.oldPhoneNull1) {
|
|
|
this.SubmitOldmanInfo({
|
|
|
id: this.data.nameArr[this.data.activeIndex]._id,
|
|
|
phone: e.detail.value
|
|
@@ -1250,6 +1250,7 @@ Page({
|
|
|
}
|
|
|
},
|
|
|
pickEsc() {
|
|
|
+ wx.hideLoading()
|
|
|
this.setData({
|
|
|
showAdressBox: false
|
|
|
})
|
|
@@ -1275,6 +1276,7 @@ Page({
|
|
|
})
|
|
|
},
|
|
|
pickEsc1() {
|
|
|
+ wx.hideLoading()
|
|
|
this.setData({
|
|
|
showAdressBox1: false
|
|
|
})
|
|
@@ -3837,7 +3839,7 @@ Page({
|
|
|
},
|
|
|
onHide() {
|
|
|
const app = getApp()
|
|
|
- console.log("初始",app.globalData.id)
|
|
|
+ console.log("初始", app.globalData.id)
|
|
|
if (app.globalData.id != -1) {
|
|
|
app.globalData.id = ''
|
|
|
console.log("id不等于-1")
|
|
@@ -3848,7 +3850,7 @@ Page({
|
|
|
showAdressBox: false,
|
|
|
showAdressBox1: false
|
|
|
})
|
|
|
- console.log("最终隐藏id",app.globalData.id)
|
|
|
+ console.log("最终隐藏id", app.globalData.id)
|
|
|
},
|
|
|
//获取位置
|
|
|
getSelfLocation: function () {
|
|
@@ -3966,13 +3968,19 @@ Page({
|
|
|
// 表单校验老人联系电话
|
|
|
formCheckPhone() {
|
|
|
this.setData({
|
|
|
- oldPhoneNull: false
|
|
|
+ oldPhoneNull: false,
|
|
|
+ oldPhoneNull1: false
|
|
|
})
|
|
|
if (!this.data.oldInfo[this.data.activeIndex].phone) {
|
|
|
this.setData({
|
|
|
oldPhoneNull: true
|
|
|
})
|
|
|
}
|
|
|
+ if (!(/^1[34578]\d{9}$/.test(this.data.oldInfo[this.data.activeIndex].phone))) {
|
|
|
+ this.setData({
|
|
|
+ oldPhoneNull1: true
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
// 表单校验配偶姓名
|
|
|
formCheckPartnerName() {
|