提交 897bf3b5 authored 作者: 王鹏飞's avatar 王鹏飞

feat: 将默认图片链接更新为相对路径

上级 9cc6d9b6
...@@ -23,7 +23,6 @@ const bytesToSize = (bytes: number) => { ...@@ -23,7 +23,6 @@ const bytesToSize = (bytes: number) => {
<div class="card-item"> <div class="card-item">
<div class="card-item-top"> <div class="card-item-top">
<!-- <div class="title">基金产品(中)(初级)</div> --> <!-- <div class="title">基金产品(中)(初级)</div> -->
<!-- <img src="http://iph.href.lu/265x170" /> -->
<div class="title">{{ props.data.name }}</div> <div class="title">{{ props.data.name }}</div>
<div class="item-info"> <div class="item-info">
<div class="info">文件大小:{{ bytesToSize(parseInt(props.data.size)) }}</div> <div class="info">文件大小:{{ bytesToSize(parseInt(props.data.size)) }}</div>
......
...@@ -13,7 +13,7 @@ const appList = ref() ...@@ -13,7 +13,7 @@ const appList = ref()
const levelList = computed(() => { const levelList = computed(() => {
return store.getMapValuesByKey('teacher_level') return store.getMapValuesByKey('teacher_level')
}) })
const imgDefault = 'https://cube.elemecdn.com/9/c2/f0ee8a3c7c9638a54940382568c9dpng.png' const imgDefault = '/default.jpg'
const courseList = ref([]) const courseList = ref([])
const id = route.query.id as string const id = route.query.id as string
const title = route.query.title as string const title = route.query.title as string
......
...@@ -71,7 +71,7 @@ const handleDetail = (row: any) => { ...@@ -71,7 +71,7 @@ const handleDetail = (row: any) => {
} }
}) })
} }
const imgDefault = ref('https://cube.elemecdn.com/9/c2/f0ee8a3c7c9638a54940382568c9dpng.png') const imgDefault = ref('/default.jpg')
</script> </script>
<template> <template>
......
...@@ -73,7 +73,7 @@ const handlePrimary = () => { ...@@ -73,7 +73,7 @@ const handlePrimary = () => {
<AppList v-bind="listOptions" ref="appList"> <AppList v-bind="listOptions" ref="appList">
<template #table-avatar="{ row }"> <template #table-avatar="{ row }">
<img <img
:src="row.avatar || 'https://cube.elemecdn.com/9/c2/f0ee8a3c7c9638a54940382568c9dpng.png'" :src="row.avatar || '/default.jpg'"
style="width: 50px; height: 50px; display: block; margin: 0 auto" style="width: 50px; height: 50px; display: block; margin: 0 auto"
/> />
</template> </template>
......
...@@ -56,7 +56,7 @@ const electiveType = computed<ICourseList[]>(() => { ...@@ -56,7 +56,7 @@ const electiveType = computed<ICourseList[]>(() => {
}) })
// 下拉选择tree 视频分类 // 下拉选择tree 视频分类
let { list: selectTree }: any = useGetCategoryList() const { list: selectTree }: any = useGetCategoryList()
const defaultProps = { children: 'children', label: 'category_name', value: 'id' } const defaultProps = { children: 'children', label: 'category_name', value: 'id' }
// form // form
...@@ -348,7 +348,7 @@ const handleTextbook = (val: any) => { ...@@ -348,7 +348,7 @@ const handleTextbook = (val: any) => {
width: 430px; width: 430px;
height: 270px; height: 270px;
background-size: cover; background-size: cover;
background-image: url('https://iph.href.lu/430x270'); background-image: url('/center_resource/course_default.png');
margin-right: 20px; margin-right: 20px;
position: relative; position: relative;
.upload-btn { .upload-btn {
......
...@@ -165,7 +165,7 @@ const statusStyle = (item: any) => { ...@@ -165,7 +165,7 @@ const statusStyle = (item: any) => {
<template v-if="props.data.teachers && props.data.teachers.length > 0"> <template v-if="props.data.teachers && props.data.teachers.length > 0">
<div v-for="item in props.data.teachers" :key="item.id"> <div v-for="item in props.data.teachers" :key="item.id">
<div class="item1"> <div class="item1">
<img class="avatar" src="https://cube.elemecdn.com/9/c2/f0ee8a3c7c9638a54940382568c9dpng.png" /> <img class="avatar" src="/default.jpg" />
<div class="name">{{ item.name }}</div> <div class="name">{{ item.name }}</div>
</div> </div>
</div> </div>
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论