diff --git a/components/verify-code/verify-code.vue b/components/verify-code/verify-code.vue index be01875..d47bd23 100644 --- a/components/verify-code/verify-code.vue +++ b/components/verify-code/verify-code.vue @@ -280,11 +280,21 @@ function codeFormat(val: string | undefined, isPassword: boolean): string { } } -/* #ifdef APP-PLUS */ -/* APP 中让自绘验证码位于透明输入框上方;点击仍由 input-ground 触发聚焦。 */ -.xt__input { - z-index: 1; -} +/* #ifdef APP-PLUS */ +/* + * App 的原生 input 如果覆盖在验证码格上,部分 Android 设备会出现 + * 原生光标/输入绘制层与自绘数字冲突。沿用 u-code-input 的隐藏输入方式, + * 将输入内容和原生光标移出可视区域,验证码格只负责展示响应式状态。 + */ +.xt__verify-code { + overflow: hidden; +} + +.xt__input { + left: -750rpx; + width: 1500rpx; + z-index: 1; +} .xt__input-ground { z-index: 2; diff --git a/pages/passport/login.vue b/pages/passport/login.vue index e22ca5f..d4842f6 100644 --- a/pages/passport/login.vue +++ b/pages/passport/login.vue @@ -41,13 +41,11 @@ cursorColor="#D8D8D8" /> -