|
@@ -1,30 +1,26 @@
|
|
|
<script setup>
|
|
|
import request from '~/utils/request';
|
|
|
+import { getFullUrl } from '~/utils/helper';
|
|
|
import commonHeader from "@/components/header/index.vue";
|
|
|
-import img_lczs1 from '~/assets/zbktssys/1.png';
|
|
|
-import img_lczs2 from '~/assets/zbktssys/2.png';
|
|
|
-import img_lczs3 from '~/assets/zbktssys/3.png';
|
|
|
-import img_lczs from '~/assets/zbktssys/bar.png';
|
|
|
-import img_tx from '~/assets/zbktssys/tx.png';
|
|
|
-
|
|
|
|
|
|
// const data_zy = $ref([
|
|
|
// { img: img_lczs1, title: '走进生肖文化——寅虎卯兔', bfl: 100, desc: '领略生肖传奇,品味传统文化!', nj: '四年级', xk: '美术', ls: '尚老师', tx: img_tx, zt: '1' },
|
|
|
// { img: img_lczs2, title: '走进生肖文化——寅虎卯兔', bfl: 100, desc: '领略生肖传奇,品味传统文化!', nj: '四年级', xk: '美术', ls: '尚老师', tx: img_tx, zt: '' },
|
|
|
// { img: img_lczs3, title: '走进生肖文化——寅虎卯兔', bfl: 100, desc: '领略生肖传奇,品味传统文化!', nj: '四年级', xk: '美术', ls: '尚老师', tx: img_tx, zt: '' },
|
|
|
// ])
|
|
|
+const props = defineProps({
|
|
|
+ id: String
|
|
|
+})
|
|
|
|
|
|
-
|
|
|
-function hrefTo(href) {
|
|
|
- window.open(href, '_blank')
|
|
|
-}
|
|
|
-
|
|
|
-let detailInfo = $ref({
|
|
|
- file: false
|
|
|
+let detailInfo = $ref({})
|
|
|
+request({
|
|
|
+ url: '/kzkt/ssyskc/detail',
|
|
|
+ data: {
|
|
|
+ ks_id: props.id
|
|
|
+ }
|
|
|
+}).then(res => {
|
|
|
+ detailInfo = res.data.one_info
|
|
|
})
|
|
|
-// request({
|
|
|
-// url:''
|
|
|
-// })
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
@@ -53,9 +49,9 @@ let detailInfo = $ref({
|
|
|
|
|
|
<div class="w-full h-730px mb-4 bg-light-500">
|
|
|
<!-- <video class="w-full h-full" src=""></video> -->
|
|
|
- <template v-if="detailInfo.file"> <iframe
|
|
|
- :src="`https://view.officeapps.live.com/op/view.aspx?src=${detailInfo.file}`" width='100%' height='100%'
|
|
|
- frameborder='0'></iframe>
|
|
|
+ <template v-if="detailInfo.ks_kj">
|
|
|
+ <iframe :src="`https://view.officeapps.live.com/op/view.aspx?src=${getFullUrl(detailInfo.ks_kj)}`"
|
|
|
+ width='100%' height='100%' frameborder='0'></iframe>
|
|
|
</template>
|
|
|
<el-result v-else icon="error" title="错误信息" sub-title="文件格式不支持">
|
|
|
</el-result>
|