Commit a0c21bbf by chenwq

IM样式

1 parent 966b0832
...@@ -373,10 +373,10 @@ export default { ...@@ -373,10 +373,10 @@ export default {
.fullscreen-btn { .fullscreen-btn {
display: none; display: none;
position: absolute; position: absolute;
right: 20px; right: 14px;
top: 28px; top: 28px;
width: 63px; width: 54px;
height: 52px; height: 48px;
z-index: 2; z-index: 2;
} }
.poster-btn { .poster-btn {
......
...@@ -3,16 +3,17 @@ ...@@ -3,16 +3,17 @@
<div class="chatBox"> <div class="chatBox">
<div class="chatBox-middle"> <div class="chatBox-middle">
<div class="chatInfo" id="chatInfo"> <div class="chatInfo" id="chatInfo">
<div class="chatUser-box" v-for="(item, index) in messageList" :key="index"> <div class="chatUser-box">
<div class="chatUser-info"> <div class="chatUser-info">
<span class="chatUser-info-text"> <span class="chatUser-info-text notice">
<div v-if="item.isNotice"> <p>
<p> <img class="icon-notice" src="@/assets/images/icon-notice.png" />
<img class="icon-notice" src="@/assets/images/icon-notice.png" /> 欢迎来到直播间!
欢迎来到直播间! <span>{{ notifyTxt }}</span>
</p> </p>
</div> </span>
<span v-else class="chatUser-info-name">{{ item.userName }}:</span> <span class="chatUser-info-text" v-for="(item, index) in messageList" :key="index">
<span class="chatUser-info-name">{{ item.userName }}:</span>
<span>{{ item.content }}</span> <span>{{ item.content }}</span>
</span> </span>
</div> </div>
...@@ -40,12 +41,8 @@ export default { ...@@ -40,12 +41,8 @@ export default {
data() { data() {
return { return {
messageContent: '', messageContent: '',
messageList: [ notifyTxt: '直播间内严禁出现违法违规、低俗、涉黄、吸烟酗酒等内容,直播期间请勿相信私下交易,诱导购买等信息,以防人身或财产损失。请大家注意财产安全,谨防网络诈骗,文明观看直播。',
{ messageList: []
isNotice: true,
content: '直播间内严禁出现违法违规、低俗、涉黄、吸烟酗酒等内容,直播期间请勿相信私下交易,诱导购买等信息,以防人身或财产损失。请大家注意财产安全,谨防网络诈骗,文明观看直播。'
}
]
} }
}, },
props: { props: {
...@@ -205,19 +202,18 @@ body { ...@@ -205,19 +202,18 @@ body {
#chat .chatUser-box { #chat .chatUser-box {
width: 100%; width: 100%;
margin-bottom: 6px; margin-bottom: 3px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
} }
#chat .chatUser-info { #chat .chatUser-info {
margin: 0 1.25rem; margin: 0 10px;
width: 70%; width: 65%;
line-height: 22px; line-height: 22px;
font-size: 12px; font-size: 12px;
} }
#chat .chatUser-info-name { #chat .chatUser-info-name {
font-size: 1.5rem;
color: rgb(234, 201, 36); color: rgb(234, 201, 36);
margin-right: 0.4rem; margin-right: 0.4rem;
font-weight: 600; font-weight: 600;
...@@ -227,7 +223,7 @@ body { ...@@ -227,7 +223,7 @@ body {
margin-top: 3px; margin-top: 3px;
padding: 2px 6px; padding: 2px 6px;
background: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.4);
border-radius: 10px; border-radius: 18px;
color: #ffffff; color: #ffffff;
float: left; float: left;
table-layout: fixed; table-layout: fixed;
...@@ -240,6 +236,10 @@ body { ...@@ -240,6 +236,10 @@ body {
} }
} }
#chat .chatUser-info-text.notice {
padding: 2px 3px 2px 6px;
}
#chat .chatUser-info-text span { #chat .chatUser-info-text span {
font-size: 12px; font-size: 12px;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!