patient-mini/pages/login/login.wxml
@zuopngfei e49b8b8de2 dads
2025-06-10 18:22:58 +08:00

65 lines
3.1 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>
<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>
<t-button class="phoneLogin" theme="primary" size="large" block open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">
手机号快速登录
</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>
</view>
</view> -->
<view class="login-tips">
<view>未注册过的手机号,我们将自动帮你注册账号</view>
<view>登录或注册完成即代表你同意<text bindtap="uploadPass">《用户服务协议》</text></view>
</view>
</view>