分辨率适配

This commit is contained in:
wuhongjian 2022-06-14 11:47:57 +08:00
parent f64f44172e
commit b5e820c639
4 changed files with 152 additions and 152 deletions

View File

@ -24,8 +24,8 @@
version="1.1" version="1.1"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
p-id="2069" p-id="2069"
width="40" width="0.4rem"
height="40" height="0.4rem"
@click="goToSgc" @click="goToSgc"
> >
<path <path
@ -36,7 +36,7 @@
</svg> </svg>
<!-- <a-avatar shape="square" size="large" /> --> <!-- <a-avatar shape="square" size="large" /> -->
</a-badge> </a-badge>
<a-badge :count="mynoticeNum" style="margin-left: 20px"> <a-badge :count="mynoticeNum" style="margin-left: .2rem">
<svg <svg
t="1654051054113" t="1654051054113"
class="icon2" class="icon2"
@ -44,8 +44,8 @@
version="1.1" version="1.1"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
p-id="2187" p-id="2187"
width="35" width="0.35rem"
height="35" height="0.35rem"
> >
<path <path
d="M544 161.536a330.666667 330.666667 0 0 1 298.666667 329.130667h-0.341334c0.213333 1.493333 0.341333 2.986667 0.341334 4.565333v219.434667h39.68a32 32 0 0 1 0 64h-212.053334a160 160 0 0 1-316.586666 0H141.909333a32 32 0 1 1 0-64h39.424v-219.434667c0-1.578667 0.128-3.072 0.341334-4.565333H181.333333a330.666667 330.666667 0 0 1 298.666667-329.130667V128a32 32 0 1 1 64 0v33.536z m-298.666667 553.130667h533.333334v-219.434667c0-1.578667 0.128-3.072 0.341333-4.565333h-0.341333a266.666667 266.666667 0 1 0-533.333334 0h-0.341333c0.213333 1.493333 0.341333 2.986667 0.341333 4.565333v219.434667z m359.765334 64H418.901333a96 96 0 0 0 186.197334 0z" d="M544 161.536a330.666667 330.666667 0 0 1 298.666667 329.130667h-0.341334c0.213333 1.493333 0.341333 2.986667 0.341334 4.565333v219.434667h39.68a32 32 0 0 1 0 64h-212.053334a160 160 0 0 1-316.586666 0H141.909333a32 32 0 1 1 0-64h39.424v-219.434667c0-1.578667 0.128-3.072 0.341334-4.565333H181.333333a330.666667 330.666667 0 0 1 298.666667-329.130667V128a32 32 0 1 1 64 0v33.536z m-298.666667 553.130667h533.333334v-219.434667c0-1.578667 0.128-3.072 0.341333-4.565333h-0.341333a266.666667 266.666667 0 1 0-533.333334 0h-0.341333c0.213333 1.493333 0.341333 2.986667 0.341333 4.565333v219.434667z m359.765334 64H418.901333a96 96 0 0 0 186.197334 0z"
@ -253,29 +253,29 @@
src: url('~@/assets/newHome/font/header-typeface.ttf'); src: url('~@/assets/newHome/font/header-typeface.ttf');
} }
.home-header { .home-header {
height: 64px; height: .64rem;
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
padding: 0 190px; padding: 0 1.9rem;
background-color: rgba(0, 0, 25, 0.7); background-color: rgba(0, 0, 25, 0.7);
position: fixed; position: fixed;
z-index: 1000; z-index: 1000;
top: 0; top: 0;
div { div {
color: #fff; color: #fff;
font-size: 16px; font-size: .16rem;
} }
.name { .name {
font-size: 22px; font-size: .22rem;
font-family: header-typeface; font-family: header-typeface;
margin-right: 20px; margin-right: .2rem;
} }
.nav { .nav {
width: 120px; width: 1.2rem;
height: 64px; height: .64rem;
line-height: 64px; line-height: .64rem;
text-align: center; text-align: center;
} }
.nav:hover { .nav:hover {
@ -288,32 +288,32 @@
color: #fff !important; color: #fff !important;
} }
.info { .info {
width: 200px; width: 2rem;
margin-left: 20px; margin-left: .2rem;
display: flex; display: flex;
justify-content: center; justify-content: center;
.img { .img {
width: 30px; width: .3rem;
height: 30px; height: .3rem;
border-radius: 10px; border-radius: .1rem;
background: url('~@/assets/newHome/user.png') no-repeat; background: url('~@/assets/newHome/user.png') no-repeat;
background-size: 100%; background-size: 100%;
} }
span { span {
height: 30px; height: .3rem;
line-height: 30px; line-height: .3rem;
margin-left: 8px; margin-left: .08rem;
margin-right: 6px; margin-right: .06rem;
font-size: 16px; font-size: .16rem;
} }
.name { .name {
max-width: 75px; max-width: .75rem;
overflow: hidden; overflow: hidden;
} }
.out { .out {
cursor: pointer; cursor: pointer;
padding: 0 16px; padding: 0 .16rem;
border-left: 1px solid #666; border-left: .01rem solid #666;
} }
} }
} }
@ -355,41 +355,41 @@
} }
} }
.mynotice { .mynotice {
width: 250px; width: 2.5rem;
height: 300px; height: 3rem;
background: #eee; background: #eee;
border-radius: 5px; border-radius: .05rem;
position: absolute; position: absolute;
top: 45px; top: .45rem;
right: 310px; right: 3.1rem;
overflow-y: scroll; overflow-y: scroll;
} }
.mynotice::-webkit-scrollbar { .mynotice::-webkit-scrollbar {
display: none; display: none;
} }
:deep(.ant-list-item) { :deep(.ant-list-item) {
border-bottom: 1px solid #ccc; border-bottom: .01rem solid #ccc;
} }
:deep(.ant-list-item-meta-title) { :deep(.ant-list-item-meta-title) {
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
padding: 0 5px; padding: 0 .05rem;
a { a {
width: 150px; width: 1.5rem;
// ... // ...
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
button { button {
width: 70px; width: .7rem;
height: 25px; height: .25rem;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
span { span {
font-size: 10px; font-size: .1rem;
} }
} }
} }

View File

@ -116,28 +116,28 @@
src: url('~@/assets/newHome/font/header-typeface.ttf'); src: url('~@/assets/newHome/font/header-typeface.ttf');
} }
.home-header { .home-header {
height: 64px; height: .64rem;
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
padding: 0 210px; padding: 0 2.1rem;
background-color: rgba(0, 0, 25, 0.7); background-color: rgba(0, 0, 25, 0.7);
position: fixed; position: fixed;
z-index: 1000; z-index: 1000;
div { div {
color: #fff; color: #fff;
font-size: 16px; font-size: .16rem;
} }
.name { .name {
font-size: 22px; font-size: .22rem;
font-family: header-typeface; font-family: header-typeface;
margin-right: 20px; margin-right: .2rem;
} }
.nav { .nav {
width: 144px; width: 1.44rem;
height: 64px; height: .64rem;
line-height: 64px; line-height: .64rem;
text-align: center; text-align: center;
} }
.nav:hover { .nav:hover {
@ -150,32 +150,32 @@
color: #fff !important; color: #fff !important;
} }
.info { .info {
width: 200px; width: 2rem;
margin-left: 20px; margin-left: .2rem;
display: flex; display: flex;
justify-content: center; justify-content: center;
.img { .img {
width: 30px; width: .3rem;
height: 30px; height: .3rem;
border-radius: 10px; border-radius: .1rem;
background: url('~@/assets/newHome/user.png') no-repeat; background: url('~@/assets/newHome/user.png') no-repeat;
background-size: 100%; background-size: 100%;
} }
span { span {
height: 30px; height: .3rem;
line-height: 30px; line-height: .3rem;
margin-left: 8px; margin-left: .08rem;
margin-right: 6px; margin-right: .06rem;
font-size: 16px; font-size: .16rem;
} }
.name { .name {
max-width: 75px; max-width: .75rem;
overflow: hidden; overflow: hidden;
} }
.out { .out {
cursor: pointer; cursor: pointer;
padding: 0 16px; padding: 0 .16rem;
border-left: 1px solid #666; border-left: .01rem solid #666;
} }
} }
} }

View File

@ -114,7 +114,7 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
background: url('~@/assets/newHome/recommendation-ability-bg.png') no-repeat; background: url('~@/assets/newHome/recommendation-ability-bg.png') no-repeat;
background-size: contain; background-size: cover;
.recommendation-ability-son { .recommendation-ability-son {
width: 13rem; width: 13rem;
left: 50%; left: 50%;

View File

@ -245,13 +245,13 @@
position: fixed; position: fixed;
left: 50%; left: 50%;
top: 50%; top: 50%;
margin-left: -260px; margin-left: -2.6rem;
margin-top: -144px; margin-top: -1.44rem;
font-size: 14px; font-size: .14rem;
font-weight: 500; font-weight: 500;
.ant-radio-inner { .ant-radio-inner {
height: 16px; height: .16rem;
width: 16px; width: .16rem;
} }
.ant-radio-inner::after { .ant-radio-inner::after {
background-color: unset; background-color: unset;
@ -260,24 +260,24 @@
background-position: center; background-position: center;
} }
.ant-modal-content { .ant-modal-content {
border-radius: 10px; border-radius: .1rem;
.ability-to-type, .ability-to-type,
.component-type { .component-type {
display: flex; display: flex;
margin-top: 20px; margin-top: .2rem;
.title { .title {
white-space: nowrap; white-space: nowrap;
margin-right: 20px; margin-right: .2rem;
display: flex; display: flex;
align-items: center; align-items: center;
height: 26px; height: .26rem;
} }
.content { .content {
width: 100%; width: 100%;
.ant-radio-group { .ant-radio-group {
display: grid; display: grid;
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr;
grid-gap: 15px; grid-gap: .15rem;
} }
} }
} }
@ -286,15 +286,15 @@
display: grid; display: grid;
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr;
div { div {
margin-right: 15px; margin-right: .15rem;
cursor: pointer; cursor: pointer;
font-size: 14px; font-size: .14rem;
width: 90px; width: .9rem;
height: 26px; height: .26rem;
border-radius: 13px; border-radius: .13rem;
color: #333333; color: #333333;
background: #f5f5f5; background: #f5f5f5;
border: 1px #cccccc solid; border: .01rem #cccccc solid;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
@ -314,19 +314,19 @@
.ant-modal-footer { .ant-modal-footer {
border: 0; border: 0;
text-align: center; text-align: center;
padding-bottom: 20px; padding-bottom: .2rem;
button { button {
margin-right: 20px; margin-right: .2rem;
border-radius: 8px; border-radius: .08rem;
} }
} }
.showBg { .showBg {
height: 24px; height: .24rem;
width: 24px; width: .24rem;
background: url('~@/assets/home/shenqing.png') no-repeat; background: url('~@/assets/home/shenqing.png') no-repeat;
background-size: cover; background-size: cover;
background-position: center; background-position: center;
margin-right: 10px; margin-right: .1rem;
} }
} }
</style> </style>
@ -335,75 +335,75 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
padding-bottom: 80px; padding-bottom: .8rem;
padding-top: 78px; padding-top: .78rem;
.title { .title {
font-size: 30px; font-size: .3rem;
font-family: 'convergence-typeface'; font-family: 'convergence-typeface';
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
margin-bottom: 32px; margin-bottom: .32rem;
.title-son { .title-son {
width: 34px; width: .34rem;
height: 3px; height: .03rem;
background: #0058e1; background: #0058e1;
border-radius: 1px; border-radius: .01rem;
margin-top: 18px; margin-top: .18rem;
} }
} }
.content { .content {
width: 1300px; width: 13rem;
height: 480px; height: 4.8rem;
display: flex; display: flex;
padding-left: 20px; padding-left: .2rem;
.content-empty { .content-empty {
height: 220px; height: 2.2rem;
padding-top: 49px; padding-top: .49rem;
} }
} }
.content > div { .content > div {
background: #f3f5f9; background: #f3f5f9;
border: #eaedf2 1px solid; border: #eaedf2 .01rem solid;
} }
.content > div:hover { .content > div:hover {
border-radius: 2px; border-radius: .02rem;
border: 1px solid #0058e1; border: .01rem solid #0058e1;
box-shadow: 0px 8px 20px rgba(0, 88, 225, 0.3); box-shadow: 0rem .08rem .2rem rgba(0, 88, 225, 0.3);
} }
.content-miaoshui { .content-miaoshui {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding-top: 20px; padding-top: .2rem;
align-items: center; align-items: center;
padding-bottom: 10px; padding-bottom: .1rem;
.content-miaoshui-title { .content-miaoshui-title {
padding-left: 5px; padding-left: .05rem;
padding-right: 5px; padding-right: .05rem;
font-size: 18px; font-size: .18rem;
font-weight: bold; font-weight: bold;
height: 30px; height: .3rem;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 1; -webkit-line-clamp: 1;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
margin-bottom: 12px; margin-bottom: .12rem;
word-break: break-all; word-break: break-all;
} }
.content-miaoshui-content { .content-miaoshui-content {
height: 120px; height: 1.2rem;
width: 298px; width: 2.98rem;
margin: 12px 10px 10px 10px; margin: .12rem .1rem .1rem .1rem;
font-family: text-typeface; font-family: text-typeface;
font-size: 14px; font-size: .14rem;
line-height: 20px; line-height: .2rem;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 6; -webkit-line-clamp: 6;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
margin-bottom: 12px; margin-bottom: .12rem;
word-break: break-all; word-break: break-all;
cursor: pointer; cursor: pointer;
} }
@ -413,18 +413,18 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: bottom; align-items: bottom;
margin-right: 16px; margin-right: .16rem;
margin-left: 16px; margin-left: .16rem;
div:first-child { div:first-child {
margin-left: 16px; margin-left: .16rem;
} }
} }
.shijain-content-bootom { .shijain-content-bootom {
margin-right: 16px; margin-right: .16rem;
width: 80px; width: .8rem;
height: 24px; height: .24rem;
text-align: center; text-align: center;
border: 1px solid #0058e1; border: .01rem solid #0058e1;
cursor: pointer; cursor: pointer;
color: #0058e1; color: #0058e1;
} }
@ -432,102 +432,102 @@
background: rgba(0, 88, 225, 0.3); background: rgba(0, 88, 225, 0.3);
} }
.content > div > div { .content > div > div {
height: 240px; height: 2.4rem;
width: 100%; width: 100%;
} }
.one { .one {
height: 240px; height: 2.4rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
background-size: 100%; background-size: 100%;
padding-top: 15px; padding-top: .15rem;
.shijain { .shijain {
margin-top: 20px; margin-top: .2rem;
} }
:deep(.ant-imag) { :deep(.ant-imag) {
text-align: center; text-align: center;
} }
:deep(.ant-image-img) { :deep(.ant-image-img) {
height: 210px; height: 2.1rem;
text-align: center; text-align: center;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 100%; width: 100%;
max-width: 298px; max-width: 2.98rem;
} }
} }
.bottom { .bottom {
height: 24px; height: .24rem;
font-size: 16px; font-size: .16rem;
width: 100px; width: 1rem;
margin-top: 40px; margin-top: .4rem;
cursor: pointer; cursor: pointer;
text-align: center; text-align: center;
color: #000000; color: #000000;
.gengduo { .gengduo {
display: inline-block; display: inline-block;
margin-left: 4px; margin-left: .04rem;
width: 10px; width: .1rem;
height: 10px; height: .1rem;
background: url('~@/assets/newHome/gd2.png') no-repeat; background: url('~@/assets/newHome/gd2.png') no-repeat;
background-position: center; background-position: center;
} }
} }
.bottom:hover { .bottom:hover {
border-radius: 2px; border-radius: .02rem;
background-color: rgba(1, 102, 255, 0.1); background-color: rgba(1, 102, 255, 0.1);
} }
.content > div { .content > div {
height: 480px; height: 4.8rem;
width: 310px; width: 3.1rem;
margin-right: 20px; margin-right: .2rem;
} }
.fixedmount { .fixedmount {
height: 150px; height: 1.5rem;
display: flex; display: flex;
position: fixed; position: fixed;
bottom: 256px; bottom: 2.56rem;
right: 190px; right: 1.9rem;
z-index: 10; z-index: 10;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
} }
.fixedmount div { .fixedmount div {
width: 70px; width: .7rem;
height: 70px; height: .7rem;
border-radius: 4px; border-radius: .04rem;
border: 1px #94aac9 solid; border: .01rem #94aac9 solid;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
// justify-content: center; // justify-content: center;
align-items: center; align-items: center;
padding-top: 13px; padding-top: .13rem;
position: relative; position: relative;
cursor: pointer; cursor: pointer;
background: #e3edfc; background: #e3edfc;
} }
.fixedmount div p:nth-child(2) { .fixedmount div p:nth-child(2) {
position: absolute; position: absolute;
bottom: 0px; bottom: 0rem;
height: 14px; height: .14rem;
font-size: 14px; font-size: .14rem;
line-height: 14px; line-height: .14rem;
color: #000000; color: #000000;
// margin-top: 8px; // margin-top: .08rem;
} }
.fixedmount div:nth-child(1) p:nth-child(1) { .fixedmount div:nth-child(1) p:nth-child(1) {
height: 24px; height: .24rem;
width: 24px; width: .24rem;
background: url('~@/assets/home/shenqing.png') no-repeat; background: url('~@/assets/home/shenqing.png') no-repeat;
background-size: cover; background-size: cover;
background-position: center; background-position: center;
} }
.fixedmount div:nth-child(2) p:nth-child(1) { .fixedmount div:nth-child(2) p:nth-child(1) {
height: 24px; height: .24rem;
width: 24px; width: .24rem;
background: url('~@/assets/home/shangjia.png') no-repeat; background: url('~@/assets/home/shangjia.png') no-repeat;
} }
} }