<!-- packageH/stock/guide/guide.wxml -->
<view class="guide">
  <van-search value="{{ searchInputKeyword }}" use-action-slot placeholder="请输入搜索的内容" shape="round" bind:search="searchGoods" bind:cancel="cancelSearch" bind:clear="cancelSearch">
    <view slot="action">
      <view class="explain-show-button" bind:tap="displayExplainPopup">
        <i class="iconfont icon-dingdan1"></i>
        说明
      </view>
    </view>
  </van-search>
  <image src="{{ sets.banner }}" class="top-banner" mode="aspectFill" wx:if="{{!is_retail}}" />
  <view class="goods-list">
    <goods-item class="goods-item" wx:for="{{ searchGoodsList?searchGoodsList:goodsList }}" wx:for-item="goodsItem" wx:key="id" data="{{ goodsItem }}" bind:tap="viewGoods" data-id="{{ goodsItem.id }}" />
  </view>
  <van-popup show="{{showExplainPopup}}" round closeable bind:close="closeExplainPopup">
    <view class="explain-popup-content">
      <view class="explain-title">说明</view>
      <rich-text class="explain-content" nodes="{{ sets.summary }}"></rich-text>
    </view>
  </van-popup>
</view>