Merge branch 'feature_notification' of https://git.trustie.net/tongChong/forgeplus-react into feature_notification
This commit is contained in:
commit
49fad4b8bc
|
@ -198,7 +198,7 @@ function NoticeContent({ visible, showNotification, resetUserInfo, current_user:
|
||||||
<Badge color="#FA2020" />
|
<Badge color="#FA2020" />
|
||||||
</span>
|
</span>
|
||||||
<div className="noticeCont-text">
|
<div className="noticeCont-text">
|
||||||
<span className="content-span atme-cont-span" dangerouslySetInnerHTML={{ __html: item.content }}></span>
|
<span className="content-span atme-cont-span" dangerouslySetInnerHTML={{ __html: "<b>" + item.sender.name +"</b> " + item.content +" 中@我"}}></span>
|
||||||
<span className="timeSpan">{item.time_ago}</span>
|
<span className="timeSpan">{item.time_ago}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -232,12 +232,12 @@
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
-webkit-line-clamp: 2; /* 这里是超出几行省略 */
|
-webkit-line-clamp: 2;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
& .atme-cont-span{
|
& .atme-cont-span{
|
||||||
width: 275px;
|
width: 272px;
|
||||||
}
|
}
|
||||||
|
|
||||||
& .notice-cont-span{
|
& .notice-cont-span{
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 900 B After Width: | Height: | Size: 1.0 KiB |
|
@ -192,6 +192,7 @@ function MyNotice(props) {
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
} else if (noticeType === "2") {
|
} else if (noticeType === "2") {
|
||||||
|
console.log(item);
|
||||||
//@我
|
//@我
|
||||||
return (
|
return (
|
||||||
<div className="mynotice-content vertical-center-style" key={item.id}>
|
<div className="mynotice-content vertical-center-style" key={item.id}>
|
||||||
|
@ -201,7 +202,8 @@ function MyNotice(props) {
|
||||||
{item.sender && <img src={`https://testforgeplus.trustie.net//${item.sender.image_url}`} className="currentImg" />}
|
{item.sender && <img src={`https://testforgeplus.trustie.net//${item.sender.image_url}`} className="currentImg" />}
|
||||||
<div className="atme-notice-text">
|
<div className="atme-notice-text">
|
||||||
<div className="at-badge">{item.status === 1 ? <Badge color="#FA2020" /> : <span className="system-notice-blank"></span>}</div>
|
<div className="at-badge">{item.status === 1 ? <Badge color="#FA2020" /> : <span className="system-notice-blank"></span>}</div>
|
||||||
<div className={item.notification_url?"highlightSpan float-right-little":"float-right-little"} onClick={() => {item.notification_url && window.open("https://"+`${item.notification_url}`)}} dangerouslySetInnerHTML={{__html: item.content}}></div>
|
{item.sender && <div className="atme-sender-name boldSpan">{item.sender.name}</div>}
|
||||||
|
<div className={item.notification_url?"highlightSpan atme-cont":"atme-cont"} onClick={() => {item.notification_url && window.open("https://"+`${item.notification_url}`)}} dangerouslySetInnerHTML={{__html: item.content+" 中@我"}}></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="mynotice-cont vertical-center-style">
|
<div className="mynotice-cont vertical-center-style">
|
||||||
|
|
|
@ -131,6 +131,11 @@ button:active {
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
padding: 0 0;
|
padding: 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
& .highlightSpan:hover{
|
||||||
|
color: #466AFF;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
.mynotice-cont{
|
.mynotice-cont{
|
||||||
padding:0;
|
padding:0;
|
||||||
|
@ -142,20 +147,20 @@ button:active {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.atme-notice-text{
|
.atme-notice-text{
|
||||||
|
display: flex;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-left: 12px;
|
margin-left: 12px;
|
||||||
max-width: 48rem;
|
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
& .at-badge{
|
& .at-badge{
|
||||||
position:absolute;
|
position:absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
& .highlightSpan{
|
& .atme-sender-name{
|
||||||
// margin-left: 12px;
|
padding: 0 4px;
|
||||||
&:hover{
|
}
|
||||||
color: #466AFF;
|
|
||||||
cursor: pointer;
|
& .atme-cont{
|
||||||
}
|
max-width: 42rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue