search.wxml 1.8 KB
<!--pages/search/search.wxml-->
<view class="container">
  <view class="search_center" catchtap="goSearch">
    <van-search value="{{keyWord}}" placeholder="请输入搜索关键词" shape="round" show-action bind:search="search"
      bind:cancel="onCancel" bind:change="onChange" />
  </view>

  <!-- 搜索历史 -->
  <view class="searchHistory" wx:if="{{searchBox}}">
    <view class="searchTitle">
      <view class="title">历史搜索</view>
      <view class="noData" wx:if="{{labelArray==[]}}">
        暂无搜索记录哦~
      </view>
      <view class="delIcon" bindtap="delSearch">
        <image src="/images/01-02/del.png"></image>
      </view>
    </view>
    <view class="searchLable">
      <view wx:for="{{labelArray}}" class="lableBox" catchtap="historyClick" data-index="{{index}}">
        {{item}}
      </view>
    </view>
  </view>
  <!-- 猜你喜欢 -->
  <view style=" width:750rpx,height:16rpx,background:red" class="middleLine"></view>
  <view class="like">
    <view class="titleMain">
      <view class="icon"></view>
      <view class="title">{{title}}</view>
    </view>
    <view class="listTable">
      <view class="listSon" wx:for="{{list}}" bindtap="goGoodsDetail" data-id="{{item.goodsId}}">
        <view class="listPic">
          <image src="{{item.goodsImg}}" mode="aspectFill"></image>
        </view>
        <view class="listTitle">{{item.goodsName}}</view>
        <view class="collect">{{item.goodsAttributes}}</view>
        <view class="discount">
          <view class="discountPic">
            <text class="moneyIcon">¥</text>
					<text class="moneyNum">{{item.goodsPrice}}</text>
          </view>
        </view>
      </view>
    </view>
    <view class="bottomHint" wx:if="{{bottomHint}}">
      我是有底线的~
    </view>
  </view>

</view>