|
|
@ -16,9 +16,11 @@ Page({ |
|
|
|
address: '', |
|
|
|
idNo: '', |
|
|
|
form: { |
|
|
|
userId:'', |
|
|
|
realName: '', |
|
|
|
identityNo: '', |
|
|
|
mobile: '', |
|
|
|
faceImg: '', |
|
|
|
villageName: '', //居住小区名称
|
|
|
|
workUnit: '', //工作单位
|
|
|
|
workType: '', //单位性质
|
|
|
@ -141,6 +143,7 @@ Page({ |
|
|
|
title: options.title, |
|
|
|
}) |
|
|
|
let obj = JSON.parse(wx.getStorageSync('userInfo')) |
|
|
|
this.data.form.faceImg = obj.faceImg; |
|
|
|
for (let key in obj) { |
|
|
|
if (!this.data.form.hasOwnProperty(key)) { |
|
|
|
delete obj[key]; |
|
|
@ -603,10 +606,11 @@ Page({ |
|
|
|
// return false
|
|
|
|
// }
|
|
|
|
} |
|
|
|
|
|
|
|
const para = { |
|
|
|
...this.data.form |
|
|
|
} |
|
|
|
para.userId = wx.getStorageSync('userId') |
|
|
|
console.log(para); |
|
|
|
delete para.couplingCommunityStr |
|
|
|
delete para.couplingCommunity |
|
|
|
if (this.data.workTypeText) { |
|
|
@ -616,10 +620,10 @@ Page({ |
|
|
|
title: "提交中..." |
|
|
|
}) |
|
|
|
let than = this |
|
|
|
|
|
|
|
if (this.data.title) { |
|
|
|
wx.login({ |
|
|
|
success: (res) => { |
|
|
|
para.userId = wx.getStorageSync('userId') |
|
|
|
para.wxCode = res.code; |
|
|
|
if (res.code) { |
|
|
|
api.userInfoUpdate(para).then(res => { |
|
|
@ -662,7 +666,6 @@ Page({ |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
console.log(this.data.form); |
|
|
|
}, |
|
|
|
onReady() { |
|
|
|
let _this = this; |
|
|
|