|
...
|
...
|
@@ -86,13 +86,19 @@ const ProductionDetail: React.FC = () => { |
|
86
|
86
|
}}}
|
|
87
|
87
|
/>
|
|
88
|
88
|
{
|
|
89
|
|
- filePathItem?.type === 'mp4' ? <div className={'production-detail-video-box'}>
|
|
90
|
|
- <VideoPlay
|
|
91
|
|
- key={filePathItem?.url || ''}
|
|
92
|
|
- url={filePathItem?.url || ''}
|
|
93
|
|
- className={'production-detail-video'}
|
|
94
|
|
- />
|
|
95
|
|
- </div> : filePathItem?.type === 'pdf' ? <PdfPreview url={filePathItem?.url || ''}/> : ''
|
|
|
89
|
+ filePathItem ? sxPreViewList?.map((item: any) => {
|
|
|
90
|
+ return <div key={item?.url} className={`production-detail-item ${item?.url !== filePathItem?.url ? 'hidden' : ''}`}>
|
|
|
91
|
+ {
|
|
|
92
|
+ item?.type === 'mp4' ? <div className={'production-detail-video-box'}>
|
|
|
93
|
+ <VideoPlay
|
|
|
94
|
+ key={item?.url || ''}
|
|
|
95
|
+ url={item?.url || ''}
|
|
|
96
|
+ className={'production-detail-video'}
|
|
|
97
|
+ />
|
|
|
98
|
+ </div> : item?.type === 'pdf' ? <PdfPreview url={item?.url || ''}/> : ''
|
|
|
99
|
+ }
|
|
|
100
|
+ </div>
|
|
|
101
|
+ }) : ''
|
|
96
|
102
|
}
|
|
97
|
103
|
</div>
|
|
98
|
104
|
</div>
|
...
|
...
|
|