From f681b210692b079455a53afd5bd83b4401ef9320 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期五, 10 二月 2023 10:42:23 +0800
Subject: [PATCH] #

---
 pages/basics/test.vue |   48 ++++++++++++++++++++++++++++++++++++------------
 1 files changed, 36 insertions(+), 12 deletions(-)

diff --git a/pages/basics/test.vue b/pages/basics/test.vue
index 55dfc24..cf78e45 100644
--- a/pages/basics/test.vue
+++ b/pages/basics/test.vue
@@ -1,7 +1,7 @@
 <template>
 	<view >
 		<scroll-view scroll-y catch:touchmove="touchmove">
-			<view class="square-2">
+			<!-- <view class="square-2">
 				<view class="square-title">
 					<view class="title-sign"><view class="sign"></view></view>
 					<view class="title-text"><text>閫氶亾</text></view>
@@ -11,7 +11,7 @@
 						<uni-combox emptyTips="鏆傛棤鏁版嵁" :candidates="staNoList" v-model="staNo" placeholder="閫氶亾"></uni-combox>
 					</view>
 				</view>
-			</view>
+			</view> -->
 			<view class="square-2">
 				<view class="square-title">
 					<view class="title-sign"><view class="sign"></view></view>
@@ -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>
@@ -83,7 +83,7 @@
 				type: 'center',
 				msgType: 'success',
 				messageText: '杩欐槸涓�鏉℃垚鍔熸彁绀�',
-				staNoList:[1,2,3,4,5,6],
+				staNoList:[1,2,3,4,5,6,7,8],
 				staNo:'',
 				locNoFocus:true,
 				userIdFocus:false,
@@ -111,19 +111,43 @@
 			getUrl() {
 				this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
 			},
+			focuss(e) {
+				this[e] = false;
+				setTimeout(()=>{
+					this[e] = true;
+				}, 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) {
+				this.focuss(type)
+				// switch (obj) {
+				// 	case 'locNo':
+				// 		this.userIdFocuss();
+				// 		break;
+				// 	case 'userId':
+				// 		this.barcodeFocuss();
+				// 		break;
+				// }
 			},
 			// 娓呯┖input
 			remove(e) {
@@ -143,7 +167,7 @@
 				uni.request({
 					url: that.commonUrl + '/mobile/test/startUp/auth',
 					data: {
-						channel:that.staNo,
+						// channel:that.staNo,
 						locNo:that.locNo,
 						userId:that.userId,
 						barcode:that.barcode

--
Gitblit v1.9.1