| | |
| | | <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> |
| | | <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 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> |
| | | <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 |
| | | 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> |