12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <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}}" bindtap="bannerTap" 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>
- <button bindtap="searchHandler" class="searchBtn" plain="{{true}}">
- <icon type="search" size="17" />
- </button>
- <view class="allBooks" bindtap="goToBooks">全部课本</view>
- </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">更多></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}}" />
- <text class="wareCardTitle">{{item.title}}</text>
- <view class="bottomData">
- <text class="wareCardTip">{{item.summary}}</text>
- <!-- <view class="wareCardPlays">
- <image class="wareCardPlaysImg" src="../../static/image/hotPlays.png" />
- <text>{{item.plays}}</text>
- </view>
- <view class="wareCardLikes">
- <image class="wareCardLikesImg" src="../../static/image/like.png" />
- <text>{{item.likes}}</text>
- </view> -->
- </view>
- </view>
- </view>
- </view>
- <view class="hotSection">
- <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="hotWareCard" bindtap="openWorks" data-readId="{{item.classId}}" data-title="{{item.title}}">
- <image class="wareCardImg" src="{{item.img}}" />
- <text class="wareCardTitle">{{item.title}}</text>
- <view class="bottomData">
- <text class="wareCardTip">{{item.summary}}</text>
- <view class="wareCardPlays">
- <image class="wareCardPlaysImg" src="../../static/image/hotPlays.png" />
- <text>{{item.plays}}</text>
- </view>
- <view class="wareCardLikes">
- <image class="wareCardLikesImg" src="../../static/image/like.png" />
- <text>{{item.likes}}</text>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
|