com_search.wxml 1.1 KB

12345678910111213141516171819202122
  1. <!--pages/com_search/com_search.wxml-->
  2. <!-- 搜素框 -->
  3. <view class="search_box">
  4. <view class="base_search">
  5. <van-icon name="search" size="50rpx" color="#696969" style="margin-top: 15rpx; margin-left: -430rpx;"/>
  6. <input type="search" name="" placeholder="搜索..." value="{{inputValue}}" class="search_text" bind:tap="searchTo"/>
  7. <van-icon name="cross" style="float: right; margin-top: 24rpx; margin-right: 15rpx;"/>
  8. </view>
  9. <!-- 搜索按钮 -->
  10. <view class="search_button" bind:tap="onClose" catch:tap="searchBegin" data-searchdata="{{inputValue}}">搜索</view>
  11. </view>
  12. <view class="commodity">
  13. <view class="commodity_show" wx:for="{{resultList}}" wx:key="index">
  14. <view bind:tap="detailTo" data-id='{{item.Id}}' data-price='{{item.Price}}' data-Title='{{item.Title}}' data-pic='{{item.Pic}}'>
  15. <image src="{{item.Pic}}" alt="" class="commodity_image"/>
  16. <text class="commodity_name">{{item.Title}}</text>
  17. <text class="price">¥{{item.Price}}</text>
  18. <avatar></avatar>
  19. </view>
  20. </view>
  21. </view>