add buy button
This commit is contained in:
1 parent
4bb41655a8
commit
d237e201e8
1 file changed
+10
@@ -17,6 +17,11 @@
|
|||||||
<div class="introduction mb-5">
|
<div class="introduction mb-5">
|
||||||
<p>{{ course.introduction }}</p>
|
<p>{{ course.introduction }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="operation">
|
||||||
|
<p>
|
||||||
|
<el-button @click="onBuy">Buy</el-button>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
@@ -118,6 +123,11 @@ export default defineComponent({
|
|||||||
episodeService.getAllForCourse(this.id).then(({ data: data }: { data: IEpisodeListResponse }) => {
|
episodeService.getAllForCourse(this.id).then(({ data: data }: { data: IEpisodeListResponse }) => {
|
||||||
this.episodes = data.items;
|
this.episodes = data.items;
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
onBuy() {
|
||||||
|
// courseService.buy(this.id)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in new issue
Block a user