Browse Source

修改家庭成员信息增加参数unitid

release
ZhaoTongYao 3 years ago
parent
commit
98ce8704a1
  1. 3
      epdc-resident-mp-yushan/app.json
  2. 2
      epdc-resident-mp-yushan/pages/toRegister/toRegister.js
  3. 15
      epdc-resident-mp-yushan/subpages/family/pages/familyInfo/familyInfo.js
  4. 2
      epdc-resident-mp-yushan/subpages/family/pages/index/index.js

3
epdc-resident-mp-yushan/app.json

@ -18,6 +18,9 @@
"pages/gridLeaderRegister/gridLeaderRegister", "pages/gridLeaderRegister/gridLeaderRegister",
"pages/property/property" "pages/property/property"
], ],
"requiredPrivateInfos": [
"getLocation"
],
"subPackages": [ "subPackages": [
{ {
"root": "subpages/home", "root": "subpages/home",

2
epdc-resident-mp-yushan/pages/toRegister/toRegister.js

@ -21,7 +21,7 @@ Page({
} }
}) })
let that = this let that = this
const versionNum = '1.2.35' const versionNum = '1.2.36'
api.getScanSwitch(versionNum).then(function (res) { api.getScanSwitch(versionNum).then(function (res) {
console.log(res.data) console.log(res.data)
let state = res.data ? res.data.scanFlag : '1' let state = res.data ? res.data.scanFlag : '1'

15
epdc-resident-mp-yushan/subpages/family/pages/familyInfo/familyInfo.js

@ -30,7 +30,8 @@ Page({
needAudit:'1', needAudit:'1',
}, },
nationList: [], nationList: [],
houseRelationList: [] houseRelationList: [],
unitId: '', // 房屋id
}, },
/** /**
@ -40,13 +41,14 @@ Page({
wx.showLoading({ wx.showLoading({
title: "加载中", title: "加载中",
mask: true, mask: true,
}); })
let idCard = options.idCard
this.setData({ this.setData({
pageType:options.pageType pageType: options.pageType,
unitId: options.id
}) })
if(options.pageType !== 'add'){ if(options.pageType !== 'add'){
await this.getMemberInfo(idCard) await this.getMemberInfo(options.idCard)
}else{ }else{
this.setData({ this.setData({
'fmData.unitId':options.id 'fmData.unitId':options.id
@ -61,7 +63,8 @@ Page({
if(res.msg === 'success' && res.code === 0){ if(res.msg === 'success' && res.code === 0){
if (res.data) { if (res.data) {
this.setData({ this.setData({
'fmData':res.data, 'fmData': res.data,
'fmData.unitId': this.data.unitId
}) })
if (idCard) { if (idCard) {
this.handleValidBlur('',idCard) this.handleValidBlur('',idCard)

2
epdc-resident-mp-yushan/subpages/family/pages/index/index.js

@ -70,7 +70,7 @@ Page({
// 跳转查看页面 // 跳转查看页面
toFamilyInfo(e){ toFamilyInfo(e){
wx.navigateTo({ wx.navigateTo({
url: '/subpages/family/pages/familyInfo/familyInfo?pageType=look&idCard='+ e.currentTarget.dataset.id url: '/subpages/family/pages/familyInfo/familyInfo?pageType=look&idCard='+ e.currentTarget.dataset.id + '&id='+ this.data.familyInfo.id
}) })
}, },
// 取消编辑 // 取消编辑

Loading…
Cancel
Save