<!-- pages/member/course/CourseHistory/CourseHistory.wxml -->
<view>
		<view class="header">
				<text class="center">观看历史</text>
				<text class="right" bindtap='clearCourse'>清除</text>
		</view>
		<block wx:if="{{isShowNoHistory}}">
				<view class="noHistory">
						<view class="noImg">
								<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/course_no.png" mode="widthFix" />
						</view>
						<view class="p" class="text">暂无历史记录</view>
				</view>
		</block>
		<block wx:for="{{histroyInfo}}" wx:key="index">
				<view class="content" bindtap='toCourse' data-id="{{item.course_goods_id}}">
						<view class='thumb'>
								<image src="{{item.course_thumb}}"></image>
						</view>
						<view class="title">
								<view class="name">课程名称：{{ item.course_title }}</view>
								<view class="chapter">
										<icon class="iconfont icon-bofang1"></icon>
										<text class="text">观看至{{ item.chapter_name || ' '}}</text>
								</view>
						</view>
				</view>
		</block>
</view>
<!--<shopfoot></shopfoot>-->
