|
|
@ -1,15 +1,17 @@ |
|
|
<view class="container" style="align-items: flex-start; padding: 20rpx; width: 100%; max-width: 100vw; overflow-x: hidden; position: relative; box-sizing: border-box;"> |
|
|
<view class="container" style="align-items: flex-start; padding: 20rpx; width: 100%; max-width: 100vw; overflow-x: hidden; position: relative; box-sizing: border-box;"> |
|
|
|
|
|
|
|
|
<!-- 搜索框 --> |
|
|
<!-- 搜索框 --> |
|
|
<view style="position: fixed; top: 0; left: 0; right: 0; padding: 20rpx; background-color: white; z-index: 100; box-shadow: 0 2rpx 10rpx rgba(0,0,0,0.1); box-sizing: border-box;"> |
|
|
<view class="search-container"> |
|
|
<view style="width: 90%; display: flex; border: 1rpx solid #ddd; border-radius: 40rpx; overflow: hidden; margin: 0 auto;"> |
|
|
<view class="search-box"> |
|
|
|
|
|
<view class="search-icon">🔍</view> |
|
|
<input |
|
|
<input |
|
|
style="width: 100%; padding: 20rpx 30rpx;" |
|
|
class="search-input" |
|
|
placeholder="搜索商品名称或品种" |
|
|
placeholder="搜索商品名称或品种" |
|
|
bindinput="onSearchInput" |
|
|
bindinput="onSearchInput" |
|
|
bindconfirm="searchGoods" |
|
|
bindconfirm="searchGoods" |
|
|
value="{{searchKeyword}}" |
|
|
value="{{searchKeyword}}" |
|
|
/> |
|
|
/> |
|
|
|
|
|
<view wx:if="searchKeyword" class="clear-icon" bindtap="clearSearch">✕</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|