Commit fe4aac8d authored by GuanHua's avatar GuanHua

feat:商城首页快捷方式样式修改

parent 3d8ece6d
......@@ -125,7 +125,7 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => {
console.log(getPageTitle({ pathname: location.pathname }), "getPageTitle({ pathname: location.pathname })")
return (
<ProLayout
title=""
title={``}
style={{ minHeight: '100vh' }}
logo={logo}
formatMessage={formatMessage}
......
......@@ -47,11 +47,21 @@
}
.welcome_text {
display: block;
font-size: 12px;
color: #303133;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 150px;
}
.roleTag {
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 150px;
background: #EBF7F2;
font-size: 12px;
color: #00B37A;
......
......@@ -181,8 +181,8 @@ const QuickNav: React.FC<QuickNavPropsType> = (props) => {
<span className={styles.welcome_text}>Hi, 欢迎来到{name}</span>
</div>
<div className={styles.btn_group}>
<div className={cx(styles.btn_item, styles.primary)}><Link to="/user/login">登陆</Link></div>
<div className={styles.btn_item}><Link to="/user/register">注册</Link></div>
<div className={cx(styles.btn_item, styles.primary)}><a href={`/user/login?redirect=${btoa(encodeURIComponent(String(window.location)))}`}>登陆</a></div>
<div className={styles.btn_item}><a href="/user/register">注册</a></div>
</div>
</>
......@@ -191,7 +191,7 @@ const QuickNav: React.FC<QuickNavPropsType> = (props) => {
<>
<div className={styles.welcome}>
<div className={styles.welcome_avatar}>Hi</div>
<div>
<div style={{ flex: 1, width: 0 }}>
<span className={styles.welcome_text}>{userInfo.name}</span>
<div className={cx(styles.roleTag, userInfo.memberRoleType === 1 ? styles.supply : '')}>{getRoleName()}</div>
</div>
......
......@@ -41,7 +41,7 @@ const Information: React.FC = () => {
const linkToDetail = (detail) => {
if (detail.status === 2) {
let el = document.createElement('a')
el.href = `/information/detail?id=${detail.id}`;
el.href = `/infomation/detail?id=${detail.id}`;
el.target = '_blank';
el.click()
} else {
......
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