|
@@ -15,65 +15,39 @@
|
|
</view>
|
|
</view>
|
|
<view class="hotSection">
|
|
<view class="hotSection">
|
|
<view class="title">
|
|
<view class="title">
|
|
- <image src="../../static/image/hot_recommend.png" alt="" />
|
|
|
|
- <text>人气推荐</text>
|
|
|
|
|
|
+ <view class="leftWrapper">
|
|
|
|
+ <image class="recommendTag" src="../../static/image/class_recommend.png" alt="" />
|
|
|
|
+ <text>本周课程推荐</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="moreBtn" bindtap="openBooks">更多></view>
|
|
</view>
|
|
</view>
|
|
<view class="hotWares" style="flex-direction:row;">
|
|
<view class="hotWares" style="flex-direction:row;">
|
|
- <view wx:for="{{hotData.wareCards}}" wx:key="{{index}}" class="hotWareCard" bindtap="openWorks" data-classId="{{item.classId}}" data-title="{{item.title}}">
|
|
|
|
- <!-- <image class="wareCardImg" src="{{item.img}}" />
|
|
|
|
- <view wx:if="{{index===0}}" class="wrapper">
|
|
|
|
- <text class="wareCardTitle">{{item.title}}</text>
|
|
|
|
- <view class="bottomData">
|
|
|
|
- <text class="wareCardTip">{{item.grade}}</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 wx:if="{{index!==0}}">
|
|
|
|
- <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 wx:for="{{hotData.wareCards}}" wx:key="{{index}}" class="hotWareCard" bindtap="openClass" data-classId="{{item.classId}}" data-title="{{item.title}}">
|
|
<image class="wareCardImg" src="{{item.img}}" />
|
|
<image class="wareCardImg" src="{{item.img}}" />
|
|
<text class="wareCardTitle">{{item.title}}</text>
|
|
<text class="wareCardTitle">{{item.title}}</text>
|
|
<view class="bottomData">
|
|
<view class="bottomData">
|
|
<text class="wareCardTip">{{item.grade}}</text>
|
|
<text class="wareCardTip">{{item.grade}}</text>
|
|
- <view class="wareCardPlays">
|
|
|
|
|
|
+ <!-- <view class="wareCardPlays">
|
|
<image class="wareCardPlaysImg" src="../../static/image/hotPlays.png" />
|
|
<image class="wareCardPlaysImg" src="../../static/image/hotPlays.png" />
|
|
<text>{{item.plays}}</text>
|
|
<text>{{item.plays}}</text>
|
|
</view>
|
|
</view>
|
|
<view class="wareCardLikes">
|
|
<view class="wareCardLikes">
|
|
<image class="wareCardLikesImg" src="../../static/image/like.png" />
|
|
<image class="wareCardLikesImg" src="../../static/image/like.png" />
|
|
<text>{{item.likes}}</text>
|
|
<text>{{item.likes}}</text>
|
|
- </view>
|
|
|
|
|
|
+ </view> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
<view class="hotSection">
|
|
<view class="hotSection">
|
|
<view class="title">
|
|
<view class="title">
|
|
- <image class="recommendTag" src="../../static/image/class_recommend.png" alt="" />
|
|
|
|
- <text>本周课程推荐</text>
|
|
|
|
|
|
+ <view class="leftWrapper">
|
|
|
|
+ <image src="../../static/image/hot_recommend.png" alt="" />
|
|
|
|
+ <text>人气推荐</text>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
<view class="hotWares" style="flex-direction:row;">
|
|
<view class="hotWares" style="flex-direction:row;">
|
|
- <view wx:for="{{hotData.wareCards}}" wx:key="{{index}}" class="hotWareCard" bindtap="openClass" data-classId="{{item.classId}}" data-title="{{item.title}}">
|
|
|
|
|
|
+ <view wx:for="{{hotData.wareCards}}" wx:key="{{index}}" class="hotWareCard" bindtap="openWorks" data-classId="{{item.classId}}" data-title="{{item.title}}">
|
|
<image class="wareCardImg" src="{{item.img}}" />
|
|
<image class="wareCardImg" src="{{item.img}}" />
|
|
<text class="wareCardTitle">{{item.title}}</text>
|
|
<text class="wareCardTitle">{{item.title}}</text>
|
|
<view class="bottomData">
|
|
<view class="bottomData">
|
|
@@ -89,6 +63,5 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|