修复注册登录输入框限制等bug

This commit is contained in:
zhouyanli
2026-08-03 17:39:27 +08:00
parent 015ed25400
commit 5c8671a91e
6 changed files with 39 additions and 33 deletions

View File

@@ -40,9 +40,9 @@
<view class="input-icon">
<image src="https://wuyeadmin.bugtc.com/images/login/phone.png" mode="" style="height: 100%;width: 100%;"></image>
</view>
<uni-easyinput class="input-content" type="text" v-model="account"
placeholder="请输入帐号" :inputBorder="false" maxlength="20" :placeholderStyle="placeholderStyle">
</uni-easyinput>
<input class="native-input" type="text" v-model="account"
placeholder="请输入帐号" maxlength="20" :placeholderStyle="placeholderStyle"
auto-capitalize="off" auto-correct="off" />
</view>
<!-- 密码输入框 -->
@@ -50,9 +50,9 @@
<view class="input-icon">
<image src="https://wuyeadmin.bugtc.com/images/login/password.png" mode="" style="height: 100%;width: 100%;"></image>
</view>
<uni-easyinput class="input-content" type="password" v-model="password"
placeholder="请输入密码" :inputBorder="false" maxlength="16" :placeholderStyle="placeholderStyle">
</uni-easyinput>
<input class="native-input" type="password" v-model="password"
placeholder="请输入密码" maxlength="16" :placeholderStyle="placeholderStyle"
auto-capitalize="off" auto-correct="off" />
</view>
</template>
@@ -341,6 +341,15 @@ onUnmounted(() => {
height: 100%;
}
/* 原生输入框(账号/密码区分大小写) */
.native-input {
flex: 1;
font-size: 32rpx;
color: #333;
height: 88rpx;
line-height: 88rpx;
}
/* 深度覆盖 uni-easyinput 内部默认样式 */
.input-content :deep(.uni-easyinput__content) {
height: 100% !important;