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