Commit eea4acc8 authored by 张苗苗's avatar 张苗苗

perf: 优化引导页

parent eddbeca5
...@@ -8,6 +8,8 @@ import styles from './index.less'; ...@@ -8,6 +8,8 @@ import styles from './index.less';
import SecurityLayout from '../../layouts/SecurityLayout'; import SecurityLayout from '../../layouts/SecurityLayout';
import LoginAction from '../user/login/login'; import LoginAction from '../user/login/login';
import { actionCreators } from '../../containers/App/store'; import { actionCreators } from '../../containers/App/store';
import i18n from '../../utils/share';
const pages = i18n.getI18n('app');
class WaterBox extends React.Component { class WaterBox extends React.Component {
// eslint-disable-next-line no-useless-constructor // eslint-disable-next-line no-useless-constructor
constructor(props) { constructor(props) {
...@@ -89,19 +91,26 @@ class ProjectBox extends React.Component { ...@@ -89,19 +91,26 @@ class ProjectBox extends React.Component {
item + item +
'.png')})`, '.png')})`,
}} }}
key={item}
> >
<div <div
className={classNames(styles.bootPagelbBox, styles.bootPageitem)} className={classNames(styles.bootPagelbBox, styles.bootPageitem)}
type={item} type={item}
key={item}
onClick={event => callback(event, item)} onClick={event => callback(event, item)}
style={{ style={{
background: `url(${require('../../assets/transitionalpage/'+item + '图.jpg')})`, background: `url(${require('../../assets/transitionalpage/' +
item +
'图.jpg')})`,
}} }}
>
<img src={ this.state[item] ? require(`../../assets/transitionalpage/${item}图动.gif`): require(`../../assets/transitionalpage/${item}图.jpg`) }
onMouseEnter={e => this.mouseOveHandle(item)} onMouseEnter={e => this.mouseOveHandle(item)}
onMouseLeave={e => this.mouseOutHandle(item)} onMouseLeave={e => this.mouseOutHandle(item)}
>
<img
src={
this.state[item]
? require(`../../assets/transitionalpage/${item}图动.gif`)
: require(`../../assets/transitionalpage/${item}图.jpg`)
}
/> />
<div>{item}</div> <div>{item}</div>
</div> </div>
...@@ -148,12 +157,19 @@ class RightBox extends React.Component { ...@@ -148,12 +157,19 @@ class RightBox extends React.Component {
key={item} key={item}
onClick={event => callback(event, item)} onClick={event => callback(event, item)}
style={{ style={{
background: `url(${require('../../assets/transitionalpage/'+item + '图.jpg')})`, background: `url(${require('../../assets/transitionalpage/' +
item +
'图.jpg')})`,
}} }}
>
<img src={ this.state[item] ? require(`../../assets/transitionalpage/${item}图动.gif`): require(`../../assets/transitionalpage/${item}图.jpg`) }
onMouseEnter={e => this.mouseOveHandle(item)} onMouseEnter={e => this.mouseOveHandle(item)}
onMouseLeave={e => this.mouseOutHandle(item)} onMouseLeave={e => this.mouseOutHandle(item)}
>
<img
src={
this.state[item]
? require(`../../assets/transitionalpage/${item}图动.gif`)
: require(`../../assets/transitionalpage/${item}图.jpg`)
}
/> />
<div className={styles.bootPagebTitle}>{item}</div> <div className={styles.bootPagebTitle}>{item}</div>
</div> </div>
...@@ -219,7 +235,7 @@ const BootPage = props => { ...@@ -219,7 +235,7 @@ const BootPage = props => {
/> />
<div className={styles.bootPageTitle}> <div className={styles.bootPageTitle}>
<span className={styles.bootPageZh}> <span className={styles.bootPageZh}>
熊猫智慧城市监控管理解决方案 {pages.get('settings.bootpage.title')}
</span> </span>
</div> </div>
</header> </header>
......
...@@ -119,7 +119,6 @@ ...@@ -119,7 +119,6 @@
font-weight: normal; font-weight: normal;
display: flex; display: flex;
align-items: center; align-items: center;
padding: 6px;
width: 316px; width: 316px;
height: 181px; height: 181px;
position: relative; position: relative;
...@@ -222,7 +221,8 @@ ...@@ -222,7 +221,8 @@
text-align: center; text-align: center;
font-size: 14px; font-size: 14px;
flex: none; flex: none;
height: 100px; height: 150px;
padding: 100px 0 0;
a { a {
color: #ffffff; color: #ffffff;
text-decoration: none; text-decoration: none;
......
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