当前位置:网站首页>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,
})
}
},
边栏推荐
- 关于服装ERP,你知道多少?
- An example of multi module collaboration based on NCF
- 消息队列:如何确保消息不会丢失
- Five core elements of architecture design
- 5阶多项式轨迹
- 淘宝店铺发布API接口(新),淘宝oAuth2.0店铺商品API接口,淘宝商品发布API接口,淘宝商品上架API接口,一整套发布上架店铺接口对接分享
- WEB架构设计过程
- 论文阅读【MM21 Pre-training for Video Understanding Challenge:Video Captioning with Pretraining Techniqu】
- “多模态”概念
- 力扣102题:二叉树的层序遍历
猜你喜欢

Leakage relay llj-100fs

Modes of optical fiber - single mode and multimode

分布式事务解决方案之2PC

Zero sequence aperture of leakage relay jolx-gs62 Φ one hundred

What are the common message queues?

Lombok plug-in

得物客服一站式工作台卡顿优化之路

Leetcode: maximum number of "balloons"
![[PM products] what is cognitive load? How to adjust cognitive load reasonably?](/img/75/2277e0c413be561ec963b44679eb75.jpg)
[PM products] what is cognitive load? How to adjust cognitive load reasonably?

Preliminary practice of niuke.com (9)
随机推荐
Codeforces Round #416 (Div. 2) D. Vladik and Favorite Game
随机生成session_id
Mapbox Chinese map address
Paper reading [semantic tag enlarged xlnv model for video captioning]
消息队列:消息积压如何处理?
Web Authentication API兼容版本信息
判断文件是否为DICOM文件
AI人脸编辑让Lena微笑
ForkJoin最全详解(从原理设计到使用图解)
Distributed global ID generation scheme
关于服装ERP,你知道多少?
Leetcode 1189 maximum number of "balloons" [map] the leetcode road of heroding
5阶多项式轨迹
I didn't know it until I graduated -- the principle of HowNet duplication check and examples of weight reduction
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
R语言【逻辑控制】【数学运算】
5. 数据访问 - EntityFramework集成
Mybaits multi table query (joint query, nested query)
数据中心为什么需要一套基础设施可视化管理系统
Mybaits之多表查询(联合查询、嵌套查询)