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, content: res.data.resultMsg,
success: () => { success: () => {
wx.reLaunch({ wx.reLaunch({
url: "/pages/indexNew/indexNew" url: "/pages/index/index"
}) })
} }
}) })
@ -527,7 +527,7 @@ Component({
complete: () => { complete: () => {
setTimeout(() => { setTimeout(() => {
wx.reLaunch({ wx.reLaunch({
url: "/pages/indexNew/indexNew" url: "/pages/index/index"
}) })
}, 2000) }, 2000)
} }
@ -544,7 +544,7 @@ Component({
content: res.data.resultMsg, content: res.data.resultMsg,
success: () => { success: () => {
wx.reLaunch({ wx.reLaunch({
url: "/pages/indexNew/indexNew" url: "/pages/index/index"
}) })
} }
}) })
@ -556,7 +556,7 @@ Component({
complete: () => { complete: () => {
setTimeout(() => { setTimeout(() => {
wx.reLaunch({ wx.reLaunch({
url: "/pages/indexNew/indexNew" url: "/pages/index/index"
}) })
}, 2000) }, 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, gridId: this.data.gridInfo.gridId ? this.data.gridInfo.gridId : this.data.houseInfo.gridId,
wxCode: this.data.unionIdStatus === '0' ? this.data.wxInfo.wxCode : '', wxCode: this.data.unionIdStatus === '0' ? this.data.wxInfo.wxCode : '',
encryptedData: this.data.unionIdStatus === '0' ? this.data.wxInfo.encryptedData : '', 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) console.log(para)
api.completeResidentInfoV2(para).then(res => { api.completeResidentInfoV2(para).then(res => {
@ -638,7 +639,8 @@ Page({
gridId: this.data.gridInfo.gridId ? this.data.gridInfo.gridId : this.data.houseInfo.gridId, gridId: this.data.gridInfo.gridId ? this.data.gridInfo.gridId : this.data.houseInfo.gridId,
wxCode: this.data.unionIdStatus === '0' ? this.data.wxInfo.wxCode : '', wxCode: this.data.unionIdStatus === '0' ? this.data.wxInfo.wxCode : '',
encryptedData: this.data.unionIdStatus === '0' ? this.data.wxInfo.encryptedData : '', 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) console.log(para)
api.completeResidentInfo(para).then(res => { api.completeResidentInfo(para).then(res => {

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

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

Loading…
Cancel
Save