Commit a0c21bbf by chenwq

IM样式

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