更新 login.wxml

master
wangsiyuan 2024-01-06 15:27:59 +08:00
parent d546c90dbc
commit 0e2fe478b1
1 changed files with 12 additions and 8 deletions

View File

@ -7,14 +7,16 @@
<!-- 手机号输入区 -->
<view class="phone">
<image src="/assets/images/icon/Phone.svg" class="phone-icon"></image>
<input bindinput ="handlePhoneInput" placeholder="请输入手机号" />
<input bindinput="handlePhoneInput" placeholder="请输入手机号" />
</view>
<!-- 密码输入区 -->
<view class="password">
<image src="/assets/images/icon/password.svg" class="password-icon"></image>
<input type="password" bindinput="handlePasswordInput" placeholder="请输入密码" />
<image src="/assets/images/icon/eye.svg" class="eye-icon"></image>
<!-- 根据passwordVisible动态设置input类型 -->
<input type="{{passwordVisible ? 'text' : 'password'}}" bindinput="handlePasswordInput" placeholder="请输入密码" />
<!-- 绑定点击事件到togglePasswordVisibility函数 -->
<image src="/assets/images/icon/eye.svg" class="eye-icon" bindtap="togglePasswordVisibility"></image>
</view>
<!-- 忘记密码链接 -->
@ -24,14 +26,16 @@
<!-- 登录按钮 -->
<view class="login-btn">
<button class="btn-dl" bind:tap="handleLogin" type="primary">登录</button>
<!-- 绑定点击事件到handleLogin函数 -->
<button class="btn-dl" bindtap="handleLogin" type="primary">登录</button>
</view>
<!-- 协议区 -->
<view class="agreement-area">
<checkbox class="agreement"></checkbox>
<view class="agreement-text">同意小程序的《使用协议》</view>
</view>
<checkbox-group bindchange="checkAccepted" class="agreement-area">
<checkbox class="agreement-box" checked="{{checked}}"></checkbox>
<view class="agreement-text">小程序《用户使用协议》</view>
</checkbox-group>
</view>
<!-- 登录提示框 -->