Browse Source

删除搜索按钮,改为回车触发搜索

pull/1/head
徐飞洋 3 months ago
parent
commit
44a54f6889
  1. 11
      pages/buyer/index.wxml
  2. 8
      pages/seller/index.wxml

11
pages/buyer/index.wxml

@ -2,19 +2,14 @@
<!-- 搜索框 -->
<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 style="width: 90%; display: flex; border: 1rpx solid #ddd; border-radius: 40rpx; overflow: hidden;">
<view style="width: 90%; display: flex; border: 1rpx solid #ddd; border-radius: 40rpx; overflow: hidden; margin: 0 auto;">
<input
style="flex: 1; padding: 20rpx 30rpx;"
style="width: 100%; padding: 20rpx 30rpx;"
placeholder="搜索商品名称或品种"
bindinput="onSearchInput"
bindconfirm="searchGoods"
value="{{searchKeyword}}"
/>
<button
style="background-color: #1677ff; color: white; font-size: 26rpx; height: 80rpx; line-height: 80rpx; padding: 0 30rpx;"
bindtap="searchGoods"
>
搜索
</button>
</view>
</view>

8
pages/seller/index.wxml

@ -27,14 +27,10 @@
class="search-input"
placeholder="搜索货源名称或品种"
bindinput="onSearchInput"
bindconfirm="searchSupplies"
value="{{searchKeyword}}"
style="width: 100%;"
/>
<button
class="search-btn"
bindtap="searchSupplies"
>
搜索
</button>
</view>
</view>

Loading…
Cancel
Save