<template name="hot">

    <view class="searchSection">
        <input bindinput="inputHandler" value="{{hotData.inputValue}}" focus="{{hotData.inputFocus}}" bindfocus="searchIconDisappear" bindblur="searchIconCome" bindconfirm="searchHandler" placeholder="{{hotData.hotSearch}}" placeholder-style="text-indent:20rpx" confirm-type="search"></input>
        <view>{{searchIcon}}</view>
        <view bindtap="inputFocus" class="searchBtn" wx:if="{{hotData.searchIcon}}">
            <!-- <icon type="search" size="14" /> -->
            <image src="../../static/image/search_new.png" alt="" />
        </view>
        <view class="allBooks" bindtap="goToBooks">全部课程</view>
        <!-- <form bindsubmit="submitTest" report-submit="{{true}}" class="allBooks">
            <button formType="submit">Reset</button>
        </form> -->
    </view>
    <view class="recommdSection">
        <view class="recommd-title">热门作品</view>
        <view class="hotWares">
            <view wx:for="{{hotData.hotWorks}}" wx:key="{{index}}" class="worksCard" bindtap="openWorks" data-readId="{{item.classId}}" data-title="{{item.title}}">
                <view class="topData">
                    <view class="worksLeft" catchtap="goToUsers" data-uid="{{item.uid}}">
                        <image class="authorAvatar" lazy-load="true" src="{{item.avatar}}" />
                        <view class="profession" wx:if="{{item.profession}}">
                            {{item.profession}}
                        </view>
                        <view class="worksInfo">
                            <view class="authorName">{{item.nickName}}</view>
                            <view class="time">{{item.time}}</view>
                        </view>
                    </view>
                    <view class="numberInfo">
                        <view class="wareCardPlays">
                            <image class="wareCardPlaysImg" lazy-load="true" src="../../static/image/hotPlays.png" />
                            <text>{{item.plays}}</text>
                        </view>
                        <view class="wareCardLikes">
                            <image class="wareCardLikesImg" lazy-load="true" src="../../static/image/flower_small_pink.png" />
                            <text>{{item.likes}}</text>
                        </view>
                    </view>
                </view>
                <image class="wareCardImg" src="{{item.img}}" />
                <view class="titleSummary">
                    <text class="wareCardTitle">{{item.title}}</text>
                    <text class="wareCardTip">{{item.summary}}</text>
                </view>
            </view>
        </view>
    </view>

</template>