提交 322a026c authored 作者: matian's avatar matian

修改资料下载

上级 59ac1ca3
<template> <template>
<app-frame :data="frameParams" :class="isMobile ? 'is-h5' : 'is-pc'"> <app-frame :data="frameParams" :class="isMobile ? 'is-h5' : 'is-pc'">
<img class="img" src="https://webapp-pub.ezijing.com/project/marywood-plus/data-download-banner.png" />
<div class="dataList"> <div class="dataList">
<a target="_blank" :href="item.url" v-for="(item, index) in fileList" :key="index"> <a target="_blank" :href="item.url" v-for="(item, index) in fileList" :key="index">
<div class="item" @click="download($event, item)"> <div class="item" @click="download($event, item)">
<img :src="item.icon" /> <img class="item_top" src="https://webapp-pub.ezijing.com/project/sit-plus/download_bg1.png" alt="" />
<p class="doc">{{ item.name }}</p> <div class="doc">{{ item.name }}</div>
<!-- <p class="p1">最新更新</p>
<p class="p2">下载</p> -->
</div> </div>
</a> </a>
</div> </div>
...@@ -77,84 +74,69 @@ export default { ...@@ -77,84 +74,69 @@ export default {
.dataList { .dataList {
width: 900px; width: 900px;
display: flex; display: flex;
justify-content: flex-start; justify-content: center;
align-items: flex-start; align-items: flex-start;
flex-wrap: wrap; flex-wrap: wrap;
margin-left: 50px; margin-left: 50px;
padding-bottom: 50px; padding: 96px 0 50px 0;
.item { .item {
flex: 1; width: 336px;
width: 900px; height: 488px;
height: 100px; opacity: 1;
border-radius: 10px;
margin-right: 15px;
margin-top: 50px;
display: flex; display: flex;
justify-content: center; justify-content: flex-start;
align-items: center; align-items: center;
flex-direction: column; flex-direction: column;
background: #f9f8f8;
cursor: pointer; cursor: pointer;
background: #f6f6f6;
box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.38);
.item_top {
width: 100%;
height: 348px;
}
.doc { .doc {
font-size: 16px; width: 100%;
height: 140px;
font-size: 22px;
font-weight: 400; font-weight: 400;
line-height: 34px; line-height: 141px;
text-align: center;
color: #333333; color: #333333;
} }
.p1 {
font-size: 14px;
font-weight: 400;
line-height: 34px;
color: #999999;
}
.p2 {
font-size: 16px;
font-weight: 500;
line-height: 34px;
color: #aa1941;
}
} }
} }
} }
.is-h5 { .is-h5 {
.img {
width: 100%;
height: 100%;
}
.dataList { .dataList {
// width: 4rem; padding: 0.48rem 0 0.25rem 0;
// display: flex; display: flex;
// justify-content: center; justify-content: center;
// align-items: center;
// flex-wrap: wrap;
padding-bottom: 0.43rem;
.item { .item {
// flex: 1; width: 1.68rem;
width: 2.12rem; height: 2.45rem;
height: 1rem; opacity: 1;
margin: 0.2rem auto;
display: flex; display: flex;
justify-content: center; justify-content: flex-start;
align-items: center; align-items: center;
flex-direction: column; flex-direction: column;
// margin-right: 0.15rem; background: #f6f6f6;
background: #f9f8f8; cursor: pointer;
box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.38);
.item_top {
width: 100%;
height: 1.74rem;
}
.doc { .doc {
width: 100%;
height: 0.7rem;
font-size: 0.14rem; font-size: 0.14rem;
font-weight: 400; font-weight: 400;
line-height: 0.7rem;
text-align: center;
color: #333333; color: #333333;
} }
.p1 {
font-size: 0.12rem;
font-weight: 400;
color: #999999;
}
.p2 {
font-size: 0.14rem;
font-weight: 500;
color: #aa1941;
}
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论