焦点优化
This commit is contained in:
@@ -9,8 +9,8 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="filter_input_wraper">
|
<view class="filter_input_wraper">
|
||||||
<search-box
|
<search-box
|
||||||
|
ref="scanChild"
|
||||||
v-model="val1"
|
v-model="val1"
|
||||||
:focused="focusedStatus"
|
|
||||||
@handleChange="handleChange"
|
@handleChange="handleChange"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
@@ -113,7 +113,6 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
focusedStatus: true,
|
|
||||||
modelShow: false,
|
modelShow: false,
|
||||||
value: '1',
|
value: '1',
|
||||||
val0: '',
|
val0: '',
|
||||||
@@ -144,6 +143,9 @@
|
|||||||
this.checkCode = option.checkcode
|
this.checkCode = option.checkcode
|
||||||
// this._checkQueryDtl()
|
// this._checkQueryDtl()
|
||||||
},
|
},
|
||||||
|
mounted () {
|
||||||
|
this.$refs.scanChild.handleFocus()
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goIn () {
|
goIn () {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@@ -197,7 +199,7 @@
|
|||||||
this.val1 = ''
|
this.val1 = ''
|
||||||
this.val2 = ''
|
this.val2 = ''
|
||||||
this.val3 = ''
|
this.val3 = ''
|
||||||
this.focusedStatus = true
|
this.$refs.scanChild.handleFocus()
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
@@ -218,7 +220,7 @@
|
|||||||
this.val1 = ''
|
this.val1 = ''
|
||||||
this.val2 = ''
|
this.val2 = ''
|
||||||
this.val3 = ''
|
this.val3 = ''
|
||||||
this.focusedStatus = true
|
this.$refs.scanChild.handleFocus()
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
|
|||||||
Reference in New Issue
Block a user