|
@@ -25,7 +25,7 @@ import icon3 from '../images/icon3.png'
|
|
|
import Tips from './tips'
|
|
|
|
|
|
export default defineComponent({
|
|
|
- name: 'vip',
|
|
|
+ name: 'VIP_COURSE',
|
|
|
props: {
|
|
|
userInfo: {
|
|
|
type: Object,
|
|
@@ -40,6 +40,7 @@ export default defineComponent({
|
|
|
teacherSubjectList: [],
|
|
|
subjectStatus: false,
|
|
|
subjectInfo: {
|
|
|
+ freeMinutes: 0,
|
|
|
subjectPrice: 0,
|
|
|
courseMinutes: 0,
|
|
|
id: null,
|
|
@@ -65,7 +66,8 @@ export default defineComponent({
|
|
|
'/api-student/courseSchedule/getTeacherSubjectPrice',
|
|
|
{
|
|
|
params: {
|
|
|
- teacherId: this.teacherId
|
|
|
+ teacherId: this.teacherId,
|
|
|
+ groupType: 'VIP'
|
|
|
}
|
|
|
}
|
|
|
)
|
|
@@ -78,9 +80,10 @@ export default defineComponent({
|
|
|
})
|
|
|
// 判断是否有跟学生相同的科目,如果没有则默认取第一个
|
|
|
const tempRes = findItem || result[0]
|
|
|
- const { subjectName, subjectPrice, courseMinutes, subjectId, id } = tempRes
|
|
|
+ const { subjectName, subjectPrice, courseMinutes, subjectId, id, freeMinutes } = tempRes
|
|
|
this.subjectInfo = {
|
|
|
subjectPrice,
|
|
|
+ freeMinutes,
|
|
|
id,
|
|
|
courseMinutes,
|
|
|
subjectName,
|
|
@@ -232,8 +235,9 @@ export default defineComponent({
|
|
|
'/api-student/courseGroup/lockCourseToCache',
|
|
|
{
|
|
|
data: {
|
|
|
+ courseFreeMinutes: this.subjectInfo.freeMinutes,
|
|
|
courseNum: this.courseNum,
|
|
|
- courseType: 'PRACTICE',
|
|
|
+ courseType: 'VIP',
|
|
|
loop: this.selectType === 'noEnough' ? 1 : 0,
|
|
|
teacherId: this.teacherId,
|
|
|
timeList: [...times]
|
|
@@ -295,7 +299,7 @@ export default defineComponent({
|
|
|
'/api-student/userOrder/getPendingOrder',
|
|
|
{
|
|
|
data: {
|
|
|
- goodType: 'VIP',
|
|
|
+ goodType: 'VIP_COURSE',
|
|
|
bizId: this.teacherId
|
|
|
}
|
|
|
}
|
|
@@ -311,7 +315,7 @@ export default defineComponent({
|
|
|
item.startTime
|
|
|
).format('HH:mm')}~${dayjs(item.endTime).format('HH:mm')}`
|
|
|
})
|
|
|
- orderStatus.orderObject.orderType = 'VIP'
|
|
|
+ orderStatus.orderObject.orderType = 'VIP_COURSE'
|
|
|
orderStatus.orderObject.orderName = subjectInfo.subjectName + 'VIP定制课'
|
|
|
orderStatus.orderObject.orderDesc = subjectInfo.subjectName + 'VIP定制课'
|
|
|
orderStatus.orderObject.actualPrice = Number(
|
|
@@ -320,12 +324,13 @@ export default defineComponent({
|
|
|
orderStatus.orderObject.orderNo = ''
|
|
|
orderStatus.orderObject.orderList = [
|
|
|
{
|
|
|
- orderType: 'VIP',
|
|
|
+ orderType: 'VIP_COURSE',
|
|
|
goodsName: subjectInfo.subjectName + 'VIP定制课',
|
|
|
courseGroupName: subjectInfo.subjectName + 'VIP定制课',
|
|
|
courseIntroduce: subjectInfo.subjectName + 'VIP定制课',
|
|
|
subjectId: subjectInfo.subjectId,
|
|
|
singleCourseMinutes: subjectInfo.courseMinutes,
|
|
|
+ teacherSubjectPriceId: subjectInfo.id,
|
|
|
courseNum: this.courseNum,
|
|
|
coursePrice: (this.courseNum * subjectInfo.subjectPrice).toFixed(2),
|
|
|
teacherName:
|
|
@@ -363,7 +368,7 @@ export default defineComponent({
|
|
|
this.$router.push({
|
|
|
path: '/orderDetail',
|
|
|
query: {
|
|
|
- orderType: 'VIP'
|
|
|
+ orderType: 'VIP_COURSE'
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -385,7 +390,7 @@ export default defineComponent({
|
|
|
(this.settingStatus ? (
|
|
|
<>
|
|
|
<div class={styles.practice}>
|
|
|
- <Tips title='什么是VIP定制课?' content='VIP定制课程采用一对一专属授课模式,每节课时长为45分钟。课程内容根据学生的具体需求量身打造,旨在全面提升学生的个人技能与表现。不论是希望在乐器演奏技巧上取得突破,如提高指法精准度、气息控制能力或节奏掌握等;还是为即将到来的重要活动、比赛或考级做充分准备,我们都能提供高度匹配的教学方案。此外,教学进度将根据每位学员的学习吸收情况灵活调整,确保每个人都能在最适合自己的节奏中稳步前进,扎实提升个人能力。' />
|
|
|
+ <Tips type="LIVE_COURSE" title='什么是VIP定制课?' content='VIP定制课程采用一对一专属授课模式,每节课时长为45分钟。课程内容根据学生的具体需求量身打造,旨在全面提升学生的个人技能与表现。不论是希望在乐器演奏技巧上取得突破,如提高指法精准度、气息控制能力或节奏掌握等;还是为即将到来的重要活动、比赛或考级做充分准备,我们都能提供高度匹配的教学方案。此外,教学进度将根据每位学员的学习吸收情况灵活调整,确保每个人都能在最适合自己的节奏中稳步前进,扎实提升个人能力。' />
|
|
|
<CellGroup class={styles.group} border={false}>
|
|
|
<Cell
|
|
|
title="选择专业"
|
|
@@ -546,10 +551,12 @@ export default defineComponent({
|
|
|
subjectPrice,
|
|
|
courseMinutes,
|
|
|
id,
|
|
|
- subjectId
|
|
|
+ subjectId,
|
|
|
+ freeMinutes
|
|
|
} = item
|
|
|
this.subjectInfo = {
|
|
|
subjectPrice,
|
|
|
+ freeMinutes,
|
|
|
id,
|
|
|
courseMinutes,
|
|
|
subjectName,
|