修复绑定input值

This commit is contained in:
itgaojian 2023-07-15 14:44:36 +08:00
parent 609f748248
commit 7fe51944d0
3 changed files with 406 additions and 396 deletions

View File

@ -96,7 +96,7 @@
"sharePage/cardcode",
"common/corpperimg/cropperimg"
]
}]
}],
"requiredPrivateInfos": ["chooseLocation","getLocation"]
}

View File

@ -95,6 +95,16 @@ Page({
console.log(e);
});
},
authPhone(e) {
this.setData({
userNameText: e.detail.value
})
},
authPwd(e) {
this.setData({
userPassword: e.detail.value
})
},
getFriendCount: function () {
var t = this;
a.restAjax.get(a.restAjax.path(a.apis.getHelpCount, [a.baseUrls.requestUrl]), {

View File

@ -96,8 +96,8 @@
<image bindtap="closeAuthentication" class="close" src="{{sourceUrl}}close-rz.png"></image>
</view>
<view class="authentication-box">
<input value="{{userNameText}}" placeholder="请输入用户名" type="text"></input>
<input value="{{userPassword}}" placeholder="请输入密码" type="password"></input>
<input value="{{userNameText}}" placeholder="请输入用户名" type="text" bindinput="authPhone"></input>
<input value="{{userPassword}}" placeholder="请输入密码" type="password" bindinput="authPwd"></input>
<view bindtap="doAuthentication" class="authentication-btn">立即认证</view>
</view>
</view>