搜索页wxml
<searchbar bindsearchinput="onSearchInputEvent"></searchbar>
<view class='history-list-group' wx:if="{
{histories && !subjects}}">
<view class='history-title'>
<view class='title'>历史记录</view>
<view class='clear' bindtap="onClearEvent">清除</view>
</view>
<navigator wx:for="{
{histories}}" wx:key="{
{item.id}}" url='/pages/detail/detail?type=movie&id={
{item.id}}' class='history-group'>{
{
item.title}}</navigator>
</view>
<view class='item-list-group'>
<view wx:for="{
{subjects}}" class='item-group' wx:key="{
{item.id}}" bindtap="onItemTapEvent" data-id="{
{item.id}}" data-title="{
{item.title}}">
<image src='{
{item.pic.normal}}' class='thumbnail'></image>
<view class='info-group'>
<view class='title'>{
{
item.title}