|
@@ -3,26 +3,35 @@
|
|
|
<div class="top flex justify-between items-center w-full p-1">
|
|
|
<van-icon name="arrow-left" color="#fff" size="16" @click="onClickLeft" />
|
|
|
</div>
|
|
|
- <div class="look px-2" v-if="suffix!='doc' && suffix!='docx'">当前观看人数:{{detailInfo.kf_view_num}}</div>
|
|
|
+ <!-- <div class="look px-2" v-if="suffix!='doc' && suffix!='docx'">当前观看人数:{{detailInfo.kf_view_num}}</div>
|
|
|
+ <div class="look px-2" v-else @click="download">
|
|
|
+ <van-icon name="down" /> 点击下载
|
|
|
+ </div> -->
|
|
|
+ <div class="look px-2" v-if="detailInfo.file_allow_preview_h5==1">当前观看人数:{{detailInfo.kf_view_num}}</div>
|
|
|
<div class="look px-2" v-else @click="download">
|
|
|
<van-icon name="down" /> 点击下载
|
|
|
</div>
|
|
|
|
|
|
- <div v-if="suffix=='mp4'" class="videoDiv">
|
|
|
- <div class="aliPlayerShow" id="J_prismPlayer"></div>
|
|
|
- </div>
|
|
|
- <audio v-else-if="suffix=='mp3'" ref="urlResouce" controls :src="commonUrl">
|
|
|
- <source :src="commonUrl" type="audio/mp3">
|
|
|
- </audio>
|
|
|
- <div v-else-if="suffix=='pdf'" style="height: calc(100% - 60px);">
|
|
|
- <iframe :src="commonUrl" frameborder="0" width="100%" height="100%"></iframe>
|
|
|
- </div>
|
|
|
- <div v-else-if="suffix=='doc' || suffix=='docx'" style="height: 100px;line-height: 140px;text-align: center;font-size: 12px;color: #ccc;">
|
|
|
+ <div v-if="detailInfo.file_allow_preview_h5==2" style="height: 100px;line-height: 140px;text-align: center;font-size: 12px;color: #ccc;">
|
|
|
当前文件暂不支持预览
|
|
|
</div>
|
|
|
- <div v-else style="height: calc(100% - 60px);">
|
|
|
- <iframe :src="(detailInfo.file_preview || commonUrl)" frameborder="0" width="100%" height="100%"></iframe>
|
|
|
- </div>
|
|
|
+ <template v-else>
|
|
|
+ <div v-if="suffix=='mp4'" class="videoDiv">
|
|
|
+ <div class="aliPlayerShow" id="J_prismPlayer"></div>
|
|
|
+ </div>
|
|
|
+ <audio v-else-if="suffix=='mp3'" ref="urlResouce" controls :src="commonUrl">
|
|
|
+ <source :src="commonUrl" type="audio/mp3">
|
|
|
+ </audio>
|
|
|
+ <div v-else-if="suffix=='pdf'" style="height: calc(100% - 60px);">
|
|
|
+ <iframe :src="commonUrl" frameborder="0" width="100%" height="100%"></iframe>
|
|
|
+ </div>
|
|
|
+ <div v-else-if="suffix=='doc' || suffix=='docx'" style="height: 100px;line-height: 140px;text-align: center;font-size: 12px;color: #ccc;">
|
|
|
+ 当前文件暂不支持预览
|
|
|
+ </div>
|
|
|
+ <div v-else style="height: calc(100% - 60px);">
|
|
|
+ <iframe :src="(detailInfo.file_preview || commonUrl)" frameborder="0" width="100%" height="100%"></iframe>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
|
|
|
<div class="flex justify-between items-center px-3 mt-2">
|
|
|
<div style="font-size: 15px;">{{detailInfo.kf_name}}</div>
|