73 lines
3.0 KiB
Plaintext
73 lines
3.0 KiB
Plaintext
<image class="logo" src="{{logoUrl}}" mode="widthFix" />
|
|
<view wx:if="{{loginType !== 'manual'}}" class="buttons">
|
|
<button class="wx" hidden="{{isChecked}}" bindtap="handleUncheck">手机号快捷登录</button>
|
|
<button class="wx" hidden="{{!isChecked}}" open-type="getPhoneNumber" bindgetphonenumber="bindgetrealtimephonenumber">手机号快捷登录</button>
|
|
<button bindtap="handleManualLogin">手机验证码登录</button>
|
|
</view>
|
|
<form wx:else class="form">
|
|
<input
|
|
bindinput="handlePhoneInput"
|
|
bindblur="blurPhone"
|
|
value="{{phone}}"
|
|
type="number"
|
|
confirm-type="next"
|
|
maxlength="11"
|
|
cursor-spacing="100"
|
|
placeholder="请填写手机号码"
|
|
placeholder-style="font-size:32rpx;color: #d8d8d8;"
|
|
class="{{ phoneError ? 'input-error lz-input' : 'lz-input' }}" />
|
|
<view class="error" wx:if="{{phoneError}}">
|
|
<image src="{{errorIconUrl}}" mode="" />
|
|
<text class="error-text">手机号格式错误</text>
|
|
</view>
|
|
<view class="lz-input">
|
|
<input
|
|
bindinput="handleBindCode"
|
|
type="text"
|
|
confirm-type="next"
|
|
maxlength="4"
|
|
cursor-spacing="100"
|
|
placeholder="请填写图形验证码"
|
|
placeholder-style="font-size:32rpx;color: #d8d8d8;"
|
|
style="width: 280rpx;" />
|
|
<image wx:if="{{codeUrl}}" src="{{codeUrl}}" bindtap="handleGetCode" />
|
|
<text wx:else bindtap="handleGetCode" style="color: #ee5b0d;font-size:30rpx ;margin-left: 30rpx;">点击获取图形码</text>
|
|
</view>
|
|
<view class="error" wx:if="{{codeError}}">
|
|
<image src="{{errorIconUrl}}" mode="" />
|
|
<text class="error-text">图形验证码错误</text>
|
|
</view>
|
|
<view class="lz-input">
|
|
<input
|
|
bindinput="handleBindSms"
|
|
type="number"
|
|
confirm-type="next"
|
|
maxlength="6"
|
|
cursor-spacing="100"
|
|
placeholder="请填写验证码"
|
|
placeholder-style="font-size:32rpx;color: #d8d8d8;"
|
|
style="width: 280rpx;" />
|
|
<view style="width: 2rpx;height: 48rpx;background: #e7e7e7;"></view>
|
|
<view wx:if="{{time===60}}" bindtap="handleSendSms" style="color: #ee5b0d;font-size:30rpx ;margin-left: 30rpx;">
|
|
{{firstSend?'获取验证码':'重新获取验证码'}}
|
|
</view>
|
|
<view wx:else style="color: #ee5b0d;font-size:30rpx ;margin-left: 30rpx;">
|
|
{{time}}s后重新发送
|
|
</view>
|
|
</view>
|
|
<view class="error" wx:if="{{smsError}}">
|
|
<image src="{{errorIconUrl}}" mode="" />
|
|
<text class="error-text">手机验证码错误</text>
|
|
</view>
|
|
<button bindtap="handleManualSubmit" class="{{canLogin?'lz-input lz-button bg-can-login':'lz-input lz-button bg-cant-login'}}">
|
|
登录
|
|
</button>
|
|
</form>
|
|
<view class="protocol">
|
|
<view class='radio' bindtap="handleCheck">
|
|
<view hidden="{{isChecked}}"></view>
|
|
<image hidden="{{!isChecked}}" src="{{checkedUrl}}" mode="" />
|
|
</view>
|
|
我已阅读并同意<text bindtap="handelJumpToProtocol" data-field="25">《注册协议》</text>&<text bindtap="handelJumpToProtocol" data-field="26">《隐私协议》</text>
|
|
</view>
|
|
<view class="tips">本产品不向学生提供贷款服务</view> |