Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄庭坚
jinfa-platform
Commits
fe4aac8d
Commit
fe4aac8d
authored
Sep 29, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:商城首页快捷方式样式修改
parent
3d8ece6d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
5 deletions
+15
-5
BasicLayout.tsx
src/layouts/BasicLayout.tsx
+1
-1
index.less
src/pages/lxMall/components/QuickNav/index.less
+10
-0
index.tsx
src/pages/lxMall/components/QuickNav/index.tsx
+3
-3
information.tsx
src/pages/systemSetting/collection/information.tsx
+1
-1
No files found.
src/layouts/BasicLayout.tsx
View file @
fe4aac8d
...
...
@@ -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
}
...
...
src/pages/lxMall/components/QuickNav/index.less
View file @
fe4aac8d
...
...
@@ -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;
...
...
src/pages/lxMall/components/QuickNav/index.tsx
View file @
fe4aac8d
...
...
@@ -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
>
...
...
src/pages/systemSetting/collection/information.tsx
View file @
fe4aac8d
...
...
@@ -41,7 +41,7 @@ const Information: React.FC = () => {
const
linkToDetail
=
(
detail
)
=>
{
if
(
detail
.
status
===
2
)
{
let
el
=
document
.
createElement
(
'a'
)
el
.
href
=
`/info
r
mation/detail?id=
${
detail
.
id
}
`
;
el
.
href
=
`/infomation/detail?id=
${
detail
.
id
}
`
;
el
.
target
=
'_blank'
;
el
.
click
()
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment