登录修改
This commit is contained in:
parent
0756537165
commit
4c7c620599
|
|
@ -1,15 +1,14 @@
|
|||
<view class="inputItem">
|
||||
<oak-icon name="mobilephone" size="28" color="#808080" />
|
||||
<oak-icon name="mine" size="28" color="#808080" />
|
||||
<l-input
|
||||
hide-label="{{true}}"
|
||||
placeholder="{{t('placeholder.Mobile')}}"
|
||||
placeholder="{{t('placeholder.Account')}}"
|
||||
clear="{{true}}"
|
||||
showRow="{{false}}"
|
||||
l-class="my-input"
|
||||
style="flex:1;"
|
||||
data-attr="mobile"
|
||||
maxlength="11"
|
||||
value="{{mobile}}"
|
||||
data-attr="account"
|
||||
value="{{account}}"
|
||||
bind:lininput="inputChangeMp"
|
||||
bind:linclear="inputChangeMp"
|
||||
/>
|
||||
|
|
@ -30,7 +29,7 @@
|
|||
bind:linclear="inputChangeMp"
|
||||
/>
|
||||
</view>
|
||||
<l-button size="long" disabled="{{!!disabled || !allowSubmit || loading}}" catch:lintap="loginByPassword" height="{{80}}" style="width:100%">
|
||||
<l-button size="long" disabled="{{!!disabled || !allowSubmit || loading}}" catch:lintap="loginByAccount" height="{{80}}" style="width:100%">
|
||||
{{t('Login')}}
|
||||
</l-button>
|
||||
<view class="methods">
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ export default function Render(
|
|||
{
|
||||
loading: boolean;
|
||||
disabled?: string;
|
||||
mobile: string;
|
||||
account: string;
|
||||
password: string;
|
||||
validMobile: boolean;
|
||||
validPassword: boolean;
|
||||
|
|
@ -43,7 +43,7 @@ export default function Render(
|
|||
>
|
||||
) {
|
||||
const { data, methods } = props;
|
||||
const { loading, disabled, mobile, password, validMobile, validPassword, allowSubmit, allowSms, allowEmail, } = data;
|
||||
const { loading, disabled, account, password, validMobile, validPassword, allowSubmit, allowSms, allowEmail, } = data;
|
||||
const { loginByAccount, t, inputChange } = methods;
|
||||
|
||||
return (
|
||||
|
|
@ -51,8 +51,7 @@ export default function Render(
|
|||
<Form.Item name="mobile">
|
||||
<Input
|
||||
allowClear
|
||||
value={mobile}
|
||||
type="tel"
|
||||
value={account}
|
||||
size="large"
|
||||
// maxLength={11}
|
||||
prefix={<UserOutlined />}
|
||||
|
|
|
|||
Loading…
Reference in New Issue