From 98dc492f262d87e93a80f1ef2d65e7d5c121f002 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期六, 21 十月 2023 17:10:58 +0800
Subject: [PATCH] #
---
pages/tzsk/AGV/AGVPick.vue | 41 +++++++++++++++++++++++++++++++++++++++--
1 files changed, 39 insertions(+), 2 deletions(-)
diff --git a/pages/tzsk/AGV/AGVPick.vue b/pages/tzsk/AGV/AGVPick.vue
index 65eba3d..7c0c509 100644
--- a/pages/tzsk/AGV/AGVPick.vue
+++ b/pages/tzsk/AGV/AGVPick.vue
@@ -100,6 +100,10 @@
@confirm="resetConfirm" @close="resetClose"></uni-popup-dialog>
</uni-popup>
</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>
@@ -134,16 +138,37 @@
floor: "",
devNo: [],
btnText: '鍏ㄩ��',
-
+ hide: true,
+ hidebg: 'kb-bgtr'
}
},
onLoad() {
+ // #ifdef APP
+ setInterval(()=>{
+ if (this.hide) {
+ uni.hideKeyboard()
+ } else {
+
+ }
+ },20)
+ // #endif
+ },
+ onBackPress() {
+ this.hide = false
},
onShow() {
this.baseUrl = uni.getStorageSync('baseUrl');
this.token = uni.getStorageSync('token');
},
methods: {
+ hideKeyboard() {
+ this.hide = this.hide ? false : true
+ if (this.hide) {
+ this.hidebg = 'kb-bgtr'
+ } else {
+ this.hidebg = 'kb-bgfa'
+ }
+ },
stationCodeInput() {
setTimeout(() => {
var len = this.stationCode.length
@@ -519,6 +544,18 @@
<style>
@import url('../../../static/css/wms.css/wms.css');
+ .keyboard{
+ width: 40px;height: 40px;background-size: 100%;position: absolute;z-index: 99;
+ top: 5px;right: 5px; border-radius: 50%;
+ display: flex;align-items: center;justify-content: center;
+ }
+ .kb-bgtr {
+ background-color: #55557f;
+ }
+ .kb-bgfa {
+ background-color: #00aeec;
+ }
+
.bg-red {
background-color: #e54d42;
color: #ffffff;
@@ -528,7 +565,7 @@
color: #666666;
}
.list:first-child {
- margin-top: 360rpx;
+ margin-top: 320rpx;
}
.aside {
width: 100rpx;
--
Gitblit v1.9.1