From 0cdc24ed926ec628d932027fd4aa7af8d0e5ae86 Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: 星期二, 16 八月 2022 23:31:43 +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 9a70f1f..093b904 100644
--- a/pages/basics/pakin.vue
+++ b/pages/basics/pakin.vue
@@ -8,8 +8,8 @@
 				</view>
 				<view class="square-content">
 					<view class="content-input">
-						<input v-model="barcode" type="text" placeholder="鎵爜 / 杈撳叆" maxlength="10" 
-						:focus="barcodeFocus" @confirm="barcodeInput()" placeholder-style="line-height:  85rpx;">
+						<input v-model="barcode" type="text" placeholder="鎵爜 / 杈撳叆" 
+						:focus="barcodeFocus" @input="barcodeInput()" placeholder-style="line-height:  85rpx;">
 						<uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons>
 					</view>
 				</view>
@@ -158,6 +158,7 @@
 			},
 			// barcode input 浜嬩欢
 			barcodeInput() {
+				console.log(1)
 				// 涓嶈缃畾鏃跺櫒 浼氬嚭鐜版壂鍏ョ殑瀛楃涓蹭笉鍏�
 				setTimeout(()=>{
 					var len = this.barcode.length
@@ -173,14 +174,12 @@
 			},
 			// 鎵樼洏鐮佹湁璇噸缃�
 			barcodeFocuss() {
-				// #ifdef APP
 				let that = this;
 				that.barcodeFocus = false;
 				setTimeout(()=>{
 					that.barcode = '';
 					that.barcodeFocus = true;
 				}, 100);
-				// #endif
 			},
 			// 鍟嗗搧鍏夋爣娓呯┖閲嶇疆
 			focuss() {
@@ -312,7 +311,6 @@
 								    // 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
 								    matList: function(data) {
 										that.matList.push(data.data)
-										console.log(that.matList)
 									},
 								},
 								success: function(res) {

--
Gitblit v1.9.1