<input class="codeInputClass" v-model="state.code" type="number" placeholder="请输入验证码" @input="codeInput" placeholder-class="placeholderClass" maxlength="6" />
<style> ::v-deep .uni-input-input[type='number'] { -webkit-box-shadow: 0 0 0 100rpx transparent inset !important; -webkit-text-fill-color: #fff; -webkit-background-clip: text; } .codeInputClass { overflow: visible; position: absolute; z-index: 9; margin-left: 42rpx; height: 60rpx; line-height: 60rpx; width: 85%; color: #fff; font-size: 32rpx; font-weight: 700; } </style>