当前位置:网站首页>Input of native applet switches between text and password types
Input of native applet switches between text and password types
2022-07-07 05:47:00 【Don't ask people 0】
Native applet And input Switch text And password type
login.wxml
<input type="text" password="{
{ !isShowPwd }}" placeholder=" Please input a password " value='{
{password}}' maxlength="11" class="phonePassword" placeholder-class="placeholderClass"></input>
<image class='input-img input-img2' bindtap='changePwdType' src="{
{isShowPwd ? '/static/login/viewPassword.png' : '/static/login/hidePassword.png'}}"></image>
login.js
data: {
isShowPwd:true, // Whether to display the password
phoneNum: '',
password: '',
},
// Switch password format
changePwdType(){
if (this.data.isShowPwd) {
// If this.data.isShow by true, It is expressed as password small black dot
this.setData({
isShowPwd:false,
})
} else {
this.setData({
isShowPwd: true,
})
}
},
边栏推荐
- 论文阅读【Sensor-Augmented Egocentric-Video Captioning with Dynamic Modal Attention】
- 往图片添加椒盐噪声或高斯噪声
- R language [logic control] [mathematical operation]
- SAP webservice 测试出现404 Not found Service cannot be reached
- 5阶多项式轨迹
- 论文阅读【Semantic Tag Augmented XlanV Model for Video Captioning】
- 【Shell】清理nohup.out文件
- Educational Codeforces Round 22 B. The Golden Age
- JSP setting header information export to excel
- Modes of optical fiber - single mode and multimode
猜你喜欢
4. 对象映射 - Mapping.Mapster
消息队列:消息积压如何处理?
R语言【逻辑控制】【数学运算】
Différenciation et introduction des services groupés, distribués et microservices
AI人脸编辑让Lena微笑
Paper reading [MM21 pre training for video understanding challenge:video captioning with pre training techniqu]
Realize GDB remote debugging function between different network segments
[PM products] what is cognitive load? How to adjust cognitive load reasonably?
C#可空类型
CVE-2021-3156 漏洞复现笔记
随机推荐
5. Data access - entityframework integration
Paper reading [MM21 pre training for video understanding challenge:video captioning with pre training techniqu]
基于NCF的多模块协同实例
Leetcode 1189 maximum number of "balloons" [map] the leetcode road of heroding
成为资深IC设计工程师的十个阶段,现在的你在哪个阶段 ?
毕业之后才知道的——知网查重原理以及降重举例
Pytorch builds neural network to predict temperature
EMMC打印cqhci: timeout for tag 10提示分析与解决
How to get free traffic in pinduoduo new store and what links need to be optimized in order to effectively improve the free traffic in the store
论文阅读【Open-book Video Captioning with Retrieve-Copy-Generate Network】
4. 对象映射 - Mapping.Mapster
Mysql-centos7 install MySQL through yum
Hcip eighth operation
Bat instruction processing details
Polynomial locus of order 5
Taobao Commodity details page API interface, Taobao Commodity List API interface, Taobao Commodity sales API interface, Taobao app details API interface, Taobao details API interface
WEB架构设计过程
常用消息队列有哪些?
关于服装ERP,你知道多少?
谈fpga和asic的区别