<!--miniprogram/pages/login/login.wxml--> <view class="form"> <view class="row-group"> <text>账号</text> <input placeholder="请输入手机号" placeholder-class='txt' maxlength='11' value="{{phone}}" bindinput="bindPhoneInput" /> </view> <view class="row-group"> <text>密码</text> <input placeholder="请输入密码" placeholder-class='txt' maxlength='4' value="{{code}}" bindinput="bindCodeInput" /> <view class="code" bindtap="onClickCheckCode">获取验证码</view> </view> <view> <button class="submit" open-type="getUserInfo" bindgetuserinfo="onClickSubmit">登录 | 注册</button> </view> </view>