|  | @@ -107,6 +107,31 @@ export default defineComponent({
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    initVideo () {
 | 
	
		
			
				|  |  | +      const userInfo = this.userInfo
 | 
	
		
			
				|  |  | +      orderStatus.orderObject.orderType = 'VIDEO'
 | 
	
		
			
				|  |  | +      orderStatus.orderObject.orderName = '视频课购买'
 | 
	
		
			
				|  |  | +      orderStatus.orderObject.orderDesc = '视频课购买'
 | 
	
		
			
				|  |  | +      orderStatus.orderObject.actualPrice = userInfo.lessonPrice
 | 
	
		
			
				|  |  | +      orderStatus.orderObject.recomUserId = this.recomUserId
 | 
	
		
			
				|  |  | +      orderStatus.orderObject.orderNo = ''
 | 
	
		
			
				|  |  | +      orderStatus.orderObject.orderList = [
 | 
	
		
			
				|  |  | +        {
 | 
	
		
			
				|  |  | +          orderType: 'VIDEO',
 | 
	
		
			
				|  |  | +          goodsName: '视频课购买',
 | 
	
		
			
				|  |  | +          courseGroupId: userInfo.id,
 | 
	
		
			
				|  |  | +          courseGroupName: userInfo.lessonName,
 | 
	
		
			
				|  |  | +          coursePrice: userInfo.lessonPrice,
 | 
	
		
			
				|  |  | +          price: userInfo.lessonPrice,
 | 
	
		
			
				|  |  | +          teacherName: userInfo.username || `游客${userInfo.teacherId || ''}`,
 | 
	
		
			
				|  |  | +          teacherId: userInfo.teacherId,
 | 
	
		
			
				|  |  | +          avatar: userInfo.headUrl,
 | 
	
		
			
				|  |  | +          relationType: this.userInfo.relationType,
 | 
	
		
			
				|  |  | +          courseInfo: this.detailList,
 | 
	
		
			
				|  |  | +          recomUserId: this.recomUserId
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      ]
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      async onBuy() {
 | 
	
		
			
				|  |  |        try {
 | 
	
		
			
				|  |  |          if (this.userInfo.payType === 'VIP') {
 | 
	
	
		
			
				|  | @@ -131,6 +156,7 @@ export default defineComponent({
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          // 判断是否是0无订单
 | 
	
		
			
				|  |  |          if (userInfo.lessonPrice <= 0) {
 | 
	
		
			
				|  |  | +          this.initVideo()
 | 
	
		
			
				|  |  |            await onSubmitZero(() => {
 | 
	
		
			
				|  |  |              Dialog.alert({
 | 
	
		
			
				|  |  |                message: '领取成功',
 | 
	
	
		
			
				|  | @@ -170,28 +196,7 @@ export default defineComponent({
 | 
	
		
			
				|  |  |                this.cancelPayment(result.orderNo)
 | 
	
		
			
				|  |  |              })
 | 
	
		
			
				|  |  |          } else {
 | 
	
		
			
				|  |  | -          orderStatus.orderObject.orderType = 'VIDEO'
 | 
	
		
			
				|  |  | -          orderStatus.orderObject.orderName = '视频课购买'
 | 
	
		
			
				|  |  | -          orderStatus.orderObject.orderDesc = '视频课购买'
 | 
	
		
			
				|  |  | -          orderStatus.orderObject.actualPrice = userInfo.lessonPrice
 | 
	
		
			
				|  |  | -          orderStatus.orderObject.recomUserId = this.recomUserId
 | 
	
		
			
				|  |  | -          orderStatus.orderObject.orderNo = ''
 | 
	
		
			
				|  |  | -          orderStatus.orderObject.orderList = [
 | 
	
		
			
				|  |  | -            {
 | 
	
		
			
				|  |  | -              orderType: 'VIDEO',
 | 
	
		
			
				|  |  | -              goodsName: '视频课购买',
 | 
	
		
			
				|  |  | -              courseGroupId: userInfo.id,
 | 
	
		
			
				|  |  | -              courseGroupName: userInfo.lessonName,
 | 
	
		
			
				|  |  | -              coursePrice: userInfo.lessonPrice,
 | 
	
		
			
				|  |  | -              price: userInfo.lessonPrice,
 | 
	
		
			
				|  |  | -              teacherName: userInfo.username || `游客${userInfo.teacherId || ''}`,
 | 
	
		
			
				|  |  | -              teacherId: userInfo.teacherId,
 | 
	
		
			
				|  |  | -              avatar: userInfo.headUrl,
 | 
	
		
			
				|  |  | -              relationType: this.userInfo.relationType,
 | 
	
		
			
				|  |  | -              courseInfo: this.detailList,
 | 
	
		
			
				|  |  | -              recomUserId: this.recomUserId
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -          ]
 | 
	
		
			
				|  |  | +          this.initVideo()
 | 
	
		
			
				|  |  |            this.routerTo()
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        } catch {}
 |