From 7fc7bffeadb3cc75f3fa600ca56a6872e569c16c Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期二, 23 八月 2022 08:18:47 +0800 Subject: [PATCH] # --- pages/basics/pakin.vue | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pages/basics/pakin.vue b/pages/basics/pakin.vue index 7efbb30..06603a2 100644 --- a/pages/basics/pakin.vue +++ b/pages/basics/pakin.vue @@ -9,7 +9,7 @@ <view class="square-content"> <view class="content-input"> <input v-model="barcode" type="text" placeholder="鎵爜 / 杈撳叆" - :focus="barcodeFocus" @input="barcodeInput()" placeholder-style="line-height: 85rpx;"> + :focus="barcodeFocus" @confirm="barcodeInput()" placeholder-style="line-height: 85rpx;"> <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons> </view> </view> @@ -163,10 +163,8 @@ this.barcodeFocuss() return; } - if (len == 8) { - this.focuss() - } - },100) + this.focuss() + },200) }, // 鎵樼洏鐮佹湁璇噸缃� barcodeFocuss() { -- Gitblit v1.9.1