Showing
2 changed files
with
2 additions
and
0 deletions
| ... | @@ -142,6 +142,7 @@ export function provideCart(mode = CartMode.MULTIPLE) { | ... | @@ -142,6 +142,7 @@ export function provideCart(mode = CartMode.MULTIPLE) { |
| 142 | // 构建订单数据 | 142 | // 构建订单数据 |
| 143 | const orderData = { | 143 | const orderData = { |
| 144 | details: cartItems.value.map(item => ({ | 144 | details: cartItems.value.map(item => ({ |
| 145 | + cover: item.cover, | ||
| 145 | good_id: item.id, | 146 | good_id: item.id, |
| 146 | type: item.type, | 147 | type: item.type, |
| 147 | number: item.quantity, | 148 | number: item.quantity, | ... | ... |
| ... | @@ -484,6 +484,7 @@ const handlePurchase = () => { | ... | @@ -484,6 +484,7 @@ const handlePurchase = () => { |
| 484 | price: course.value.price, | 484 | price: course.value.price, |
| 485 | imageUrl: course.value.imageUrl, | 485 | imageUrl: course.value.imageUrl, |
| 486 | form: course.value.form, // 报名关联的表单 | 486 | form: course.value.form, // 报名关联的表单 |
| 487 | + cover: course.value.cover, // 课程封面 | ||
| 487 | } | 488 | } |
| 488 | 489 | ||
| 489 | // 只有当form_url存在且不为空时才添加该字段 | 490 | // 只有当form_url存在且不为空时才添加该字段 | ... | ... |
-
Please register or login to post a comment