From 2731bfba385c4ab9c6b291c54c7829939525fdff Mon Sep 17 00:00:00 2001 From: chenghuan Date: Wed, 19 Nov 2025 14:16:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=EF=BC=9A=E6=8F=90=E5=8F=96?= =?UTF-8?q?=E5=85=AC=E5=85=B1=E9=80=89=E6=8B=A9=E5=95=86=E5=93=81=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/course/ChapterList.vue | 3 +- .../course/CourseInfo.vue | 0 .../{course => order}/GoodsSelector.vue | 152 +++++++++++------- locale/en.json | 4 + locale/zh-Hans.json | 4 + pages/book/detail.vue | 35 +++- pages/course/details/chapter.vue | 1 - pages/course/details/course.vue | 7 +- pages/course/index.vue | 2 +- style/ui.scss | 3 + types/course.d.ts | 14 +- types/order.d.ts | 15 +- 12 files changed, 156 insertions(+), 84 deletions(-) rename pages/course/details/components/course-info.vue => components/course/CourseInfo.vue (100%) rename components/{course => order}/GoodsSelector.vue (54%) 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 @@