diff --git a/sheep/components/s-search-block/s-search-block.vue b/sheep/components/s-search-block/s-search-block.vue index 204a02ee..5e3e08fa 100644 --- a/sheep/components/s-search-block/s-search-block.vue +++ b/sheep/components/s-search-block/s-search-block.vue @@ -26,6 +26,7 @@ cancelButton="none" clearButton="none" @confirm="onSearch" + v-model="state.searchVal" /> @@ -129,6 +130,9 @@ function onSearch(e) { if (e.value) { sheep.$router.go('/pages/goods/list', { keyword: e.value }); + setTimeout(() => { + state.searchVal = ''; + }, 100); } } @@ -137,14 +141,17 @@ .border-content { border: 2rpx solid #eee; } + .search-content { flex: 1; // height: 80rpx; position: relative; + .search-icon { font-size: 38rpx; margin-right: 20rpx; } + .keyword-link { position: absolute; right: 16rpx;