This commit is contained in:
shijingjing
2023-02-14 08:55:54 +08:00
parent b7433bdd55
commit 05dda2bad2
2 changed files with 24 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div class="OnlineClass">
<div class="search_box">
<u-search placeholder="请输入需要搜索的课程" bg-color="#FFF" v-model="keyword" :show-action="false"></u-search>
<u-search placeholder="请输入需要搜索的课程" bg-color="#FFF" v-model="title" :show-action="false"></u-search>
</div>
<p class="all_class">全部课程</p>
@@ -27,7 +27,7 @@ export default {
data() {
return {
current: 1,
keyword: '',
title: '',
classList: [],
}
},
@@ -37,17 +37,17 @@ export default {
methods: {
getList() {
// this.$instance.post(``, null, {
// params: {
// current: this.current,
// size: 10,
// title: this.title
// }
// }).then(res=> {
// if(res?.data) {
// this.classList = res.data.records
// }
// })
this.$instance.post(`/app/appcourseinfo/list`, null, {
params: {
current: this.current,
size: 10,
title: this.title
}
}).then(res=> {
if(res?.data) {
this.classList = res.data.records
}
})
},
handleToDetail() {
this.$emit('toDetail')