|
|
@ -210,7 +210,9 @@ Page({ |
|
|
|
encryptedData: this.data.unionIdStatus === '1' ? '' : this.data.encryptedData, |
|
|
|
iv: this.data.unionIdStatus === '1' ? '' : this.data.iv |
|
|
|
} |
|
|
|
api.completeInfo(para).then(function (res) { |
|
|
|
console.log(this.data.tabType) |
|
|
|
if (this.data.tabType == 'tab1'){ |
|
|
|
api.completeResidentInfo(para).then(function (res) { |
|
|
|
// console.log(res.data.resultCode)
|
|
|
|
wx.hideLoading() |
|
|
|
if (res.data.resultCode == 1) { |
|
|
@ -239,6 +241,66 @@ Page({ |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
api.completePartyInfo(para).then(function (res) { |
|
|
|
// console.log(res.data.resultCode)
|
|
|
|
wx.hideLoading() |
|
|
|
if (res.data.resultCode == 1) { |
|
|
|
wx.showModal({ |
|
|
|
title: '党员认证失败', |
|
|
|
showCancel: false, |
|
|
|
content: res.data.resultMsg, |
|
|
|
success: function (res) { |
|
|
|
wx.reLaunch({ |
|
|
|
url: '/pages/index/index' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
wx.showToast({ |
|
|
|
title: '认证成功', |
|
|
|
icon: 'none', |
|
|
|
duration: 3000, |
|
|
|
complete: function () { |
|
|
|
setTimeout(function () { |
|
|
|
wx.reLaunch({ |
|
|
|
url: '/pages/index/index' |
|
|
|
}) |
|
|
|
}, 3000); |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
// api.completeInfo(para).then(function (res) {
|
|
|
|
// // console.log(res.data.resultCode)
|
|
|
|
// wx.hideLoading()
|
|
|
|
// if (res.data.resultCode == 1) {
|
|
|
|
// wx.showModal({
|
|
|
|
// title: '党员认证失败',
|
|
|
|
// showCancel: false,
|
|
|
|
// content: res.data.resultMsg,
|
|
|
|
// success: function (res) {
|
|
|
|
// wx.reLaunch({
|
|
|
|
// url: '/pages/index/index'
|
|
|
|
// })
|
|
|
|
// }
|
|
|
|
// })
|
|
|
|
// } else {
|
|
|
|
// wx.showToast({
|
|
|
|
// title: '认证成功',
|
|
|
|
// icon: 'none',
|
|
|
|
// duration: 3000,
|
|
|
|
// complete: function () {
|
|
|
|
// setTimeout(function () {
|
|
|
|
// wx.reLaunch({
|
|
|
|
// url: '/pages/index/index'
|
|
|
|
// })
|
|
|
|
// }, 3000);
|
|
|
|
// }
|
|
|
|
// })
|
|
|
|
// }
|
|
|
|
// })
|
|
|
|
}, |
|
|
|
getSmsCode() { |
|
|
|
console.log(this.data.mobile) |
|
|
|