Browse Source

优化

release
ZhaoTongYao 3 years ago
parent
commit
f2bcccdfeb
  1. 8
      epdc-resident-mp-yushan/pages/complete/components/personalInfo/personalInfo.js
  2. 6
      epdc-resident-mp-yushan/subpages/family/pages/bindFamily/bindFamily.js
  3. 5
      epdc-resident-mp-yushan/utils/api.js

8
epdc-resident-mp-yushan/pages/complete/components/personalInfo/personalInfo.js

@ -515,7 +515,7 @@ Component({
content: res.data.resultMsg,
success: () => {
wx.reLaunch({
url: "/pages/indexNew/indexNew"
url: "/pages/index/index"
})
}
})
@ -527,7 +527,7 @@ Component({
complete: () => {
setTimeout(() => {
wx.reLaunch({
url: "/pages/indexNew/indexNew"
url: "/pages/index/index"
})
}, 2000)
}
@ -544,7 +544,7 @@ Component({
content: res.data.resultMsg,
success: () => {
wx.reLaunch({
url: "/pages/indexNew/indexNew"
url: "/pages/index/index"
})
}
})
@ -556,7 +556,7 @@ Component({
complete: () => {
setTimeout(() => {
wx.reLaunch({
url: "/pages/indexNew/indexNew"
url: "/pages/index/index"
})
}, 2000)
}

6
epdc-resident-mp-yushan/subpages/family/pages/bindFamily/bindFamily.js

@ -590,7 +590,8 @@ Page({
gridId: this.data.gridInfo.gridId ? this.data.gridInfo.gridId : this.data.houseInfo.gridId,
wxCode: this.data.unionIdStatus === '0' ? this.data.wxInfo.wxCode : '',
encryptedData: this.data.unionIdStatus === '0' ? this.data.wxInfo.encryptedData : '',
iv: this.data.unionIdStatus === '0' ? this.data.wxInfo.iv : ''
iv: this.data.unionIdStatus === '0' ? this.data.wxInfo.iv : '',
status: '1'
}
console.log(para)
api.completeResidentInfoV2(para).then(res => {
@ -638,7 +639,8 @@ Page({
gridId: this.data.gridInfo.gridId ? this.data.gridInfo.gridId : this.data.houseInfo.gridId,
wxCode: this.data.unionIdStatus === '0' ? this.data.wxInfo.wxCode : '',
encryptedData: this.data.unionIdStatus === '0' ? this.data.wxInfo.encryptedData : '',
iv: this.data.unionIdStatus === '0' ? this.data.wxInfo.iv : ''
iv: this.data.unionIdStatus === '0' ? this.data.wxInfo.iv : '',
status: '1'
}
console.log(para)
api.completeResidentInfo(para).then(res => {

5
epdc-resident-mp-yushan/utils/api.js

@ -11,6 +11,7 @@ module.exports = {
getGridList: getGridList,
changeGrid: changeGrid,
completeInfo: completeInfo,
completeResidentInfo: completeResidentInfo,
completeResidentInfoV2: completeResidentInfoV2,
completePartyInfoV2: completePartyInfoV2,
completeCompanyInfo: completeCompanyInfo,
@ -164,6 +165,10 @@ function gridLeaderRegister(mobile, smsCode, wxCode) {
function completeInfo(data) {
return fly.post('app-user/user/completeInfo', data)
}
// 居民 完善个人信息 传验证码
function completeResidentInfo(para) {
return fly.post("app-user/user/completeResidentInfo", para)
}
// 居民 完善个人信息v2 不需要穿验证码
function completeResidentInfoV2(para) {
return fly.post("app-user/user/v2/completeResidentInfo", para)

Loading…
Cancel
Save