Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
merchant-manage-ui
Commits
50308ff2
Commit
50308ff2
authored
Oct 31, 2022
by
李腾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 优化消息弹框样式
parent
fdd06b41
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
20 deletions
+37
-20
index.jsx
src/components/MessageReminder/Complex/index.jsx
+13
-8
index.less
src/components/MessageReminder/Complex/index.less
+24
-12
No files found.
src/components/MessageReminder/Complex/index.jsx
View file @
50308ff2
...
...
@@ -41,18 +41,23 @@ const MessageItem = props => {
<
div
className=
{
styles
[
'
complex-list__item--header
'
]
}
>
<
span
className=
{
styles
[
'
order-number
'
]
}
>
订单编号:
{
message
.
orderNo
}
</
span
>
<
span
className=
{
styles
.
time
}
>
订单时间:
{
message
.
time
}
</
span
>
{
readStatus
===
0
?
(
<
a
className=
{
styles
[
'
read-status
'
]
}
onClick=
{
()
=>
onMark
([
item
.
id
],
item
)
}
>
标记为已读
</
a
>
)
:
(
<
span
className=
{
styles
[
'
read-status--read
'
]
}
>
已读
</
span
>
)
}
<
span
className=
{
styles
[
'
read-status
'
]
}
>
{
readStatus
===
0
?
(
<
a
className=
{
styles
[
'
read-status--un-read
'
]
}
onClick=
{
()
=>
onMark
([
item
.
id
],
item
)
}
>
标记为已读
</
a
>
)
:
(
<
span
className=
{
styles
[
'
read-status--read
'
]
}
>
已读
</
span
>
)
}
</
span
>
</
div
>
<
div
className=
{
styles
[
'
complex-list__item--body
'
]
}
>
{
goodList
}
</
div
>
<
div
className=
{
styles
[
'
complex-list__item--footer
'
]
}
>
<
div
className=
{
styles
.
actions
}
>
<
a
onClick=
{
()
=>
viewDetail
(
message
)
}
className=
{
styles
.
notice
}
>
<
a
onClick=
{
()
=>
viewDetail
(
message
)
}
className=
{
[
styles
.
notice
,
readStatus
===
0
?
styles
[
'
un-read
'
]
:
''
].
join
(
'
'
)
}
>
{
message
.
title
}
,请查看
</
a
>
</
div
>
...
...
src/components/MessageReminder/Complex/index.less
View file @
50308ff2
...
...
@@ -71,9 +71,13 @@
flex: 1;
padding-right: 20px;
color: #999;
word-break: break-all;
// white-space: nowrap
}
.read-status {
min-width: 80px;
text-align: right;
&--read {
color: #999;
}
...
...
@@ -87,6 +91,11 @@
line-height: 1.5;
&__name {
flex: 1;
word-break: break-all;
}
&__count {
min-width: 80px;
text-align: right;
}
}
}
...
...
@@ -99,22 +108,25 @@
width: 100%;
margin-left: 20px;
line-height: 40px;
a
{
.notice
{
position: relative;
display: block;
flex: 1;
color: #
ff1515
;
color: #
999
;
font-weight: 400;
&::before {
display: inline-block;
width: 6px;
height: 6px;
margin-top: 17px;
margin-right: 6px;
vertical-align: top;
background: #ff1515;
border-radius: 50%;
content: '';
&.un-read {
color: #ff1515;
&::before {
display: inline-block;
width: 6px;
height: 6px;
margin-top: 17px;
margin-right: 6px;
vertical-align: top;
background: #ff1515;
border-radius: 50%;
content: '';
}
}
&::after {
position: absolute;
...
...
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