course.wxml
1.5 KB
<!--previous-margin='30rpx' next-margin='30rpx' display-multiple-items='3'-->
<view class='swiper_box'>
<swiper class='swiper' previous-margin='40rpx' next-margin='40rpx' circular='true' display-multiple-items='1' bindchange="handleChange">
<block wx:for='{{imgsUrls}}' wx:key='{{index}}' data-index='{{index}}'>
<swiper-item class='' catchtap='{{gocourseDetail}}' id='{{item.id}}'>
<image src="{{item.thumb}}" class="banner_img {{currentindex==index?'img_style':''}}"></image>
</swiper-item>
</block>
</swiper>
</view>
<view class='tab_item'>
<view class="tab_list {{current==0?'active':''}}" data-current='0' bindtap='chargeTab'>备考策略</view>
<view class="tab_list {{current==1?'active':''}}" data-current='1' bindtap='chargeTab'>解题方法</view>
<view class="tab_list {{current==2?'active':''}}" data-current='2' bindtap='chargeTab'>经典系列</view>
</view>
<view class='content_item' wx:if='{{listinfo.length!=0}}'>
<view class='case_list' wx:for='{{listinfo}}' wx:key='' data-id='{{item.id}}' bindtap='courseDetail'>
<view class='case_content_box' >
<view class='case_img'>
<image src='{{item.thumb}}'></image>
</view>
<view class='case_content'>
<view class='case_title'>{{item.title}}</view>
<view class='case_point'>
<view class='point '></view>适用人群:</view>
<view>{{item.right_person}}</view>
</view>
</view>
<view class='iconfont icon-jiantouarrow487 '></view>
</view>
</view>
<view class='nodata' wx:else>暂无数据</view>