更新 login.wxml
parent
d546c90dbc
commit
0e2fe478b1
|
|
@ -13,8 +13,10 @@
|
||||||
<!-- 密码输入区 -->
|
<!-- 密码输入区 -->
|
||||||
<view class="password">
|
<view class="password">
|
||||||
<image src="/assets/images/icon/password.svg" class="password-icon"></image>
|
<image src="/assets/images/icon/password.svg" class="password-icon"></image>
|
||||||
<input type="password" bindinput="handlePasswordInput" placeholder="请输入密码" />
|
<!-- 根据passwordVisible动态设置input类型 -->
|
||||||
<image src="/assets/images/icon/eye.svg" class="eye-icon"></image>
|
<input type="{{passwordVisible ? 'text' : 'password'}}" bindinput="handlePasswordInput" placeholder="请输入密码" />
|
||||||
|
<!-- 绑定点击事件到togglePasswordVisibility函数 -->
|
||||||
|
<image src="/assets/images/icon/eye.svg" class="eye-icon" bindtap="togglePasswordVisibility"></image>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 忘记密码链接 -->
|
<!-- 忘记密码链接 -->
|
||||||
|
|
@ -24,14 +26,16 @@
|
||||||
|
|
||||||
<!-- 登录按钮 -->
|
<!-- 登录按钮 -->
|
||||||
<view class="login-btn">
|
<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>
|
||||||
|
|
||||||
<!-- 协议区 -->
|
<!-- 协议区 -->
|
||||||
<view class="agreement-area">
|
<checkbox-group bindchange="checkAccepted" class="agreement-area">
|
||||||
<checkbox class="agreement"></checkbox>
|
<checkbox class="agreement-box" checked="{{checked}}"></checkbox>
|
||||||
<view class="agreement-text">同意小程序的《使用协议》</view>
|
<view class="agreement-text">小程序《用户使用协议》</view>
|
||||||
</view>
|
</checkbox-group>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 登录提示框 -->
|
<!-- 登录提示框 -->
|
||||||
|
|
|
||||||
Reference in New Issue