43 lines
1.6 KiB
XML
43 lines
1.6 KiB
XML
<view class="inputItem">
|
|
<oak-icon name="mobilephone" size="28" color="#808080" />
|
|
<l-input
|
|
hide-label="{{true}}"
|
|
placeholder="{{t('placeholder.Mobile')}}"
|
|
clear="{{true}}"
|
|
showRow="{{false}}"
|
|
l-class="my-input"
|
|
style="flex:1;"
|
|
data-attr="mobile"
|
|
maxlength="11"
|
|
value="{{mobile}}"
|
|
bind:lininput="inputChangeMp"
|
|
bind:linclear="inputChangeMp"
|
|
/>
|
|
</view>
|
|
<view class="inputItem">
|
|
<l-input
|
|
hide-label="{{true}}"
|
|
placeholder="{{t('placeholder.Captcha')}}"
|
|
clear="{{true}}"
|
|
showRow="{{false}}"
|
|
l-class="my-input"
|
|
width="380"
|
|
data-attr="captcha"
|
|
maxlength="4"
|
|
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">一键登录</view>
|
|
<view wx:else></view>
|
|
<view wx:if="{{allowPassword}}" style="color:#835D01" bindtap="changeLoginMp" data-value="password">密码登录</view>
|
|
</view> |