From 384112c81fa535cf503da3c8d81f3c12bfdc605a Mon Sep 17 00:00:00 2001 From: lld <15027638633@163.com> Date: Mon, 16 Feb 2026 11:39:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=A0=8F=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=89=AB=E7=A0=81=E6=9F=A5=E8=AF=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index.vue | 14 ++++++++++++-- .../components/yt-scanCode/yt-scanCode.vue | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/pages/index.vue b/pages/index.vue index 3fb6962..5f592d7 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -18,9 +18,13 @@ v-model="searchValue" cancelButton="always" @input="input" + clearButton="always" @cancel="cancel" @clear="cancel" placeholder="请输入搜索内容"> + @@ -153,10 +157,15 @@ export default { onShow() { this.refresh(); }, + onReady() { }, methods: { + getScanCode(res){ + this.searchValue = res; + this.value = 1; + }, handleAddAgri() { this.$refs.addAgri.open(); // 这里可以添加跳转到添加大棚页面的逻辑 @@ -321,6 +330,7 @@ page { margin-top: 10rpx; /* 新增:H5端避免滚动条样式不一致 */ scrollbar-width: thin; + height: 1220rpx; } /* H5端滚动条样式优化(可选) */ .list-scroll::-webkit-scrollbar { @@ -512,9 +522,9 @@ page { background: transparent !important; } /* 强制隐藏搜索图标容器 */ -/deep/ .uni-searchbar__box-icon-search { +/*/deep/ .uni-searchbar__box-icon-search { display: none !important; -} +}*/ /deep/ .uni-section .uni-section-header { padding: 12rpx 10rpx; } diff --git a/uni_modules/yt-scanCode/components/yt-scanCode/yt-scanCode.vue b/uni_modules/yt-scanCode/components/yt-scanCode/yt-scanCode.vue index 05d651e..ecea71e 100644 --- a/uni_modules/yt-scanCode/components/yt-scanCode/yt-scanCode.vue +++ b/uni_modules/yt-scanCode/components/yt-scanCode/yt-scanCode.vue @@ -37,7 +37,7 @@ } }, fail: err => { - console.log(JSON.stringify(err)) + console.log("当前环境不支持!") } })