81 lines
3.3 KiB
Plaintext
81 lines
3.3 KiB
Plaintext
<t-navbar left-arrow />
|
|
<view class="page login">
|
|
<view class="login__title"> 欢迎登录 TDsign </view>
|
|
<view class="login__content">
|
|
<view class="login__input">
|
|
<view class="login__password" wx:if="{{isPasswordLogin}}">
|
|
<t-input placeholder="请输入手机号" value="{{passwordInfo.account}}" bindchange="onAccountChange">
|
|
<view slot="label" class="input-label">
|
|
<t-icon name="mobile" size="40rpx" class="input-iconl"></t-icon>
|
|
</view>
|
|
</t-input>
|
|
<t-input placeholder="请输入密码" type="password" clearable value="{{passwordInfo.password}}" bindchange="onPasswordChange" >
|
|
<view slot="label" class="input-label">
|
|
<t-icon name="git-repository-private" size="40rpx" class="input-iconl"></t-icon>
|
|
</view>
|
|
</t-input>
|
|
</view>
|
|
<view wx:else>
|
|
<t-input value="{{phoneNumber}}" placeholder="请输入手机号" type="number" bindchange="onPhoneInput">
|
|
<view slot="label" class="input-label">
|
|
<t-icon name="mobile" size="40rpx" class="input-iconl"></t-icon>
|
|
</view>
|
|
|
|
</t-input>
|
|
<t-input value="{{code}}" placeholder="请输入验证码" type="number" bindchange="onCodeInput">
|
|
|
|
<view slot="label" class="input-label">
|
|
<t-icon name="mail" size="40rpx" class="input-iconl"></t-icon>
|
|
</view>
|
|
<view slot="suffix" style="display: flex; align-items: center">
|
|
<view class="suffix--line"></view>
|
|
<view class="verify" aria-role="button" bindtap="getCode"> 发送验证码 </view>
|
|
</view>
|
|
</t-input>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="login__tips">未注册的手机号验证通过后将自动注册</view>
|
|
|
|
<t-radio-group allow-uncheck borderless value="{{radioValue}}" bind:change="onCheckChange">
|
|
<t-radio label="同意《用户服务协议条款》" value="agree" t-class="radio-class" t-class-icon="radio-class-icon" t-class-label="radio-class-label" />
|
|
</t-radio-group>
|
|
|
|
<view class="login__button">
|
|
<t-button theme="primary" size="large" block disabled="{{!isSubmit}}" bindtap="login">
|
|
{{ isPasswordLogin ? '登录' : '验证并登录' }}
|
|
</t-button>
|
|
</view>
|
|
|
|
<view class="login__password--forget" wx:if="{{isPasswordLogin}}">
|
|
<text>忘记密码?</text>
|
|
<text bindtap="uploadPass" >找回密码</text>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="login__others">
|
|
<text class="login__others-label">其他方式</text>
|
|
<view class="login__others-buttons">
|
|
<t-button class="button" variant="outline" theme="default" size="medium" shape="round" bindtap="changeLogin">
|
|
{{isPasswordLogin ? '验证码登录' : '密码登录' }}
|
|
</t-button>
|
|
<!-- <t-button
|
|
class="button"
|
|
variant="outline"
|
|
theme="default"
|
|
size="medium"
|
|
icon="logo-wechat-stroke"
|
|
shape="circle"
|
|
></t-button>
|
|
<t-button class="button" variant="outline" theme="default" size="medium" icon="logo-qq" shape="circle"></t-button>
|
|
<t-button
|
|
class="button"
|
|
variant="outline"
|
|
theme="default"
|
|
size="medium"
|
|
icon="logo-wecom"
|
|
shape="circle"
|
|
></t-button> -->
|
|
</view>
|
|
</view>
|
|
</view> |