50 lines
2.0 KiB
XML
50 lines
2.0 KiB
XML
<view class="inputItem">
|
|
<oak-icon name="mine" size="28" color="#808080" />
|
|
<l-input
|
|
hide-label="{{true}}"
|
|
placeholder="{{accountPlaceholder}}"
|
|
clear="{{true}}"
|
|
showRow="{{false}}"
|
|
l-class="my-input"
|
|
style="flex:1;"
|
|
data-attr="account"
|
|
value="{{account}}"
|
|
bind:lininput="inputChangeMp"
|
|
bind:linclear="inputChangeMp"
|
|
/>
|
|
</view>
|
|
<view class="inputItem">
|
|
<oak-icon name="lock" size="28" color="#808080" />
|
|
<l-input
|
|
hide-label="{{true}}"
|
|
placeholder="{{t('placeholder.Password')}}"
|
|
clear="{{true}}"
|
|
showRow="{{false}}"
|
|
l-class="my-input"
|
|
style="flex:1;"
|
|
type="password"
|
|
data-attr="password"
|
|
value="{{password}}"
|
|
bind:lininput="inputChangeMp"
|
|
bind:linclear="inputChangeMp"
|
|
/>
|
|
</view>
|
|
<view wx:if="{{allowRegister}}" class="registerBox">
|
|
<l-button catch:lintap="goRegisterMp" special="{{true}}">
|
|
<view>{{t('register')}}</view>
|
|
<l-icon name="right" size="24" style="transform:translateY(8rpx); margin-left:8rpx"/>
|
|
</l-button>
|
|
</view>
|
|
<l-button size="long" disabled="{{!!disabled || !allowSubmit || loading}}" catch:lintap="loginByAccount" 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 wx:if="{{allowSms}}" style="color:#835D01" bindtap="changeLoginMp" data-value="sms">短信登录</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 && allowEmail}}">/</view>
|
|
<view wx:if="{{allowEmail}}"bindtap="changeLoginMp" data-value="email">{{t('loginMode.email')}}</view>
|
|
</view>
|
|
</view> |