riku
2023-11-29 9b09d13712c0c005891450a3bf4b6d848ec0ff37
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!--pages/mConsult/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>