riku
2022-08-09 87f6bb4bcb2446b9c9065b58391ae400cd358b77
pages/module_consult/consultsearch/consultsearch.wxml
@@ -1,24 +1,23 @@
<!--pages/module_consult/consultsearch/consultsearch.wxml-->
<view class="page">
  <view class="page__hd">
    <view class="search-bar" bindtap="search">
    <view class="search-bar">
      <mp-icon icon="search" size="15" color="black"></mp-icon>
      <text>{{searchTips}}</text>
      <input type="text" class="search-bar__input" placeholder="{{placeholder}}" value="{{value}}" focus="{{focus}}" bindblur="inputBlur" bindfocus="inputFocus" bindinput="inputChange" />
      <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">搜索</view>
    <view class="btn" bindtap="search">{{value.length > 0 ? '搜索' : '取消'}}</view>
  </view>
  <view class="page__bd">
    <view wx:if="{{histroy.length > 0}}">
      <view>历史记录</view>
      <text wx:for="{{history}}"></text>
      <text wx:for="{{history}}" wx:key="index">{{item}}</text>
    </view>
    <view>大家都在搜</view>
    <view wx:for="{{hotTopic}}">
    <view wx:for="{{hotTopic}}" wx:key="index">
      <text>{{index + 1}}</text>
      <text>{{item}}</text>
      <text>{{item.name}}</text>
      <image src=""></image>
    </view>
  </view>