From b311ae13f99810eda46a28c2964b5068e8c7e7d9 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期二, 16 八月 2022 16:58:52 +0800
Subject: [PATCH] #

---
 pages/basics/pakin.vue |   23 +++++++++++++----------
 pages/index/index.vue  |   24 ++++++++++++------------
 2 files changed, 25 insertions(+), 22 deletions(-)

diff --git a/pages/basics/pakin.vue b/pages/basics/pakin.vue
index e382528..9a70f1f 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="鎵爜 / 杈撳叆" maxlength="10" 
-						:focus="barcodeFocus" 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>
@@ -158,15 +158,18 @@
 			},
 			// barcode input 浜嬩欢
 			barcodeInput() {
-				var len = this.barcode.length
-				if (len != 8) {
-					uni.showToast({title: '鎵樼洏鐮佹湁璇閲嶈瘯', icon: "none", position: 'top'});
-					this.barcodeFocuss()
-					return;
-				}
-				if (len == 8) {
-					this.focuss()
-				}
+				// 涓嶈缃畾鏃跺櫒 浼氬嚭鐜版壂鍏ョ殑瀛楃涓蹭笉鍏�
+				setTimeout(()=>{
+					var len = this.barcode.length
+					if (len != 8) {
+						uni.showToast({title: '鎵樼洏鐮佹湁璇閲嶈瘯', icon: "none", position: 'top'});
+						this.barcodeFocuss()
+						return;
+					}
+					if (len == 8) {
+						this.focuss()
+					}
+				},100)
 			},
 			// 鎵樼洏鐮佹湁璇噸缃�
 			barcodeFocuss() {
diff --git a/pages/index/index.vue b/pages/index/index.vue
index eaf40e2..9c25e4f 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -24,12 +24,12 @@
 			return {
 				elements:[
 					
-					{
-						title: '涓嬫灦绠$悊',
-						name: 'offLines',
-						color: 'blue',
-						cuIcon: 'copy'
-					},
+					// {
+					// 	title: '涓嬫灦绠$悊',
+					// 	name: 'offLines',
+					// 	color: 'blue',
+					// 	cuIcon: 'copy'
+					// },
 					{
 						title: '缁勬墭鍏ュ簱',
 						name: 'pakin',
@@ -48,12 +48,12 @@
 						color: 'blue',
 						cuIcon: 'searchlist'
 					},
-					{
-						title: '涓婃灦',
-						name: 'putOnSale',
-						color: 'blue',
-						cuIcon: 'video'
-					},
+					// {
+					// 	title: '涓婃灦',
+					// 	name: 'putOnSale',
+					// 	color: 'blue',
+					// 	cuIcon: 'video'
+					// },
 					{
 						title: '鍗曟嵁鍑哄簱',
 						name: 'orderOut',

--
Gitblit v1.9.1