mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-06 17:36:45 +08:00
feat:修改面授课下载
This commit is contained in:
@@ -14,8 +14,8 @@
|
||||
:key="i"
|
||||
class="cha"
|
||||
:style="{
|
||||
top: `${imgAttr.positions[i]?.top - (current === i ? 1 : 0)}px`,
|
||||
left: `${imgAttr.positions[i]?.left - (current === i ? 11 : 0)}px`,
|
||||
top: `${imgAttr?.positions[i]?.top - (current === i ? 1 : 0)}px`,
|
||||
left: `${imgAttr?.positions[i]?.left - (current === i ? 11 : 0)}px`,
|
||||
}"
|
||||
>
|
||||
<div
|
||||
@@ -152,10 +152,14 @@ const imageAttrs = {
|
||||
},
|
||||
};
|
||||
|
||||
const imgAttr = computed(
|
||||
() =>
|
||||
imageAttrs[Object.keys(imageAttrs).find((e) => props.img.includes(e))] || {}
|
||||
const imgAttr = computed(() => {
|
||||
if (props.img) {
|
||||
return (
|
||||
imageAttrs[Object.keys(imageAttrs).find((e) => props.img.includes(e))] ||
|
||||
{}
|
||||
);
|
||||
}
|
||||
});
|
||||
const imgAttrindex = computed(
|
||||
() => {
|
||||
// console.log("props.img.includes1", props.img);
|
||||
|
||||
@@ -420,16 +420,11 @@ const handleClick = (tab, event) => {
|
||||
const download = (url) => {
|
||||
console.log(
|
||||
"url2",
|
||||
window.location.protocol +
|
||||
import.meta.env.VITE_BOE_API_URL +
|
||||
import.meta.env.VITE_FILE_PATH +
|
||||
url
|
||||
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url
|
||||
);
|
||||
window.open(
|
||||
window.location.protocol +
|
||||
import.meta.env.VITE_BOE_API_URL +
|
||||
import.meta.env.VITE_FILE_PATH +
|
||||
url
|
||||
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url,
|
||||
"_top"
|
||||
);
|
||||
};
|
||||
const downloads = (url) => {
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
</el-tab-pane> -->
|
||||
<el-tab-pane label="材料下载" name="third">
|
||||
<div
|
||||
v-if="!data.planDto?.attach"
|
||||
v-if="!data.offcourseDto?.attach"
|
||||
style="
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
@@ -99,7 +99,7 @@
|
||||
</div>
|
||||
<div v-else>
|
||||
<div
|
||||
v-for="(el, index) in formateArr(data.planDto.attach)"
|
||||
v-for="(el, index) in formateArr(data.offcourseDto.attach)"
|
||||
:key="index"
|
||||
class="enclosure"
|
||||
:style="{ borderBottom: '1px solid rgba(56, 125, 247, 0.2)' }"
|
||||
@@ -182,16 +182,11 @@ const handleClick = (tab, event) => {
|
||||
const download = (url) => {
|
||||
console.log(
|
||||
"url2",
|
||||
window.location.protocol +
|
||||
import.meta.env.VITE_BOE_API_URL +
|
||||
import.meta.env.VITE_FILE_PATH +
|
||||
url
|
||||
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url
|
||||
);
|
||||
window.open(
|
||||
window.location.protocol +
|
||||
import.meta.env.VITE_BOE_API_URL +
|
||||
import.meta.env.VITE_FILE_PATH +
|
||||
url
|
||||
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url,
|
||||
"_top"
|
||||
);
|
||||
};
|
||||
const downloads = (url) => {
|
||||
|
||||
@@ -186,16 +186,11 @@ const handleClick = (tab, event) => {
|
||||
const download = (url) => {
|
||||
console.log(
|
||||
"url2",
|
||||
window.location.protocol +
|
||||
import.meta.env.VITE_BOE_API_URL +
|
||||
import.meta.env.VITE_FILE_PATH +
|
||||
url
|
||||
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url
|
||||
);
|
||||
window.open(
|
||||
window.location.protocol +
|
||||
import.meta.env.VITE_BOE_API_URL +
|
||||
import.meta.env.VITE_FILE_PATH +
|
||||
url
|
||||
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url,
|
||||
"_top"
|
||||
);
|
||||
};
|
||||
const downloads = (url) => {
|
||||
|
||||
@@ -195,16 +195,11 @@ const handleClick = (tab, event) => {
|
||||
const download = (url) => {
|
||||
console.log(
|
||||
"url2",
|
||||
window.location.protocol +
|
||||
import.meta.env.VITE_BOE_API_URL +
|
||||
import.meta.env.VITE_FILE_PATH +
|
||||
url
|
||||
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url
|
||||
);
|
||||
window.open(
|
||||
window.location.protocol +
|
||||
import.meta.env.VITE_BOE_API_URL +
|
||||
import.meta.env.VITE_FILE_PATH +
|
||||
url
|
||||
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url,
|
||||
"_top"
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: lixg lixg@dongwu-inc.com
|
||||
* @Date: 2023-01-13 11:42:48
|
||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||
* @LastEditTime: 2023-03-03 20:16:42
|
||||
* @LastEditTime: 2023-03-04 10:42:36
|
||||
* @FilePath: /stu_h5/src/views/filestorag/fileStorag.vue
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
-->
|
||||
@@ -109,17 +109,12 @@ const fileList = computed(() =>
|
||||
//下载
|
||||
function downloadFile(url) {
|
||||
console.log(
|
||||
"url2",
|
||||
window.location.protocol +
|
||||
import.meta.env.VITE_BOE_API_URL +
|
||||
import.meta.env.VITE_FILE_PATH +
|
||||
url
|
||||
"url222",
|
||||
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url
|
||||
);
|
||||
window.open(
|
||||
window.location.protocol +
|
||||
import.meta.env.VITE_BOE_API_URL +
|
||||
import.meta.env.VITE_FILE_PATH +
|
||||
url
|
||||
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url,
|
||||
"_top"
|
||||
);
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user