Commit 10974e0c authored by Bill's avatar Bill

fix: 修改首页最近访问,广告样式

parent 7f395123
...@@ -40,6 +40,8 @@ ...@@ -40,6 +40,8 @@
// } // }
.advertisementSpace { .advertisementSpace {
margin-bottom: 16px; margin-bottom: 16px;
border-radius: 8px;
overflow: hidden;
height: 217px; height: 217px;
.img { .img {
width: 100%; width: 100%;
......
...@@ -29,6 +29,10 @@ ...@@ -29,6 +29,10 @@
align-items: center; align-items: center;
a { a {
color: #303133; color: #303133;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
word-break: break-all;
} }
} }
} }
......
import React from 'react'; import React from 'react';
import styles from './index.less'; import styles from './index.less';
import menu_zh from '@/locales/zh-CN/menu'; import menu_zh from '@/locales/zh-CN/menu';
import { Tooltip } from 'antd';
import { Link } from 'umi'; import { Link } from 'umi';
interface Iprops {} interface Iprops {}
...@@ -15,11 +16,13 @@ const RecentVisit: React.FC<Iprops> = () => { ...@@ -15,11 +16,13 @@ const RecentVisit: React.FC<Iprops> = () => {
{ {
Object.keys(recentVisit).map((item) => { Object.keys(recentVisit).map((item) => {
return ( return (
<div key={item} className={styles.item}> <Tooltip key={item} placement="top" title={ menu_zh[item] }>
<Link key={item} to={recentVisit[item]}> <div className={styles.item}>
<Link key={item} to={recentVisit[item]} >
{ menu_zh[item] } { menu_zh[item] }
</Link> </Link>
</div> </div>
</Tooltip>
) )
}) })
......
...@@ -100,6 +100,14 @@ ...@@ -100,6 +100,14 @@
justify-content: space-between; justify-content: space-between;
flex: 1; flex: 1;
.user {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
flex: 1;
}
// .userStatus { // .userStatus {
// display: flex; // display: flex;
// flex-direction: row; // flex-direction: row;
...@@ -128,6 +136,7 @@ ...@@ -128,6 +136,7 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
flex: 1;
.link { .link {
width: 88px; width: 88px;
...@@ -141,12 +150,14 @@ ...@@ -141,12 +150,14 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
flex: 1;
.level { .level {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: center; justify-content: center;
width: 140px; width: 140px;
margin-right: auto;
.levelImg { .levelImg {
height: 16px; height: 16px;
} }
...@@ -155,6 +166,7 @@ ...@@ -155,6 +166,7 @@
.score { .score {
width: 140px; width: 140px;
text-align: center; text-align: center;
margin-right: auto;
} }
} }
} }
......
...@@ -114,6 +114,7 @@ const UserCenter: React.FC<Iprops> = (props) => { ...@@ -114,6 +114,7 @@ const UserCenter: React.FC<Iprops> = (props) => {
</div> </div>
</Spin> </Spin>
<div className={styles.infos}> <div className={styles.infos}>
<div className={styles.user}>
<div className={styles.userStatus}> <div className={styles.userStatus}>
<span className={styles.company}>{userAuth.company}</span> <span className={styles.company}>{userAuth.company}</span>
<div className={styles.status}> <div className={styles.status}>
...@@ -133,8 +134,9 @@ const UserCenter: React.FC<Iprops> = (props) => { ...@@ -133,8 +134,9 @@ const UserCenter: React.FC<Iprops> = (props) => {
</div> </div>
</div> </div>
</div> </div>
<div className={styles.otherValues}>
<Link to={EDIT_USER_URL} className={styles.link}>修改会员信息</Link> <Link to={EDIT_USER_URL} className={styles.link}>修改会员信息</Link>
</div>
<div className={styles.otherValues}>
<div className={styles.divider}> <div className={styles.divider}>
<div className={styles.level}> <div className={styles.level}>
会员等级: <img src={LEVEL_IMAGE[userAuth.level]} className={styles.levelImg} /> 会员等级: <img src={LEVEL_IMAGE[userAuth.level]} className={styles.levelImg} />
......
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