|
@@ -40,7 +40,9 @@ import $ from 'jquery';
|
|
|
methods:{
|
|
|
changeVal(e){
|
|
|
if(this.msg.type=='number'){//数字键盘
|
|
|
- this.txt = e.target.value=e.target.value.replace(/^\.$/,'').slice(0,9)
|
|
|
+ if(+e.target.value.length>10){
|
|
|
+ e.target.value=e.target.value.replace(/^\.$/,'').slice(0,9)
|
|
|
+ }
|
|
|
}
|
|
|
const newData = Object.assign({},this.part,{value:this.txt});
|
|
|
this.$emit("updata",newData);
|
|
@@ -50,7 +52,10 @@ import $ from 'jquery';
|
|
|
handleBlur(){
|
|
|
// $(".btscroll").css({'position':'fixed'})
|
|
|
$(".foot").css({'display':'block'})
|
|
|
- document.activeElement.scrollIntoView({behavior: "smooth",block:'end'})
|
|
|
+
|
|
|
+ if(MobileDevice.getModels().join(' or ').indexOf('6') == -1){
|
|
|
+ document.activeElement.scrollIntoView({behavior: "smooth",block:'end'})
|
|
|
+ }
|
|
|
// document.activeElement.scrollIntoViewIfNeeded(true);
|
|
|
// setTimeout(()=>{
|
|
|
// document.activeElement.scrollIntoViewIfNeeded(true);
|