上次我们说了关于跳转页面与显示数据的一些事
这次我们来聊一聊用户登录与注册的一些事
闲话少说先上代码
登录页:
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