46 lines
1.8 KiB
XML
46 lines
1.8 KiB
XML
<view class="inputItem">
|
|
<oak-icon name="mobilephone" size="28" color="#808080" />
|
|
<l-input
|
|
hide-label="{{true}}"
|
|
placeholder="{{t('placeholder.Email')}}"
|
|
clear="{{true}}"
|
|
showRow="{{false}}"
|
|
l-class="my-input"
|
|
style="flex:1;"
|
|
data-attr="email"
|
|
value="{{email}}"
|
|
bind:lininput="inputChangeMp"
|
|
bind:linclear="inputChangeMp"
|
|
/>
|
|
</view>
|
|
<view class="inputItem">
|
|
<l-input
|
|
hide-label="{{true}}"
|
|
placeholder="输入{{digit}}位验证码"
|
|
clear="{{true}}"
|
|
showRow="{{false}}"
|
|
l-class="my-input"
|
|
width="380"
|
|
data-attr="captcha"
|
|
maxlength="{{digit}}"
|
|
value="{{captcha}}"
|
|
bind:lininput="inputChangeMp"
|
|
bind:linclear="inputChangeMp"
|
|
>
|
|
<l-button slot="right" plain="{{true}}" bg-color="#fff" height="56" disabled="{{!!disabled || !validMobile || counter > 0}}" l-class="captcha" catch:lintap="sendCaptcha">
|
|
{{counter > 0 ? counter + t('resendAfter'): t('Send')}}
|
|
</l-button>
|
|
</input>
|
|
</view>
|
|
<l-button size="long" disabled="{{!!disabled || !allowSubmit || loading}}" catch:lintap="loginByCaptcha" height="{{80}}" style="width:100%">
|
|
{{t('Login')}}
|
|
</l-button>
|
|
<view class="methods">
|
|
<view wx:if="{{allowWechatMp}}" style="color:#8F976A" bindtap="changeLoginMp" data-value="wechatMp">{{t('loginMode.wechatMp')}}</view>
|
|
<view wx:else></view>
|
|
<view style="color:#835D01; display:flex; align-items:center; justify-content:flex-end; gap:8rpx">
|
|
<view wx:if="{{allowSms}}" bindtap="changeLoginMp" data-value="sms">{{t('loginMode.sms')}}</view>
|
|
<view wx:if="{{allowSms && allowPassword}}">/</view>
|
|
<view wx:if="{{allowPassword}}" bindtap="changeLoginMp" data-value="password">{{t('loginMode.password')}}</view>
|
|
</view>
|
|
</view> |