diff --git a/subpages/searchResult/pages/resiInfo/resiInfo.js b/subpages/searchResult/pages/resiInfo/resiInfo.js index a854f38..bcbc719 100644 --- a/subpages/searchResult/pages/resiInfo/resiInfo.js +++ b/subpages/searchResult/pages/resiInfo/resiInfo.js @@ -775,9 +775,24 @@ Page({ }) }, toAddResi() { - this.setData({ - checkPassword:true - }) + api.isUpdater(this.data.resiId).then(result => { + if (result.code==0) { + if (result.data==true) { + this.setData({ + checkPassword:true + }) + this.onConfirmassword() + } + else{ + this.setData({ + checkPassword:true + }) + } + } + + + }); + }, bindPassword(e){ this.setData({ diff --git a/utils/api.js b/utils/api.js index 24edf5f..a7833bb 100644 --- a/utils/api.js +++ b/utils/api.js @@ -77,7 +77,8 @@ module.exports = { waitCollectHouseList, nonIntResiList, overView, - getFamilyRelationshipListByHouseId + getFamilyRelationshipListByHouseId, + isUpdater } // 获取公钥 @@ -404,6 +405,8 @@ function nonIntResiList(parm){ function overView(parm){ return fly.get(`actual/base/communityHouse/resiAndHouseCollect/overview`,parm) } - - +//判断是否需要输入密码 +function isUpdater(resiId) { + return fly.get(`actual/base/residentCategoryUpdateInfo/isUpdater/${resiId}`) +}