|
@@ -251,13 +251,15 @@ export default defineComponent({
|
|
|
|
|
|
// 教材
|
|
|
const textBookInfo = state.textBookInfo
|
|
|
- params.push({
|
|
|
- goodsId: textBookInfo.goodsId,
|
|
|
- goodsNum: 1,
|
|
|
- goodsType: textBookInfo.goodsType,
|
|
|
- paymentCashAmount: textBookInfo.currentPrice, // 现金支付金额
|
|
|
- paymentCouponAmount: 0 // 优惠券金额
|
|
|
- })
|
|
|
+ if (textBookInfo.textbookFlag) {
|
|
|
+ params.push({
|
|
|
+ goodsId: textBookInfo.goodsId,
|
|
|
+ goodsNum: 1,
|
|
|
+ goodsType: textBookInfo.goodsType,
|
|
|
+ paymentCashAmount: textBookInfo.currentPrice, // 现金支付金额
|
|
|
+ paymentCouponAmount: 0 // 优惠券金额
|
|
|
+ })
|
|
|
+ }
|
|
|
|
|
|
// 商品
|
|
|
const goodsInfo = state.goodsInfo
|
|
@@ -451,8 +453,10 @@ export default defineComponent({
|
|
|
tempPrice.needPrice += parseFloat(state.vipYearInfo.currentPrice || 0)
|
|
|
tempPrice.originalPrice += parseFloat(state.vipYearInfo.originalPrice || 0)
|
|
|
// 教材
|
|
|
- tempPrice.needPrice += parseFloat(state.textBookInfo.currentPrice || 0)
|
|
|
- tempPrice.originalPrice += parseFloat(state.textBookInfo.originalPrice || 0)
|
|
|
+ if (state.textBookInfo.textbookFlag) {
|
|
|
+ tempPrice.needPrice += parseFloat(state.textBookInfo.currentPrice || 0)
|
|
|
+ tempPrice.originalPrice += parseFloat(state.textBookInfo.originalPrice || 0)
|
|
|
+ }
|
|
|
|
|
|
// 检查乐器
|
|
|
if (state.inspectStatus) {
|