Browse Source

弹出软键盘

hella_online_20240829
lijuncheng 4 months ago
parent
commit
4a8d7cd833
  1. 2
      src/mycomponents/scan/winComScan.vue
  2. 6
      src/mycomponents/scan/winComScanFg.vue

2
src/mycomponents/scan/winComScan.vue

@ -223,7 +223,7 @@
this.$nextTick(r => { this.$nextTick(r => {
that.boxfocus = true; that.boxfocus = true;
}); });
this.hide() // this.hide()
}, },
losefocus() { losefocus() {
let that = this; let that = this;

6
src/mycomponents/scan/winComScanFg.vue

@ -104,14 +104,14 @@
}, },
mounted() { mounted() {
this.boxfocus = true; this.boxfocus = true;
uni.hideKeyboard(); // uni.hideKeyboard();
// #ifdef H5 // #ifdef H5
if (document.querySelector('textarea') != null) { if (document.querySelector('textarea') != null) {
document.querySelector('textarea').setAttribute('inputmode', 'none') document.querySelector('textarea').setAttribute('inputmode', 'none')
} }
// #endif // #endif
this.hide() // this.hide()
// #ifdef APP-PLUS // #ifdef APP-PLUS
// #endif // #endif
@ -238,7 +238,7 @@
this.$nextTick(r => { this.$nextTick(r => {
that.boxfocus = true; that.boxfocus = true;
}); });
this.hide() // this.hide()
}, },
losefocus() { losefocus() {
let that = this; let that = this;

Loading…
Cancel
Save