<view class="search_container">
  <view class="inputContent">
    <van-icon name="search" />
    <input type="text" bindinput="onInput" placeholder="搜索商品名称" />
    <button bindtap="onSearch" bintap="onSearch">搜索</button>
  </view>
  <view class="show_clear" hidden="true">
    <text>搜索历史</text>
    <view>
      <van-icon name="delete-o" />
      <text>清除记录</text>
    </view>
  </view>

  <view class="search_content_true" wx:if="{{show}}">
    <image src="./img/kong.png"></image>
  </view>

  <view wx:else>
    <view class="search_content_false" wx:for="{{foods}}" wx:key="*this">
      <van-row>
        <van-col span="7" offset="1">
          <view class="pic">
            <image src="{{item.foodsImg}}"></image>
          </view>

        </van-col>
        <van-col span="8">
          <view class="desc">
            <text style="font-size:33rpx;font-weight:700;">{{item.foodsName}}</text>
            <text style="font-size: 24rpx;color:rgb(173, 173, 173);">{{item.foodsDesc}}</text>
            <text style="text-decoration: line-through;">￥{{item.initPrice}}</text>
            <text style="color:red;font-size: 30rpx;">￥{{item.nowPrice}}+40积分</text>
          </view>
        </van-col>

        <van-col span="8">
          <van-stepper data-id="{{item.id}}" style="position: relative;top:180rpx;right:-20rpx;" min="0" value="{{ 0 }}" bind:change="onChange" />
        </van-col>
      </van-row>
    </view>
    <view class="search_total">
    <van-submit-bar  price="{{ totalPrice }}" button-text="去结算" bind:submit="onSubmit" />
  </view>
  </view>


  
</view>