Browse Source

居民详情却确认密码

data-page-one
是小王呀\24601 1 year ago
parent
commit
d4e9b847f4
  1. 13
      subpages/searchResult/pages/resiInfo/resiInfo.js
  2. 2
      subpages/searchResult/pages/resiInfo/resiInfo.wxml

13
subpages/searchResult/pages/resiInfo/resiInfo.js

@ -778,9 +778,6 @@ Page({
api.isUpdater(this.data.resiId).then(result => { api.isUpdater(this.data.resiId).then(result => {
if (result.code==0) { if (result.code==0) {
if (result.data==true) { if (result.data==true) {
this.setData({
checkPassword:true
})
this.onConfirmassword() this.onConfirmassword()
} }
else{ else{
@ -799,14 +796,20 @@ Page({
password:e.detail.value password:e.detail.value
}) })
}, },
// 关闭
onClosePassword(){ onClosePassword(){
this.setData({ this.setData({
checkPassword:false checkPassword:false
}) })
}, },
onConfirmassword(){ //
onClickconfirm(){
this.onConfirmassword(this.data.password)
},
//
onConfirmassword(password){
let parm = { let parm = {
password:this.data.password password
} }
api.getResiUserInfo(this.data.resiId,parm).then(res=>{ api.getResiUserInfo(this.data.resiId,parm).then(res=>{
if(res.code === 0){ if(res.code === 0){

2
subpages/searchResult/pages/resiInfo/resiInfo.wxml

@ -336,7 +336,7 @@
<!-- --> <!-- -->
<view class="btn blue" bind:tap="handelTopunchCard">走访打卡</view> <view class="btn blue" bind:tap="handelTopunchCard">走访打卡</view>
</view> </view>
<van-dialog use-slot title="密码验证" show="{{ checkPassword }}" show-cancel-button bind:close="onClosePassword" bind:confirm="onConfirmassword" custom-class="dialog" confirm-button-color="#3974f6"> <van-dialog use-slot title="密码验证" show="{{ checkPassword }}" show-cancel-button bind:close="onClosePassword" bind:confirm="onClickconfirm" custom-class="dialog" confirm-button-color="#3974f6">
<view> <view>
<input type="text" bind:input="bindPassword" bind:blur="bindPassword" value="{{password}}" placeholder="请输入密码" password /> <input type="text" bind:input="bindPassword" bind:blur="bindPassword" value="{{password}}" placeholder="请输入密码" password />
</view> </view>

Loading…
Cancel
Save