add buy button

This commit is contained in:
AceDataCloud committed 2022-05-09 02:41:52 +08:00
1 parent 4bb41655a8
commit d237e201e8
1 file changed
+10
+10
View File
@@ -17,6 +17,11 @@
<div class="introduction mb-5">
<p>{{ course.introduction }}</p>
</div>
<div class="operation">
<p>
<el-button @click="onBuy">Buy</el-button>
</p>
</div>
</el-col>
</el-row>
</div>
@@ -118,6 +123,11 @@ export default defineComponent({
episodeService.getAllForCourse(this.id).then(({ data: data }: { data: IEpisodeListResponse }) => {
this.episodes = data.items;
});
},
methods: {
onBuy() {
// courseService.buy(this.id)
}
}
});
</script>