lex 2 سال پیش
والد
کامیت
8d2ab9ac04
2فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 1 0
      src/student/video-class/video-detail.tsx
  2. 3 2
      src/views/order-detail/order-video/index.tsx

+ 1 - 0
src/student/video-class/video-detail.tsx

@@ -101,6 +101,7 @@ export default defineComponent({
             teacherName: userInfo.username || `游客${userInfo.teacherId || ''}`,
             teacherId: userInfo.teacherId,
             avatar: userInfo.headUrl,
+            relationType: this.userInfo.relationType,
             courseInfo: this.detailList,
             recomUserId: this.recomUserId
           }

+ 3 - 2
src/views/order-detail/order-video/index.tsx

@@ -25,7 +25,8 @@ export default defineComponent({
             info.relationType === 'ALBUM' && albumList.push(info)
           })
       })
-      return [...albumList]
+      console.log(this.item)
+      return this.item.relationType === 'GIFT' ? [...albumList] : []
     },
     music() {
       const courseInfo = this.item.courseInfo || []
@@ -36,7 +37,7 @@ export default defineComponent({
             info.relationType === 'MUSIC' && albumList.push(info)
           })
       })
-      return [...albumList]
+      return this.item.relationType === 'GIFT' ? [...albumList] : []
     }
   },
   render() {