riku
2022-10-28 b45a01a8bee4a9bff5f9c248ead301b8675d1099
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!--pages/m_consult/consultsearch/consultsearch.wxml-->
<view class="page">
  <view class="page__hd">
    <view class="search-bar">
      <mp-icon icon="search" size="15" color="black"></mp-icon>
      <input type="text" class="search-bar__input" placeholder="{{placeholder}}" value="{{value}}" focus="{{focus}}" bindinput="inputChange" />
      <text class="weui-icon-clear" hover-class="weui-active" wx:if="{{value.length > 0}}" bindtap="clearInput"></text>
    </view>
    <view class="btn" bindtap="search">{{value.length > 0 ? '搜索' : '取消'}}</view>
  </view>
  <view class="page__bd">
    <view wx:if="{{history.length > 0}}">
      <view>历史记录</view>
      <view class="history-record">
        <text wx:for="{{history}}" wx:key="index" data-index="{{index}}" bindtap="selectHistory">{{item}}</text>
      </view>
    </view>
 
    <view>大家都在搜</view>
    <view class="hot-topic">
      <view wx:for="{{hotTopic}}" wx:key="index" class="hot-topic__item" data-index="{{index}}" bindtap="gotoDetail">
        <view class="{{index < 3 ? 'hot-topic__hot' : 'hot-topic__normal'}}">{{index + 1}}</view>
        <view class="hot-topic__name">{{item.mfName}}</view>
      </view>
    </view>
  </view>
  <view class="page__ft"></view>
</view>