Commit 34e5c671 authored by 张瑶's avatar 张瑶

fix: 新产品介绍

parent f04e3d61
Pipeline #70624 passed with stages
import React from 'react'; import React from 'react';
import classnames from 'classnames'; import classnames from 'classnames';
import { chunk } from 'lodash-es'; import { chunk } from 'lodash-es';
import cover from './images/default.png'; import cover from '@/assets/images/cloud/newProducts/default.png';
import styles from './index.less'; import styles from './index.less';
const assetPath = `${window.location.origin}/PandaWorkFlow/WorkFlow/AccountManage/DownloadFiles`; const assetPath = `${window.location.origin}/PandaWorkFlow/WorkFlow/AccountManage/DownloadFiles`;
...@@ -31,10 +31,15 @@ const Card = ({ onCardClick, ...props }) => { ...@@ -31,10 +31,15 @@ const Card = ({ onCardClick, ...props }) => {
{config && config['系统描述'] ? <div className={styles.back}>{config && config['系统描述']}</div> : null} {config && config['系统描述'] ? <div className={styles.back}>{config && config['系统描述']}</div> : null}
</div> </div>
<div className={classnames(styles['card-info'])}> <div className={classnames(styles['card-info'])}>
<div className={classnames(styles['card-desc'])}> <div
className={classnames(
styles['card-desc'],
styles[`card-desc-${config && config['副标题'] ? config['副标题'].split('\\n')?.length : '0'}`],
)}
>
{config && {config &&
config['副标题'] && config['副标题'] &&
config['副标题'].split('\\n').map((item, index) => <div key={index}>{item}</div>)} config['副标题'].split('\\n').map((item, index) => (index < 2 ? <div key={item}>{item}</div> : null))}
</div> </div>
<div className={classnames(styles['card-tags'])}> <div className={classnames(styles['card-tags'])}>
<div className={classnames(styles['card-list'])}> <div className={classnames(styles['card-list'])}>
...@@ -43,12 +48,10 @@ const Card = ({ onCardClick, ...props }) => { ...@@ -43,12 +48,10 @@ const Card = ({ onCardClick, ...props }) => {
<div key={index} className={classnames(styles['card-list-content'])}> <div key={index} className={classnames(styles['card-list-content'])}>
{item.map(child => ( {item.map(child => (
<div <div
className={classnames(styles['card-tag'])} className={classnames(
style={{ styles['card-tag'],
height: config['系统特点'].split(',').length <= 6 ? 44 : 40, config['系统特点'].split(',').length <= 6 ? '' : styles['card-tag-mini'],
lineHeight: config['系统特点'].split(',').length <= 6 ? '44px' : '40px', )}
marginTop: config['系统特点'].split(',').length <= 8 ? 10 : 0,
}}
key={child} key={child}
> >
<i className={classnames(styles['card-tag-icon'])} /> <i className={classnames(styles['card-tag-icon'])} />
......
...@@ -12,7 +12,7 @@ import { actionCreators } from '@/containers/App/store'; ...@@ -12,7 +12,7 @@ import { actionCreators } from '@/containers/App/store';
import { defaultApp } from '@/micro'; import { defaultApp } from '@/micro';
import Cookies from 'js-cookie'; import Cookies from 'js-cookie';
import { encode } from 'js-base64'; import { encode } from 'js-base64';
import icon from './images/退出.png'; import icon from '@/assets/images/cloud/newProducts/退出.png';
import Panel from './Panel'; import Panel from './Panel';
import LoginAction from '../../../user/login/login'; import LoginAction from '../../../user/login/login';
import styles from './index.less'; import styles from './index.less';
......
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
@font-face { @font-face {
font-family: zihun; font-family: zihun;
src: url('./images/字魂143号-正酷超级黑(1).ttf') src: url('@/assets/images/cloud/newProducts/字魂143号-正酷超级黑(1).ttf')
} }
@font-face { @font-face {
font-family: pingfang; font-family: pingfang;
src: url('./images/PingFang Bold_0.ttf') src: url('@/assets/images/cloud/newProducts/PingFang Bold_0.ttf')
} }
...@@ -25,15 +25,11 @@ ...@@ -25,15 +25,11 @@
background-position: center; background-position: center;
background-size: cover; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
background-image: url('./images/bg.png'); background-image: url('@/assets/images/cloud/newProducts/bg.png');
font-size: 20px; font-size: 20px;
.page { .page {
position: relative; position: relative;
//display: flex;
//flex-direction: column;
//align-items: center;
//justify-content: space-evenly;
height: 100%; height: 100%;
.pageTitle { .pageTitle {
...@@ -45,7 +41,7 @@ ...@@ -45,7 +41,7 @@
line-height: 4rem; line-height: 4rem;
text-shadow: 0 11px 15px rgba(0, 18, 44, 0.48); text-shadow: 0 11px 15px rgba(0, 18, 44, 0.48);
text-align: center; text-align: center;
background-image: url('./images/标题.png'); background-image: url('@/assets/images/cloud/newProducts/标题.png');
background-size: 100% 100%; background-size: 100% 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
font-family: "zihun"; font-family: "zihun";
...@@ -56,7 +52,6 @@ ...@@ -56,7 +52,6 @@
top: 6px; top: 6px;
right: 20px; right: 20px;
font-size: .5rem; font-size: .5rem;
font-family: Microsoft YaHei;
font-weight: 400; font-weight: 400;
color: #FFFFFF; color: #FFFFFF;
...@@ -121,12 +116,12 @@ ...@@ -121,12 +116,12 @@
&.cus-arrow-prev { &.cus-arrow-prev {
left: 2em; left: 2em;
background-image: url('./images/arrow_left.png'); background-image: url('@/assets/images/cloud/newProducts/arrow_left.png');
} }
&.cus-arrow-next { &.cus-arrow-next {
right: 2em; right: 2em;
background-image: url('./images/arrow_right.png'); background-image: url('@/assets/images/cloud/newProducts/arrow_right.png');
} }
} }
} }
...@@ -134,7 +129,6 @@ ...@@ -134,7 +129,6 @@
.panel { .panel {
font-size: 20px; font-size: 20px;
height: 100%; height: 100%;
// padding: 0 200px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-start; justify-content: flex-start;
...@@ -168,13 +162,13 @@ ...@@ -168,13 +162,13 @@
cursor: pointer; cursor: pointer;
width: 49%; width: 49%;
height: 24rem; height: 24rem;
background-image: url('./images/框.png'); background-image: url('@/assets/images/cloud/newProducts/框.png');
background-position: center; background-position: center;
.card-title { .card-title {
position: relative; position: relative;
margin-top: 0.5rem;
left: 4%; left: 4%;
margin-top: 0.5rem;
font-size: 1.5rem; font-size: 1.5rem;
font-weight: 400; font-weight: 400;
color: #262626; color: #262626;
...@@ -194,7 +188,6 @@ ...@@ -194,7 +188,6 @@
transition: all 0.5s; transition: all 0.5s;
transition-delay: 0.2s; transition-delay: 0.2s;
font-size: 8px; font-size: 8px;
font-family: Microsoft YaHei;
font-weight: 400; font-weight: 400;
color: #000000; color: #000000;
} }
...@@ -202,31 +195,36 @@ ...@@ -202,31 +195,36 @@
.card-desc{ .card-desc{
padding: 1rem; padding: 1rem;
text-align: center; text-align: center;
//display: flex;
font-size: 1rem; font-size: 1rem;
background-position-x: -.5rem; background-position-x: -.5rem;
//align-items: center;
//justify-content: center;
height: 5rem; height: 5rem;
padding-left: 0.5rem; padding-left: 0.5rem;
padding-right: 0.5rem; padding-right: 0.5rem;
background-image: url(./images/副标题.png); background-image: url(@/assets/images/cloud/newProducts/副标题.png);
font-family: pingfang; font-family: pingfang;
font-weight: bold; font-weight: bold;
color: #FFFFFF; color: #FFFFFF;
background-size: cover; background-size: cover;
} }
.card-desc-2 {
div {
text-overflow: ellipsis;
overflow: hidden;
width: 100%;
white-space: nowrap;
}
}
&:hover { &:hover {
background-image: url('./images/框_active.png'); background-image: url('@/assets/images/cloud/newProducts/框_active.png');
// transform: scale(1.05);
.back { .back {
opacity: 1; opacity: 1;
transform: translateY(0); transform: translateY(0);
} }
.card-desc { .card-desc {
background-image: url(./images/副标题_active.png); background-image: url('@/assets/images/cloud/newProducts/副标题_active.png');
color: #000000; color: #000000;
} }
...@@ -248,9 +246,11 @@ ...@@ -248,9 +246,11 @@
.card-img { .card-img {
position: relative; position: relative;
float: left; float: left;
width: 65%;
img{ img{
height: 17.9rem; height: 17.9rem;
width: 100%;
} }
} }
...@@ -282,13 +282,19 @@ ...@@ -282,13 +282,19 @@
.card-tag{ .card-tag{
float: left; float: left;
width: 50%; width: 50%;
height: 35px; height: 44px;
line-height: 35px; margin-top: 10px;
line-height: 44px;
font-size: 0.88rem; font-size: 0.88rem;
font-family: Microsoft YaHei;
font-weight: 400; font-weight: 400;
color: #FFFFFF; color: #FFFFFF;
&.card-tag-mini {
margin-top: 5px;
height: 40px;
line-height: 40px;
}
.card-tag-icon { .card-tag-icon {
display: inline-block; display: inline-block;
margin-right: .5rem; margin-right: .5rem;
...@@ -326,15 +332,21 @@ ...@@ -326,15 +332,21 @@
} }
} }
.card-title {
font-size: 1.2rem !important;
}
.card { .card {
background-size: 100% 100%; background-size: 100% 100%;
height: 21rem; height: 17.6rem;
} }
.card-content{ .card-content{
.card-img { .card-img {
width: 48% !important;
img{ img{
height: 9rem !important; height: 12.6rem !important;
} }
} }
} }
...@@ -343,6 +355,18 @@ ...@@ -343,6 +355,18 @@
width: 50% !important; width: 50% !important;
} }
.card-tag{
margin-top: 6px !important;
height: 38px !important;
line-height: 38px !important;
&.card-tag-mini {
margin-top: 4px !important;
height: 30px !important;
line-height: 30px !important;
}
}
.panel { .panel {
font-size: 14px; font-size: 14px;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment