|
@@ -23,6 +23,7 @@
|
|
|
</div>
|
|
|
<div class="iptWrap number numberIpt">
|
|
|
<input
|
|
|
+ @focus="focus"
|
|
|
@blur="blur"
|
|
|
:maxlength="type==103?11:type==101?18:type==102?7:type==104?9:30"
|
|
|
v-model="value"
|
|
@@ -36,6 +37,7 @@
|
|
|
<div class="iptWrap number">
|
|
|
<input
|
|
|
@blur="blur"
|
|
|
+ @focus="focus"
|
|
|
:maxlength="30"
|
|
|
v-model="patName"
|
|
|
@input="changeName"
|
|
@@ -78,7 +80,8 @@ export default {
|
|
|
text: ""
|
|
|
},
|
|
|
code:'',
|
|
|
- allow:true
|
|
|
+ allow:true,
|
|
|
+ he:''
|
|
|
};
|
|
|
},
|
|
|
created(){
|
|
@@ -102,14 +105,19 @@ export default {
|
|
|
const { show } = this;
|
|
|
this.show = !show;
|
|
|
},
|
|
|
+ focus(){
|
|
|
+ console.log(window.innerHeight,'focus')
|
|
|
+ this.he = (window.innerHeight,'focus')
|
|
|
+ },
|
|
|
blur() {
|
|
|
- // if(MobileDevice.getModels().join(' or ').indexOf('6') == -1){
|
|
|
- // document.activeElement.scrollIntoViewIfNeeded(true);
|
|
|
- // setTimeout(() => {
|
|
|
- document.activeElement.scrollIntoView({behavior: "smooth",block:'end'})
|
|
|
- // document.activeElement.scrollIntoViewIfNeeded(true);
|
|
|
- // }, 300);
|
|
|
- // }
|
|
|
+ if(MobileDevice.getModels().join(' or ').indexOf('6') == -1){
|
|
|
+ document.activeElement.scrollIntoView({behavior: "smooth",block:'end'})
|
|
|
+ // document.activeElement.scrollIntoViewIfNeeded(true);
|
|
|
+ // setTimeout(() => {
|
|
|
+ // document.activeElement.scrollIntoView({behavior: "smooth",block:'center'})
|
|
|
+ // // document.activeElement.scrollIntoViewIfNeeded(true);
|
|
|
+ // }, 300);
|
|
|
+ }
|
|
|
},
|
|
|
changeName() {
|
|
|
// document.activeElement.scrollIntoViewIfNeeded(true);
|