Browse Source

处理扫码光标

caojunjie 4 years ago
parent
commit
eb60a041ef
3 changed files with 4 additions and 4 deletions
  1. 1 1
      manifest.json
  2. 2 2
      pages/home/scancode/index.vue
  3. 1 1
      pages/home/scancode/scancodeout.vue

+ 1 - 1
manifest.json

@@ -2,7 +2,7 @@
     "name" : "耀灵全钢店管家",
     "appid" : "__UNI__0C3473D",
     "description" : "测试",
-    "versionName" : "0.0.0.0.0.5",
+    "versionName" : "0.0.0.0.0.6",
     "versionCode" : "100",
     "transformPx" : false,
     "app-plus" : {

+ 2 - 2
pages/home/scancode/index.vue

@@ -11,7 +11,7 @@
 					<u-icon name="edit-pen"></u-icon>手动录入
 				</view>
 				<view class="lnput" v-if="show==false">
-					<input type="text" v-model="number_a" :placeholder="content" clearable="true" />
+					<input type="text" v-model="number_a" :placeholder="content" clearable="true" focus="true"/>
 					<u-button type="primary" size="medium" @click="manualentry">确认录入</u-button>
 				</view>
 				<view class="" v-else>
@@ -107,7 +107,7 @@
 			}
 			return true;
 		},
-		onLaunch(){
+		onLaunch() {
 			uni.$on('update', data => {
 				this.lisi = data.lisi
 				console.log(this.lisi)

+ 1 - 1
pages/home/scancode/scancodeout.vue

@@ -11,7 +11,7 @@
 					<u-icon name="edit-pen"></u-icon>手动录入
 				</view>
 				<view class="lnput" v-if="show==false">
-					<input type="text" v-model="number_a" :placeholder="content" clearable="true" />
+					<input type="text" v-model="number_a" :placeholder="content" clearable="true" focus="true"/>
 					<u-button type="primary" size="medium" @click="manualentry">确认录入</u-button>
 				</view>
 				<view class="" v-else>