skillsTrainingCourse.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!-- 技能培训课程 -->
  2. <template>
  3. <view class="course">
  4. <z-paging ref="paging" v-model="courseList" @query="queryList">
  5. <view class="course-list">
  6. <view class="course-list-item" v-for="(item, index) in courseList" :key="index">
  7. <view class="left">
  8. <u-image :src="item.img" mode="aspectFill" width="204" height="132" border-radius="10">
  9. </u-image>
  10. </view>
  11. <view class="right">
  12. <view>{{ item.name }}</view>
  13. <view>主讲老师:{{ item.teacherName }}</view>
  14. </view>
  15. </view>
  16. </view>
  17. </z-paging>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. courseList: []
  25. }
  26. },
  27. methods: {
  28. /**
  29. * @param {Object} pageNum
  30. * @param {Object} pageSize
  31. */
  32. queryList(pageNum, pageSize) {
  33. this.$refs.paging.complete([
  34. {
  35. img: 'https://file02.16sucai.com/d/file/2014/0427/071875652097059bbbffe106f9ce3a93.jpg',
  36. name: '解锁!轮胎更换诀窍',
  37. teacherName: 'xxx'
  38. },
  39. {
  40. img: 'https://file02.16sucai.com/d/file/2014/0427/071875652097059bbbffe106f9ce3a93.jpg',
  41. name: '解锁!轮胎更换诀窍轮胎更换诀窍轮胎更换诀窍轮胎更换诀窍',
  42. teacherName: 'xxx'
  43. }
  44. ])
  45. }
  46. }
  47. }
  48. </script>
  49. <style lang="scss" scoped>
  50. @import './skillsTrainingCourse.scss';
  51. </style>