1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <template name="hot">
- <swiper indicator-dots="{{hotData.indicatorDots}}" autoplay="{{hotData.autoplay}}" interval="{{hotData.interval}}" duration="{{hotData.duration}}" circular="{{hotData.circular}}">
- <block wx:for="{{hotData.banner}}" wx:key="{{index}}">
- <swiper-item>
- <image src="{{item.url}}" data-type="{{item.type}}" data-id="{{item.id}}" class="slide-image" width="750" height="318" />
- </swiper-item>
- </block>
- </swiper>
- <view class="searchSection">
- <input bindinput="inputHandler" bindconfirm="searchHandler" placeholder="{{hotData.hotSearch}}" placeholder-style="text-indent:20rpx" confirm-type="search"></input>
- <view bindtap="searchHandler" class="searchBtn">
- <!-- <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="hotSection">
- <view class="title">
- <view class="leftWrapper">
- <image class="recommendTag" src="../../static/image/course.png" alt="" />
- <text>本周推荐</text>
- </view>
- <view class="moreBtn" bindtap="openMore">
- 更多
- <image src="../../static/image/to.png" />
- </view>
- </view>
- <view class="hotWares" style="flex-direction:row;">
- <view wx:for="{{hotData.recommend}}" wx:key="{{index}}" class="hotWareCard" bindtap="openClass" data-classId="{{item.classId}}" data-title="{{item.title}}">
- <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>
- <view class="recommdSection">
- <view class="title">
- <view class="leftWrapper">
- <image src="../../static/image/hot_recommend.png" alt="" />
- <text>热门作品</text>
- </view>
- </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="worksInfo">
- <view class="authorName">{{item.nickName}}</view>
- <view class="time">{{item.time}}</view>
- </view>
- </view>
- <view class="numberInfo">
- <view class="wareCardPlays">
- <text>{{item.plays}}</text>
- <image class="wareCardPlaysImg" lazy-load="true" src="../../static/image/hotPlays.png" />
- </view>
- <view class="wareCardLikes">
- <text>{{item.likes}}</text>
- <image class="wareCardLikesImg" lazy-load="true" src="../../static/image/like.png" />
- </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>
|