<!-- 技能培训课程 -->
<template>
	<view class="course">
		<z-paging ref="paging" v-model="courseList" @query="queryList">
			<view class="course-list">
				<view class="course-list-item" v-for="(item, index) in courseList" :key="index">
					<view class="left">
						<u-image :src="item.img" mode="aspectFill" width="204" height="132" border-radius="10">
						</u-image>
					</view>
					<view class="right">
						<view>{{ item.name }}</view>
						<view>主讲老师：{{ item.teacherName }}</view>
					</view>
				</view>
			</view>
		</z-paging>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				courseList: []
			}
		},
		methods: {
			/**
			 * @param {Object} pageNum
			 * @param {Object} pageSize
			 */
			queryList(pageNum, pageSize) {
				this.$refs.paging.complete([
					{
						img: 'https://file02.16sucai.com/d/file/2014/0427/071875652097059bbbffe106f9ce3a93.jpg',
						name: '解锁！轮胎更换诀窍',
						teacherName: 'xxx'
					},
					{
						img: 'https://file02.16sucai.com/d/file/2014/0427/071875652097059bbbffe106f9ce3a93.jpg',
						name: '解锁！轮胎更换诀窍轮胎更换诀窍轮胎更换诀窍轮胎更换诀窍',
						teacherName: 'xxx'
					}
				])
			}
		}
	}
</script>

<style lang="scss" scoped>
	@import './skillsTrainingCourse.scss';
</style>
