From d8872903e30f0a53abefcd279ae03258341e931f Mon Sep 17 00:00:00 2001 From: cuiqian2004 <cuiqian2004@163.com> Date: 星期四, 20 三月 2025 09:10:31 +0800 Subject: [PATCH] test --- pages/modal/3037_2.vue | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pages/modal/3037_2.vue b/pages/modal/3037_2.vue index 1aff5ff..a8d0c38 100644 --- a/pages/modal/3037_2.vue +++ b/pages/modal/3037_2.vue @@ -1073,15 +1073,20 @@ //console.log(e.target) getApp().onScan((result) => { console.log(result.decodedata); + item.value = result.decodedata + let newVal = item.value + if (typeof item.value == "string") { + newVal = item.value.trim() + } var isflag = true; for (var i in this.$data.subPanelList) { - if (this.$data.subPanelList[i].scanCodeVal == result.decodedata) + if (this.$data.subPanelList[i].scanCodeVal == newVal) isflag = false; } //瀛愭暟鎹被鎵爜鏌ヨ鏁版嵁 if (isflag) { uni.hideKeyboard(); - this.$data.scanCodeVal = result.decodedata; + this.$data.scanCodeVal =newVal; var eventid = this.$data.param.Scan_Code.Input_Change_Event.ID; if (eventid) { //涓绘暟鎹被灞炴� -- Gitblit v1.9.1