|
@@ -234,13 +234,13 @@ export default defineComponent({
|
|
calcPrice()
|
|
calcPrice()
|
|
const params: any = [] // 支付参数
|
|
const params: any = [] // 支付参数
|
|
|
|
|
|
- // 学练工具
|
|
|
|
- const vipYear = state.vipYearInfo
|
|
|
|
|
|
+ // 教材
|
|
|
|
+ const textBookInfo = state.textBookInfo
|
|
params.push({
|
|
params.push({
|
|
- goodsId: vipYear.goodsId,
|
|
|
|
|
|
+ goodsId: textBookInfo.goodsId,
|
|
goodsNum: 1,
|
|
goodsNum: 1,
|
|
- goodsType: vipYear.goodsType,
|
|
|
|
- paymentCashAmount: vipYear.currentPrice, // 现金支付金额
|
|
|
|
|
|
+ goodsType: textBookInfo.goodsType,
|
|
|
|
+ paymentCashAmount: textBookInfo.currentPrice, // 现金支付金额
|
|
paymentCouponAmount: 0 // 优惠券金额
|
|
paymentCouponAmount: 0 // 优惠券金额
|
|
})
|
|
})
|
|
|
|
|
|
@@ -254,16 +254,6 @@ export default defineComponent({
|
|
paymentCouponAmount: 0 // 优惠券金额
|
|
paymentCouponAmount: 0 // 优惠券金额
|
|
})
|
|
})
|
|
|
|
|
|
- // 教材
|
|
|
|
- const textBookInfo = state.textBookInfo
|
|
|
|
- params.push({
|
|
|
|
- goodsId: textBookInfo.goodsId,
|
|
|
|
- goodsNum: 1,
|
|
|
|
- goodsType: textBookInfo.goodsType,
|
|
|
|
- paymentCashAmount: textBookInfo.currentPrice, // 现金支付金额
|
|
|
|
- paymentCouponAmount: 0 // 优惠券金额
|
|
|
|
- })
|
|
|
|
-
|
|
|
|
// 检查
|
|
// 检查
|
|
if (state.inspectStatus) {
|
|
if (state.inspectStatus) {
|
|
const inspectInfo = state.inspectInfo
|
|
const inspectInfo = state.inspectInfo
|
|
@@ -276,6 +266,16 @@ export default defineComponent({
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // 学练工具
|
|
|
|
+ const vipYear = state.vipYearInfo
|
|
|
|
+ params.push({
|
|
|
|
+ goodsId: vipYear.goodsId,
|
|
|
|
+ goodsNum: 1,
|
|
|
|
+ goodsType: vipYear.goodsType,
|
|
|
|
+ paymentCashAmount: vipYear.currentPrice, // 现金支付金额
|
|
|
|
+ paymentCouponAmount: 0 // 优惠券金额
|
|
|
|
+ })
|
|
|
|
+
|
|
// 创建订单
|
|
// 创建订单
|
|
const { data } = await request.post('/api-student/userPaymentOrder/executeOrder', {
|
|
const { data } = await request.post('/api-student/userPaymentOrder/executeOrder', {
|
|
hideLoading: false,
|
|
hideLoading: false,
|
|
@@ -888,6 +888,7 @@ export default defineComponent({
|
|
rules={[{ required: true, message: '请填写您计划配置的乐器品牌' }]}
|
|
rules={[{ required: true, message: '请填写您计划配置的乐器品牌' }]}
|
|
/>
|
|
/>
|
|
<Field
|
|
<Field
|
|
|
|
+ style="padding-top: 0;"
|
|
required
|
|
required
|
|
label="您计划配置的AI学练工具品牌"
|
|
label="您计划配置的AI学练工具品牌"
|
|
labelAlign="top"
|
|
labelAlign="top"
|