微信小程序开发3-用户登录.注册模块

本文探讨微信小程序中用户登录和注册的功能实现,包括登录页的WXML和JS代码展示,强调前后台校验的重要性,并分享了作者作为后台开发者在处理前台问题时的经验。
摘要由CSDN通过智能技术生成

上次我们说了关于跳转页面与显示数据的一些事

这次我们来聊一聊用户登录与注册的一些事

闲话少说先上代码

登录页:

xxx.wxml

< view class = "login">
     < image class = "avatar" style = "" mode = "" src = "../../images/3.png" binderror = "" bindload = ""></ image >
     < view class = "doc-title zan-hairline--bottom"></ view >
     < view class = "username">
       < text > 用户名 </ text >
       < input placeholder = "用户名" type = "text" bindinput = "usernameinput" / >       
     </ view >
     < view class = "password">
       < text > 密码 </ text >
       < input placeholder = "密码" type = "password" bindinput = "passwordinput" / >
      
     </ view >

    
     < view class = "signin">
       < button type = "submit" catchtap = "signin"> 登录 </ button >
       < button type = "submit" catchtap = "register"> 注册 </ button >
     </ view
评论 19
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值