学习记录
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="page">
 | 
			
		||||
    <div class="list" v-if="list.length">
 | 
			
		||||
      <div class="item" v-for="(item, index) in list" :key="index" @click="toClassDetail(item.id)">
 | 
			
		||||
      <div class="item" v-for="(item, index) in list" :key="index" @click="toClassDetail(item.bizId, item.id)">
 | 
			
		||||
        <div class="top">
 | 
			
		||||
          <div class="flex-left">
 | 
			
		||||
            <img class="video-img" :src="item.pictureUrl" alt="">
 | 
			
		||||
@@ -53,15 +53,15 @@ export default {
 | 
			
		||||
  methods: {
 | 
			
		||||
    getList() {
 | 
			
		||||
      if(this.current > this.pages) return
 | 
			
		||||
      this.$instance.post(`/app/appcourseinfo/listByApplet?size=20¤t=${this.current}`).then(res => {
 | 
			
		||||
      this.$instance.post(`/app/appwechatuserqujinglearnrecord/listByApplet?size=20¤t=${this.current}`).then(res => {
 | 
			
		||||
        if (res.code == 0) {
 | 
			
		||||
          this.pages = res.data.pages
 | 
			
		||||
          this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    toClassDetail(id) {
 | 
			
		||||
      uni.navigateTo({url: `../AppLegalLearning/classDetail?id=${id}`})
 | 
			
		||||
    toClassDetail(bizId, id) {
 | 
			
		||||
      uni.navigateTo({url: `../AppLegalLearning/classDetail?id=${bizId}&recordId&${id}`})
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
  onReachBottom() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user