diff --git a/css/main.css b/css/main.css index e18bb749b9a2f34e3cf8d72fb18b165f810d84b2..fdf0ed7c0dac925a33ff67f6be4c5210946f0782 100755 --- a/css/main.css +++ b/css/main.css @@ -1172,4 +1172,12 @@ audio { padding: 0 8px; color: #0098ff; cursor: pointer; +} + +.quote { + display: block; + padding: 3px 5px; + margin: 3px; + background-color: #efefef; + border-radius: 4px; } \ No newline at end of file diff --git a/index.php b/index.php index 7a007ef57ec5d49243834cca1d90b2a8a6bc7b80..1a0025f626e70b0ca16bfdc62273ab660fa124cc 100755 --- a/index.php +++ b/index.php @@ -299,7 +299,10 @@ if (strpos($_SERVER['HTTP_USER_AGENT'], "Triden")) { -
{{item.at.message.type=='text'?item.at.message.content:'[图片]'}}
{{friendlyTime(item.time)}}回复
+
+
{{item.at.message.type=='text'?item.at.message.content:'[图片]'}}
{{friendlyTime(item.time)}} + 回复 +
[查看]`, @@ -2281,6 +2286,7 @@ if (strpos($_SERVER['HTTP_USER_AGENT'], "Triden")) { dangerouslyUseHTMLString: true // offset: 70, }); + } } } diff --git a/js/scroll-helper.js b/js/scroll-helper.js index 36ff60c5d43d50f4af74f46c1013e8b538fc22ca..cf2f4b45977371706f00c09d2659a13052991217 100755 --- a/js/scroll-helper.js +++ b/js/scroll-helper.js @@ -32,6 +32,10 @@ const scrollFuncs = { scrollToChat: function (msgid) { const chatRoom = document.querySelector('#chat_room_history'); const chat = document.querySelector(`#msgid_${msgid}`); + if (!chat) { + Vue.prototype.$message.error("无法定位到该消息!"); + return; + } chatRoom.scrollTop = chat.offsetTop - 100; chat.style.backgroundColor = 'rgba(251, 114, 153,0.1)'; chat.style.transition = 'all 600ms';