From 7f7c2fb09e635689094ba7df0d52ef01fe4b74db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?= <819653817@qq.com> Date: Mon, 22 Apr 2024 14:11:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=AF=86=E7=A0=81=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../searchResult/pages/resiInfo/resiInfo.js | 21 ++++++++++++++++--- utils/api.js | 9 +++++--- 2 files changed, 24 insertions(+), 6 deletions(-) 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}`) +}