123456789101112131415161718192021222324252627282930313233343536373839 |
- <template name="hot">
- <swiper indicator-dots="{{hotData.indicatorDots}}" autoplay="{{hotData.autoplay}}" interval="{{hotData.interval}}" duration="{{hotData.duration}}" circular="{{hotData.circular}}">
- <block wx:for="{{hotData.imgUrls}}" wx:key="{{index}}">
- <swiper-item>
- <image src="{{item}}" 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">
- <image src="../../static/image/hot_recommand.png" alt="" />
- <text>热门推荐</text>
- </view>
- <view class="hotWares" style="flex-direction:row;">
- <view class="hotWareCard" wx:for="{{hotData.wareCards}}" wx:key="">
- <image class="wareCardImg" src="{{item.img}}" />
- <text class="wareCardTitle">{{item.title}}</text>
- <text class="wareCardTip">{{item.grade}}</text>
- <view class="bottomData">
- <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>
|