|
@@ -15,12 +15,12 @@
|
|
|
</view>
|
|
|
<view class="hotSection">
|
|
|
<view class="title">
|
|
|
- <image src="../../static/image/hot_recommand.png" alt="" />
|
|
|
- <text>热门推荐</text>
|
|
|
+ <image src="../../static/image/hot_recommend.png" alt="" />
|
|
|
+ <text>人气推荐</text>
|
|
|
</view>
|
|
|
<view class="hotWares" style="flex-direction:row;">
|
|
|
- <view wx:for="{{hotData.wareCards}}" wx:key="{{index}}" class="{{index === 0 ? hotData.hotWareCardFirst: hotData.hotWareCard}}" bindtap="openClass" data-classId="{{item.classId}}" data-title="{{item.title}}">
|
|
|
- <image class="wareCardImg" src="{{item.img}}" />
|
|
|
+ <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">
|
|
@@ -48,8 +48,47 @@
|
|
|
<text>{{item.likes}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ </view> -->
|
|
|
+ <image class="wareCardImg" src="{{item.img}}" />
|
|
|
+ <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>
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="hotSection">
|
|
|
+ <view class="title">
|
|
|
+ <image class="recommendTag" src="../../static/image/class_recommend.png" alt="" />
|
|
|
+ <text>本周课程推荐</text>
|
|
|
+ </view>
|
|
|
+ <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}}">
|
|
|
+ <image class="wareCardImg" src="{{item.img}}" />
|
|
|
+ <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>
|
|
|
+
|
|
|
</view>
|
|
|
</template>
|