register.wxml 2.1 KB
<view class="login"><view class="icon"><image class="bgimg" src="../../static/ic_logo.png" mode></image><view class="bar flexwrap"><view class="name">用户名:</view><view class="lastname"><input maxlength="16" type="text" value="{{username}}" placeholder="请输入用户名" data-event-opts="{{[['input',[['__set_model',['','username','$event',[]]]]]]}}" bindinput="__e"/></view></view><view class="bar flexwrap"><view class="name">密码:</view><view class="lastname"><input maxlength="16" type="text" value="{{password}}" placeholder="请输入密码" data-event-opts="{{[['input',[['__set_model',['','password','$event',[]]]]]]}}" bindinput="__e"/></view></view><view class="bar flexwrap"><view class="name">手机号:</view><view class="lastname"><input maxlength="11" type="number" value="{{mobile}}" placeholder="请输入手机号" data-event-opts="{{[['input',[['__set_model',['','mobile','$event',[]]]]]]}}" bindinput="__e"/></view></view><view class="bar flexwrap"><view class="name">验证码:</view><view class="lastname"><input maxlength="6" type="text" value="{{code}}" placeholder="请输入验证码" data-event-opts="{{[['input',[['__set_model',['','code','$event',[]]]]]]}}" bindinput="__e"/><view data-event-opts="{{[['tap',[['getCode',['$event']]]]]}}" class="code" bindtap="__e">{{''+(num==0?'获取验证码':num+'秒重新发送')+''}}</view></view></view><view data-event-opts="{{[['tap',[['toRegister',['$event']]]]]}}" class="loginbtn" bindtap="__e">注册</view><view data-event-opts="{{[['tap',[['goLogin',['$event']]]]]}}" class="passway" bindtap="__e"><text>已有账号,直接登录</text></view><view class="user"><block wx:if="{{isSelect}}"><image src="/static/icon25.png" mode data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" bindtap="__e"></image></block><block wx:else><image src="/static/icon24.png" mode data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" bindtap="__e"></image></block>我已阅读并同意<text data-event-opts="{{[['tap',[['toAgree',[1]]]]]}}" style="margin-left:10rpx;" bindtap="__e">用户协议、</text><text data-event-opts="{{[['tap',[['toAgree',[2]]]]]}}" bindtap="__e">隐私政策</text></view></view></view>