Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
scrm-wx-merchant-activity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a0c21bbf
authored
Nov 02, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
IM样式
1 parent
966b0832
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
src/components/LiveBox.vue
src/components/TIM/Im.vue
src/components/LiveBox.vue
View file @
a0c21bb
...
@@ -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
:
20
px
;
right
:
14
px
;
top
:
28px
;
top
:
28px
;
width
:
63
px
;
width
:
54
px
;
height
:
52
px
;
height
:
48
px
;
z-index
:
2
;
z-index
:
2
;
}
}
.poster-btn
{
.poster-btn
{
...
...
src/components/TIM/Im.vue
View file @
a0c21bb
...
@@ -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
:
6
px
;
margin-bottom
:
3
px
;
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
}
}
#chat
.chatUser-info
{
#chat
.chatUser-info
{
margin
:
0
1
.25rem
;
margin
:
0
1
0px
;
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
:
1
0
px
;
border-radius
:
1
8
px
;
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
;
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment