From 2957f2337bd9da4c1ca421e83adb019bc545cf99 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期一, 15 八月 2022 09:19:48 +0800
Subject: [PATCH] #

---
 pages/basics/test.vue |   43 +++++++++++++++++++++++++++++++++++--------
 1 files changed, 35 insertions(+), 8 deletions(-)

diff --git a/pages/basics/test.vue b/pages/basics/test.vue
index 55dfc24..32b3f12 100644
--- a/pages/basics/test.vue
+++ b/pages/basics/test.vue
@@ -20,7 +20,7 @@
 				<view class="square-content">
 					<view class="content-input">
 						<input readonly="value" v-model="locNo" type="text" placeholder="鎵爜 / 杈撳叆" 
-						:focus="locNoFocus" @input="nextInput('locNo')">
+						:focus="locNoFocus" @input="nextInput('userIdFocus')">
 						<uni-icons type="closeempty" size="20" color="#dadada" @click="remove('locNo')"></uni-icons>
 					</view>
 				</view>
@@ -33,7 +33,7 @@
 				<view class="square-content">
 					<view class="content-input">
 						<input v-model="userId" type="text" placeholder="鎵爜 / 杈撳叆"
-						:focus="userIdFocus">
+						:focus="userIdFocus" @input="nextInput('barcodeFocus')">
 						<uni-icons type="closeempty" size="20" color="#dadada" @click="remove('userId')"></uni-icons>
 					</view>
 				</view>
@@ -111,19 +111,46 @@
 			getUrl() {
 				this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
 			},
+			focuss(e) {
+				this[e] = false;
+				console.log(this[e])
+				setTimeout(()=>{
+					this[e] = true;
+					console.log(this[e])
+				}, 100);
+			},
 			locNoFocuss() {
 				let that = this;
 				that.locNoFocus = false;
 				setTimeout(()=>{
-					that.remove('locNo')
 					that.locNoFocus = true;
 				}, 100);
-				
 			},
-			nextInput(e) {
-				switch (e) {
-					
-				}
+			userIdFocuss() {
+				let that = this;
+				that.userIdFocus = false;
+				setTimeout(()=>{
+					that.userIdFocus = true;
+				}, 100);
+			},
+			barcodeFocuss() {
+				let that = this;
+				that.barcodeFocus = false;
+				setTimeout(()=>{
+					that.barcodeFocus = true;
+				}, 100);
+			},
+			nextInput(type) {
+				console.log(type)
+				this.focuss(type)
+				// switch (obj) {
+				// 	case 'locNo':
+				// 		this.userIdFocuss();
+				// 		break;
+				// 	case 'userId':
+				// 		this.barcodeFocuss();
+				// 		break;
+				// }
 			},
 			// 娓呯┖input
 			remove(e) {

--
Gitblit v1.9.1