<view class="register-container"><view class="register-header"><text class="register-title">用户注册</text><text class="register-subtitle">请填写以下信息完成注册</text></view><view class="form-item"><input class="input" placeholder="请输入用户名" placeholder-class="placeholder" data-event-opts="{{[['input',[['__set_model',['$0','username','$event',[]],['registerForm']]]]]}}" value="{{registerForm.username}}" bindinput="__e"/></view><view class="form-item"><input class="input" placeholder="请输入手机号" placeholder-class="placeholder" type="number" maxlength="11" data-event-opts="{{[['input',[['__set_model',['$0','phoneNumber','$event',[]],['registerForm']]]]]}}" value="{{registerForm.phoneNumber}}" bindinput="__e"/></view><view class="form-item"><input class="input" password="{{true}}" placeholder="请输入密码" placeholder-class="placeholder" data-event-opts="{{[['input',[['__set_model',['$0','password','$event',[]],['registerForm']]]]]}}" value="{{registerForm.password}}" bindinput="__e"/></view><view class="form-item"><input class="input" password="{{true}}" placeholder="请确认密码" placeholder-class="placeholder" data-event-opts="{{[['input',[['__set_model',['','confirmPassword','$event',[]]]]]]}}" value="{{confirmPassword}}" bindinput="__e"/></view><view class="form-item code-item"><input class="input code-input" placeholder="请输入验证码" placeholder-class="placeholder" data-event-opts="{{[['input',[['__set_model',['$0','code','$event',[]],['registerForm']]]]]}}" value="{{registerForm.code}}" bindinput="__e"/><image class="code-image" src="{{codeUrl}}" mode="aspectFit" data-event-opts="{{[['tap',[['getCode',['$event']]]]]}}" bindtap="__e"></image></view><button class="register-btn" loading="{{loading}}" disabled="{{loading}}" data-event-opts="{{[['tap',[['handleRegister',['$event']]]]]}}" bindtap="__e">{{''+(loading?'注册中...':'立即注册')+''}}</button><view data-event-opts="{{[['tap',[['goToLogin',['$event']]]]]}}" class="login-link" bindtap="__e"><text>已有账号？去登录</text></view></view>