|
|
|
@ -7,20 +7,31 @@ |
|
|
|
|
<view class="separate"></view> |
|
|
|
|
|
|
|
|
|
<view wx:if="{{needBindMobile}}"> |
|
|
|
|
<view class="login-title">关联手机号</view> |
|
|
|
|
|
|
|
|
|
<form bindsubmit="bindSubmitMobile"> |
|
|
|
|
<form bindsubmit="bindGetPassCode"> |
|
|
|
|
<view class="login"> |
|
|
|
|
<view class="first-line"><input type="digit" name="mobile" placeholder="输入手机号"></input></view> |
|
|
|
|
<view class="second-line"> |
|
|
|
|
<input type="digit" name="code" placeholder="四位验证码"></input> |
|
|
|
|
<button formType="submit" disabled="{{disableGetMobileCode}}">{{getCodeButtonText}}</button> |
|
|
|
|
<view wx:if="{{useCodeToLogIn}}"> |
|
|
|
|
<view class="login-title">关联手机号</view> |
|
|
|
|
<form bindsubmit="bindSubmitMobile"> |
|
|
|
|
<form bindsubmit="bindGetPassCode"> |
|
|
|
|
<view class="login"> |
|
|
|
|
<view class="first-line"><input type="digit" name="mobile" placeholder="输入手机号"></input></view> |
|
|
|
|
<view class="second-line"> |
|
|
|
|
<input type="digit" name="code" placeholder="四位验证码"></input> |
|
|
|
|
<button formType="submit" disabled="{{disableGetMobileCode}}">{{getCodeButtonText}}</button> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</form> |
|
|
|
|
<view class="third-line"><button formType="submit" disabled="{{disableSubmitMobileCode}}">提交</button></view> |
|
|
|
|
</form> |
|
|
|
|
<view class="login-type" bindtap="changeLoginType"><text>使用密码登录</text></view> |
|
|
|
|
</view> |
|
|
|
|
<view class="login" wx:else> |
|
|
|
|
<view class="login-title">使用密码登录</view> |
|
|
|
|
<form bindsubmit="bindLoginPassword"> |
|
|
|
|
<view class="first-line"><input type="digit" name="mobile" placeholder="输入手机号"></input></view> |
|
|
|
|
<view class="password-second-line"><input type="password" name="password" placeholder="密码"></input></view> |
|
|
|
|
<view class="third-line"><button formType="submit">登录</button></view> |
|
|
|
|
</form> |
|
|
|
|
<view class="third-line"><button formType="submit" disabled="{{disableSubmitMobileCode}}">提交</button></view> |
|
|
|
|
</form> |
|
|
|
|
<view class="login-type" bindtap="changeLoginType"><text>使用手机验证码登录</text></view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view wx:else> |
|
|
|
|
<view class="zichan"> |
|
|
|
|