|
@@ -7,6 +7,7 @@ import defaultIcon from '@common/images/icon_teacher.png'
|
|
|
import iconTimer from '@common/images/icon_timer2.png'
|
|
|
import IconXueli from '@common/images/icon-xueli.png'
|
|
|
import IconJiaozi from '@common/images/icon-jiaozi.png'
|
|
|
+import item from '@/views/coupons/item'
|
|
|
/**
|
|
|
* @description: 视频详情
|
|
|
* @param {type} headUrl 头像
|
|
@@ -14,6 +15,7 @@ import IconJiaozi from '@common/images/icon-jiaozi.png'
|
|
|
* @param {type} startTime 开始时间
|
|
|
* @param {type} buyNum 购买用户数
|
|
|
* @param {type} payType 收费方式
|
|
|
+ * @param {type} type 课程类型
|
|
|
* @param {type} lessonPrice 价格
|
|
|
* @param {type} lessonCoverUrl 视频封面
|
|
|
* @param {type} lessonDesc 课程描述
|
|
@@ -28,6 +30,7 @@ interface UserType {
|
|
|
id?: number
|
|
|
buyNum?: number
|
|
|
payType?: string
|
|
|
+ type?: string
|
|
|
lessonPrice: number
|
|
|
lessonNum?: number
|
|
|
lessonDesc?: string
|
|
@@ -153,7 +156,17 @@ export default defineComponent({
|
|
|
</span>
|
|
|
{this.showBuy && (
|
|
|
<div class={styles.buyNum}>
|
|
|
- {this.userInfo.buyNum}人学习
|
|
|
+ {this.userInfo.type === 'live' ? (
|
|
|
+ <>
|
|
|
+ {this.userInfo.buyNum}人已
|
|
|
+ {this.userInfo.lessonPrice <= 0 &&
|
|
|
+ this.userInfo.auditVersion === 0
|
|
|
+ ? '领取'
|
|
|
+ : '购买'}
|
|
|
+ </>
|
|
|
+ ) : (
|
|
|
+ <>{this.userInfo.buyNum}人学习</>
|
|
|
+ )}
|
|
|
</div>
|
|
|
)}
|
|
|
</div>
|