Commit 50308ff2 authored by 李腾's avatar 李腾

fix: 优化消息弹框样式

parent fdd06b41
...@@ -41,18 +41,23 @@ const MessageItem = props => { ...@@ -41,18 +41,23 @@ const MessageItem = props => {
<div className={styles['complex-list__item--header']}> <div className={styles['complex-list__item--header']}>
<span className={styles['order-number']}> 订单编号:{message.orderNo}</span> <span className={styles['order-number']}> 订单编号:{message.orderNo}</span>
<span className={styles.time}>订单时间:{message.time}</span> <span className={styles.time}>订单时间:{message.time}</span>
{readStatus === 0 ? ( <span className={styles['read-status']}>
<a className={styles['read-status']} onClick={() => onMark([item.id], item)}> {readStatus === 0 ? (
标记为已读 <a className={styles['read-status--un-read']} onClick={() => onMark([item.id], item)}>
</a> 标记为已读
) : ( </a>
<span className={styles['read-status--read']}>已读</span> ) : (
)} <span className={styles['read-status--read']}>已读</span>
)}
</span>
</div> </div>
<div className={styles['complex-list__item--body']}>{goodList}</div> <div className={styles['complex-list__item--body']}>{goodList}</div>
<div className={styles['complex-list__item--footer']}> <div className={styles['complex-list__item--footer']}>
<div className={styles.actions}> <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},请查看 {message.title},请查看
</a> </a>
</div> </div>
......
...@@ -71,9 +71,13 @@ ...@@ -71,9 +71,13 @@
flex: 1; flex: 1;
padding-right: 20px; padding-right: 20px;
color: #999; color: #999;
word-break: break-all;
// white-space: nowrap
} }
.read-status { .read-status {
min-width: 80px;
text-align: right;
&--read { &--read {
color: #999; color: #999;
} }
...@@ -87,6 +91,11 @@ ...@@ -87,6 +91,11 @@
line-height: 1.5; line-height: 1.5;
&__name { &__name {
flex: 1; flex: 1;
word-break: break-all;
}
&__count {
min-width: 80px;
text-align: right;
} }
} }
} }
...@@ -99,22 +108,25 @@ ...@@ -99,22 +108,25 @@
width: 100%; width: 100%;
margin-left: 20px; margin-left: 20px;
line-height: 40px; line-height: 40px;
a { .notice {
position: relative; position: relative;
display: block; display: block;
flex: 1; flex: 1;
color: #ff1515; color: #999;
font-weight: 400; font-weight: 400;
&::before { &.un-read {
display: inline-block; color: #ff1515;
width: 6px; &::before {
height: 6px; display: inline-block;
margin-top: 17px; width: 6px;
margin-right: 6px; height: 6px;
vertical-align: top; margin-top: 17px;
background: #ff1515; margin-right: 6px;
border-radius: 50%; vertical-align: top;
content: ''; background: #ff1515;
border-radius: 50%;
content: '';
}
} }
&::after { &::after {
position: absolute; position: absolute;
......
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