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("当前环境不支持!") } })