From 9299ea7999f0946ff9c7d73dc9496a8f96bfeb80 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期三, 24 四月 2024 14:18:13 +0800
Subject: [PATCH] #
---
pages/mat/matSelected.vue | 33 ++++++++++++++++++++++++++++-----
1 files changed, 28 insertions(+), 5 deletions(-)
diff --git a/pages/mat/matSelected.vue b/pages/mat/matSelected.vue
index d4fe196..f3e9cb6 100644
--- a/pages/mat/matSelected.vue
+++ b/pages/mat/matSelected.vue
@@ -17,7 +17,7 @@
<view class="form-item-desc"><text>鎵瑰彿</text></view>
<view class="form-item-content">
<view class="form-input">
- <input type="text">
+ <input type="text" v-model="mat.batch">
</view>
</view>
</view>
@@ -32,6 +32,10 @@
<view class="buttom">
<button size="mini" type="primary" @click="back()">鎻愬彇</button>
</view>
+
+ <view class="keyboard" :class="hidebg" mode="aspectFit" @click="hideKeyboard">
+ <image src="@/static/img/keyboard1.png" style="height: 70%;width: 70%;"></image>
+ </view>
</view>
</template>
@@ -44,10 +48,12 @@
maktx: null,
specs: null,
batch: null,
- anfme: null,
+ anfme: 0,
},
baseIP:'',
basePORT:'',
+ hide: true,
+ hidebg: 'kb-bgtr'
}
},
onLoad(option) {
@@ -64,10 +70,29 @@
that.mat = data.data
that.mat.anfme = 0
})
-
+ // #ifdef APP
+ setInterval(()=>{
+ if (this.hide) {
+ uni.hideKeyboard()
+ } else {
+
+ }
+ },20)
+ // #endif
},
+ onBackPress() {
+ this.hide = false
+ },
methods: {
+ hideKeyboard() {
+ this.hide = this.hide ? false : true
+ if (this.hide) {
+ this.hidebg = 'kb-bgtr'
+ } else {
+ this.hidebg = 'kb-bgfa'
+ }
+ },
blur() {
},
@@ -78,13 +103,11 @@
this.mat.anfme = value
},
back() {
- console.log(this.mat.anfme);
if (this.mat.anfme === 0) {
uni.showToast({title: '璇疯緭鍏ユ暟閲�', icon: "none", position: 'top'});
return;
}
this.getOpenerEventChannel().emit('matList', {data: this.mat});
- uni.vibrateShort();
uni.navigateBack({
})
--
Gitblit v1.9.1