Browse Source

小程序编辑页面密码验证

data-page-one
是小王呀\24601 1 year ago
parent
commit
7f7c2fb09e
  1. 21
      subpages/searchResult/pages/resiInfo/resiInfo.js
  2. 9
      utils/api.js

21
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({

9
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}`)
}

Loading…
Cancel
Save