小程序
小游戏
企业微信
微信支付
扫描小程序码分享
已上线版本,之前代码都是没问题可运行,现在安全键盘在输入密码后,bindblur方法返回“******”,显示编码错误,错误提示“can only be used with license”
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
wxml内容
<input name="password" value="{{passwordModal.password}}" class='password-input' hold-keyboard='{{true}}' adjust-position='{{false}}' focus="{{passwordModal&&passwordModal.passwordFocus!=0&&passwordModal.password.length<6}}" bindinput="password_input" bindfocus="InputFocus" bindblur="InputBlur" type="safe-password" password="true" maxlength="6" safe-password-cert-path="/save_keybord.cert" safe-password-length="6" safe-password-time-stamp="{{passwordModal.time}}" safe-password-nonce="{{passwordModal.time}}" safe-password-custom-hash="md5(sha1('Revisit' + sha256(sm3(password + '{{passwordModal.salt}}'))))"></input>
js内容
InputBlur(e) {
if (this.data.isShow) {
console.log('InputBlur', e)
if (this.data.passwordModal) {
if (this.data.passwordModal.password.length < 6) {
this.data.passwordModal.passwordFocus = Date.parse(new Date())
this.data.passwordModal.password = ""
this.setData({
passwordModal: this.data.passwordModal
})
} else {
if (this.task) {
const data = e.detail.encryptedValue ? e.detail.encryptedValue : this._getEncryptPassword(this.data.passwordModal.password, this.data.passwordModal.salt)
this.task.resolve({
password: data
this.task = null
}
passwordModal: null
证书放在根目录下/save_keybord.cert,并且这个代码在之前都是可以跑的通的,即代码并没有修改,现在显示编码错误,错误提示“can only be used with license”
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
wxml内容
<input name="password" value="{{passwordModal.password}}" class='password-input' hold-keyboard='{{true}}' adjust-position='{{false}}' focus="{{passwordModal&&passwordModal.passwordFocus!=0&&passwordModal.password.length<6}}" bindinput="password_input" bindfocus="InputFocus" bindblur="InputBlur" type="safe-password" password="true" maxlength="6" safe-password-cert-path="/save_keybord.cert" safe-password-length="6" safe-password-time-stamp="{{passwordModal.time}}" safe-password-nonce="{{passwordModal.time}}" safe-password-custom-hash="md5(sha1('Revisit' + sha256(sm3(password + '{{passwordModal.salt}}'))))"></input>
js内容
InputBlur(e) {
if (this.data.isShow) {
console.log('InputBlur', e)
if (this.data.passwordModal) {
if (this.data.passwordModal.password.length < 6) {
this.data.passwordModal.passwordFocus = Date.parse(new Date())
this.data.passwordModal.password = ""
this.setData({
passwordModal: this.data.passwordModal
})
} else {
if (this.task) {
const data = e.detail.encryptedValue ? e.detail.encryptedValue : this._getEncryptPassword(this.data.passwordModal.password, this.data.passwordModal.salt)
this.task.resolve({
password: data
})
this.task = null
}
this.setData({
passwordModal: null
})
}
}
}
}
证书放在根目录下/save_keybord.cert,并且这个代码在之前都是可以跑的通的,即代码并没有修改,现在显示编码错误,错误提示“can only be used with license”