diff --git a/components/course/ChapterList.vue b/components/course/ChapterList.vue index 19d9e4e..dd7801d 100644 --- a/components/course/ChapterList.vue +++ b/components/course/ChapterList.vue @@ -134,7 +134,8 @@ interface Props { const props = defineProps() const emit = defineEmits<{ - click: [chapter: IChapter] + click: [chapter: IChapter], + purchase: [catalogue: ICatalogue], }>() /** diff --git a/pages/course/details/components/course-info.vue b/components/course/CourseInfo.vue similarity index 100% rename from pages/course/details/components/course-info.vue rename to components/course/CourseInfo.vue diff --git a/components/course/GoodsSelector.vue b/components/order/GoodsSelector.vue similarity index 54% rename from components/course/GoodsSelector.vue rename to components/order/GoodsSelector.vue index fff34c6..1f00c70 100644 --- a/components/course/GoodsSelector.vue +++ b/components/order/GoodsSelector.vue @@ -2,16 +2,21 @@ - - {{ isFudu ? '选择复读方案' : '选择购买方案' }} - + + + + {{ goods[selectedIndex].productName }} + NZ$ {{ selectedGoodsPrice }} + + + {{ isFudu ? t('order.selectFuduScheme') : t('order.selectPurchaseScheme') }} + + {{ item.productName }} - ¥{{ item.vipPrice.toFixed(2) }} + NZ$ {{ parseFloat(item.vipPrice).toFixed(2) }} VIP到手价 - ¥{{ item.price.toFixed(2) }} + NZ$ {{ parseFloat(item.price).toFixed(2) }} - ¥{{ item.activityPrice.toFixed(2) }} + NZ$ {{ parseFloat(item.activityPrice).toFixed(2) }} 活动价 - ¥{{ item.price.toFixed(2) }} + NZ$ {{ parseFloat(item.price).toFixed(2) }} - ¥{{ item.price.toFixed(2) }} + NZ$ {{ parseFloat(item.price).toFixed(2) }} - - - - - - - 立即购买 - + 立即购买 @@ -66,7 +60,10 @@