|
@@ -757,7 +757,7 @@ Page({
|
|
|
if (e.data.words_result['公民身份号码'].words.substring(10, 12) < month || e.data.words_result['公民身份号码'].words.substring(10, 12) == month && e.data.words_result['公民身份号码'].words.substring(12, 14) <= day) {
|
|
|
age++;
|
|
|
}
|
|
|
- if (age >=60) {
|
|
|
+ if (age >= 60) {
|
|
|
let idNumber = 'oldInfo[' + _this.data.activeIndex + '].idNumber'
|
|
|
let name = 'oldInfo[' + _this.data.activeIndex + '].name'
|
|
|
let nation = 'oldInfo[' + _this.data.activeIndex + '].nation'
|
|
@@ -950,7 +950,7 @@ Page({
|
|
|
provinceArr: newdata,
|
|
|
})
|
|
|
// if(!this.data.adressChangeStatus){
|
|
|
- this.chooseAdress2();
|
|
|
+ this.chooseAdress2();
|
|
|
// }
|
|
|
},
|
|
|
})
|
|
@@ -965,9 +965,9 @@ Page({
|
|
|
mid = fid
|
|
|
} else {
|
|
|
console.log(this.data.provinceArr[this.data.multiIndex[1]])
|
|
|
- if(!this.data.provinceArr[this.data.multiIndex[1]]){
|
|
|
+ if (!this.data.provinceArr[this.data.multiIndex[1]]) {
|
|
|
wx.hideLoading()
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
mid = this.data.provinceArr[this.data.multiIndex[1]].CIVILREGIONALISMID
|
|
|
}
|
|
|
}
|
|
@@ -989,7 +989,7 @@ Page({
|
|
|
cityArr: newdata
|
|
|
})
|
|
|
// if(!this.data.adressChangeStatus){
|
|
|
- this.chooseAdress3();
|
|
|
+ this.chooseAdress3();
|
|
|
// }
|
|
|
}
|
|
|
})
|
|
@@ -1004,9 +1004,9 @@ Page({
|
|
|
if (fid) {
|
|
|
mid = fid
|
|
|
} else {
|
|
|
- if(!this.data.cityArr[this.data.multiIndex[2]]){
|
|
|
+ if (!this.data.cityArr[this.data.multiIndex[2]]) {
|
|
|
wx.hideLoading()
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
mid = this.data.cityArr[this.data.multiIndex[2]].CIVILREGIONALISMID
|
|
|
}
|
|
|
}
|
|
@@ -1046,7 +1046,7 @@ Page({
|
|
|
})
|
|
|
} else {
|
|
|
// if(!this.data.adressChangeStatus){
|
|
|
- this.chooseAdress4();
|
|
|
+ this.chooseAdress4();
|
|
|
// }
|
|
|
}
|
|
|
}
|
|
@@ -1063,9 +1063,9 @@ Page({
|
|
|
mid = fid
|
|
|
} else {
|
|
|
console.log(this.data.areaArr[this.data.multiIndex[3]])
|
|
|
- if(!this.data.areaArr[this.data.multiIndex[3]]){
|
|
|
+ if (!this.data.areaArr[this.data.multiIndex[3]]) {
|
|
|
wx.hideLoading();
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
mid = this.data.areaArr[this.data.multiIndex[3]].CIVILREGIONALISMID
|
|
|
}
|
|
|
}
|
|
@@ -1104,7 +1104,7 @@ Page({
|
|
|
})
|
|
|
} else {
|
|
|
// if(!this.data.adressChangeStatus){
|
|
|
- this.chooseAdress5();
|
|
|
+ this.chooseAdress5();
|
|
|
// }
|
|
|
}
|
|
|
}
|
|
@@ -1120,9 +1120,9 @@ Page({
|
|
|
mid = fid
|
|
|
} else {
|
|
|
console.log(this.data.townArr[this.data.multiIndex[4]])
|
|
|
- if(!this.data.townArr[this.data.multiIndex[4]]){
|
|
|
+ if (!this.data.townArr[this.data.multiIndex[4]]) {
|
|
|
wx.hideLoading()
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
mid = this.data.townArr[this.data.multiIndex[4]].CIVILREGIONALISMID
|
|
|
}
|
|
|
}
|
|
@@ -1286,9 +1286,9 @@ Page({
|
|
|
title: '加载中',
|
|
|
mask: true
|
|
|
})
|
|
|
- setTimeout(function(){
|
|
|
+ setTimeout(function () {
|
|
|
wx.hideLoading()
|
|
|
- },5000)
|
|
|
+ }, 5000)
|
|
|
},
|
|
|
bindpickend(e) {
|
|
|
// console.log(e, '滚动结束了')
|
|
@@ -3807,7 +3807,7 @@ Page({
|
|
|
wx.showModal({
|
|
|
showCancel: false,
|
|
|
content: '当前您未登录,请登录',
|
|
|
- success (res) {
|
|
|
+ success(res) {
|
|
|
if (res.confirm) {
|
|
|
wx.redirectTo({
|
|
|
url: '/pages/login/login',
|
|
@@ -3883,7 +3883,21 @@ Page({
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- fail: function () {}
|
|
|
+ fail: function () {
|
|
|
+ console.log('获取失败了打开设置')
|
|
|
+ // wx.openSetting({
|
|
|
+ // success: function (osrs) {
|
|
|
+ // wx.getUserInfo({
|
|
|
+ // success: function (getuserinfo) {
|
|
|
+ // console.log(getuserinfo)
|
|
|
+ // },
|
|
|
+ // fail: function (fres) {
|
|
|
+ // console.log(fres)
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
onLoad() {
|