Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 be55d48a
authored
Mar 05, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
6c011b86
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
67 additions
and
74 deletions
linkwe-pc/src/components/ChatContent.vue
linkwe-pc/src/styles/element-ui.scss
linkwe-pc/src/views/conversation/content/component/chatList.vue
linkwe-pc/src/components/ChatContent.vue
View file @
be55d48
...
@@ -88,7 +88,7 @@ export default {
...
@@ -88,7 +88,7 @@ export default {
</template>
</template>
<
template
v-else-if=
"message.msgType === 'revoke'"
>
已撤回
</
template
>
<
template
v-else-if=
"message.msgType === 'revoke'"
>
已撤回
</
template
>
<
template
v-else-if=
"'image,emotion'.includes(message.msgType)"
>
<
template
v-else-if=
"'image,emotion'.includes(message.msgType)"
>
<el-image
style=
"width: 100px
; height: 100px
"
:src=
"content"
fit=
"fit"
:preview-src-list=
"[content]"
></el-image>
<el-image
style=
"width: 100px"
:src=
"content"
fit=
"fit"
:preview-src-list=
"[content]"
></el-image>
</
template
>
</
template
>
<a
v-else-if=
"'file'.includes(message.msgType)"
class=
"msgtypefile"
>
<a
v-else-if=
"'file'.includes(message.msgType)"
class=
"msgtypefile"
>
<!-- :href="JSON.parse(this.message.contact).attachment"
<!-- :href="JSON.parse(this.message.contact).attachment"
...
@@ -157,7 +157,7 @@ export default {
...
@@ -157,7 +157,7 @@ export default {
<div
v-else-if=
"message.msgType === 'link'"
class=
"msgtypecard"
>
<div
v-else-if=
"message.msgType === 'link'"
class=
"msgtypecard"
>
<a
target=
"_black"
:href=
"content.link_url"
>
<a
target=
"_black"
:href=
"content.link_url"
>
<div
class=
"card-content fxbw"
>
<div
class=
"card-content fxbw"
>
<div
style=
"flex: 1"
>
<div
style=
"flex: 1
; margin-right: 10px
"
>
<div
class=
"card--link-title"
>
{{ content.title }}
</div>
<div
class=
"card--link-title"
>
{{ content.title }}
</div>
<div
class=
"card--link-desc"
>
{{ content.description }}
</div>
<div
class=
"card--link-desc"
>
{{ content.description }}
</div>
</div>
</div>
...
@@ -172,49 +172,54 @@ export default {
...
@@ -172,49 +172,54 @@ export default {
</template>
</template>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.angle
{
//
.angle
{
content
:
''
;
//
content
:
''
;
display
:
inline-block
;
//
display
:
inline-block
;
position
:
absolute
;
//
position
:
absolute
;
top
:
8px
;
//
top
:
8px
;
width
:
8px
;
//
width
:
8px
;
height
:
8px
;
//
height
:
8px
;
background
:
#fff
;
//
background
:
#fff
;
transform
:
rotate
(
45deg
);
//
transform
:
rotate
(
45deg
);
border
:
1px
solid
#e1edfc
;
//
border
:
1px
solid
#e1edfc
;
z-index
:
888
;
//
z-index
:
888
;
box-shadow
:
0px
2px
6px
0px
rgba
(
60
,
136
,
240
,
0.1
);
//
box-shadow
:
0px
2px
6px
0px
rgba
(
60
,
136
,
240
,
0.1
);
}
//
}
.message
{
.mes
{
max-width
:
50%
;
max-width
:
calc
(
100%
-
24px
);
background-color
:
#fff
;
position
:
relative
;
position
:
relative
;
padding
:
1
0
px
;
padding
:
1
5
px
;
line-height
:
14px
;
line-height
:
14px
;
border-radius
:
5px
;
border-radius
:
12px
;
box-shadow
:
0px
2px
6px
0px
rgba
(
60
,
136
,
240
,
0.1
);
//
box-shadow
:
0px
2px
6px
0px
rgba
(
60
,
136
,
240
,
0.1
);
border
:
1px
solid
#e1edfc
;
//
border
:
1px
solid
#e1edfc
;
color
:
#333
;
display
:
inline-block
;
display
:
inline-block
;
word-break
:
break-all
;
word-break
:
break-all
;
}
}
.message
{
.message
{
@extend
.mes;
color
:
#333
;
margin-left
:
10px
;
margin-left
:
10px
;
&::before
{
background-color
:
#fff
;
@extend
.angle;
border-top-left-radius
:
0
;
left
:
-5px
;
//
&::before
{
border-width
:
0
0
1px
1px
;
//
@extend
.angle;
}
//
left
:
-5px
;
//
border-width
:
0
0
1px
1px
;
//
}
}
}
.message-right
{
.message-right
{
@extend
.message;
@extend
.mes;
color
:
#fff
;
margin-right
:
10px
;
margin-right
:
10px
;
&::before
{
background-color
:
var
(
--color
);
@extend
.angle;
border-top-right-radius
:
0
;
right
:
-5px
;
//
&::before
{
border-width
:
1px
1px
0
0
;
//
@extend
.angle;
}
//
right
:
-5px
!important
;
//
border-width
:
1px
1px
0
0
;
//
}
}
}
.msgtypefile
{
.msgtypefile
{
margin
:
5px
;
margin
:
5px
;
...
@@ -230,7 +235,7 @@ export default {
...
@@ -230,7 +235,7 @@ export default {
.msgtypecard
{
.msgtypecard
{
//
width
:
320px
;
//
width
:
320px
;
//
height
:
140px
;
//
height
:
140px
;
margin
:
10px
5px
;
//
margin
:
10px
5px
;
border-radius
:
8px
;
border-radius
:
8px
;
-webkit-box-shadow
:
0
4px
8px
0
rgba
(
0
,
0
,
0
,
0.2
),
0
6px
8px
0
rgba
(
0
,
0
,
0
,
0.19
);
-webkit-box-shadow
:
0
4px
8px
0
rgba
(
0
,
0
,
0
,
0.2
),
0
6px
8px
0
rgba
(
0
,
0
,
0
,
0.19
);
box-shadow
:
0
4px
8px
0
rgba
(
0
,
0
,
0
,
0.2
),
0
6px
8px
0
rgba
(
0
,
0
,
0
,
0.19
);
box-shadow
:
0
4px
8px
0
rgba
(
0
,
0
,
0
,
0.2
),
0
6px
8px
0
rgba
(
0
,
0
,
0
,
0.19
);
...
@@ -248,7 +253,7 @@ export default {
...
@@ -248,7 +253,7 @@ export default {
//
text-indent
:
10px
;
//
text-indent
:
10px
;
color
:
#333
;
color
:
#333
;
.card--link-title
{
.card--link-title
{
font-size
:
1
6
px
;
font-size
:
1
5
px
;
font-weight
:
500
;
font-weight
:
500
;
margin-bottom
:
5px
;
margin-bottom
:
5px
;
text-overflow
:
-o-ellipsis-lastline
;
text-overflow
:
-o-ellipsis-lastline
;
...
@@ -262,16 +267,16 @@ export default {
...
@@ -262,16 +267,16 @@ export default {
-webkit-box-orient
:
vertical
;
-webkit-box-orient
:
vertical
;
}
}
.card--link-desc
{
.card--link-desc
{
font-size
:
1
4
px
;
font-size
:
1
3
px
;
color
:
#
aaa
;
color
:
#
666
;
text-overflow
:
-o-ellipsis-lastline
;
text-overflow
:
-o-ellipsis-lastline
;
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
word-break
:
break-all
;
word-break
:
break-all
;
display
:
-webkit-box
;
display
:
-webkit-box
;
white-space
:
pre-wrap
;
white-space
:
pre-wrap
;
-webkit-line-clamp
:
1
;
-webkit-line-clamp
:
2
;
line-clamp
:
1
;
line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
-webkit-box-orient
:
vertical
;
}
}
}
}
...
...
linkwe-pc/src/styles/element-ui.scss
View file @
be55d48
...
@@ -485,13 +485,13 @@
...
@@ -485,13 +485,13 @@
color
:
var
(
--
font-black
);
color
:
var
(
--
font-black
);
// border-radius: var(--border-radius-small);
// border-radius: var(--border-radius-small);
}
}
.el-table__body-wrapper
,
//
.el-table__body-wrapper,
.el-table__fixed-body-wrapper
{
//
.el-table__fixed-body-wrapper {
tr
{
//
tr {
// box-shadow: 0px 0px 5px 0px rgba(195, 195, 195, 0.35);
//
// box-shadow: 0px 0px 5px 0px rgba(195, 195, 195, 0.35);
height
:
50px
;
//
height: 50px;
}
//
}
}
//
}
.el-table__body
{
.el-table__body
{
border-collapse
:
collapse
;
border-collapse
:
collapse
;
}
}
...
...
linkwe-pc/src/views/conversation/content/component/chatList.vue
View file @
be55d48
...
@@ -2,22 +2,16 @@
...
@@ -2,22 +2,16 @@
<div
class=
"takecontent"
>
<div
class=
"takecontent"
>
<ul>
<ul>
<li
v-for=
"(item, index) in data"
:key=
"index"
>
<li
v-for=
"(item, index) in data"
:key=
"index"
>
<div
class=
"mb15 my_header right"
v-if=
"queryChat.fromId === item.fromId
"
>
<div
:class=
"['mb10', queryChat.fromId === item.fromId && 'ar']
"
>
<span
:
style=
"
{ color: item.action == 'send' ? 'var(--color)' : '#999' }">
{{
item
.
msgTi
me
}}
</span>
<span
:
class=
"['', queryChat.fromId === item.fromId && 'fr']"
style=
"color: #4e5969"
>
{{
item
.
na
me
}}
</span>
<span
class=
"ml10"
>
{{
item
.
name
}}
</span
>
<span
:style=
"
{ color: item.action == 'send' ? '#86909C' : '#999', margin: '0 8px' }"
>
<img
v-if=
"item.avatar"
class=
"image"
style=
"margin-left: 10px"
:src=
"item.avatar"
/>
{{
item
.
msgTime
}}
<
img
v-else
style=
"margin-left: 10px"
src=
"../../../../assets/drainageCode/header.png"
/
>
<
/span
>
</div>
</div>
<div
v-else
class=
"mb15 my_header"
>
<div
:class=
"['', queryChat.fromId === item.fromId && 'ar']"
>
<img
v-if=
"item.avatar"
class=
"image"
:src=
"item.avatar"
/>
<img
<img
v-else
style=
"margin-right: 5px"
src=
"../../../../assets/drainageCode/header.png"
/>
:class=
"['image', queryChat.fromId === item.fromId && 'fr']"
<span
class=
"mr10"
>
{{
item
.
name
}}
</span>
:src=
"item.avatar || require('../../../../assets/drainageCode/header.png')"
/>
<span
:style=
"
{ color: item.action == 'send' ? 'var(--color)' : '#999' }">
{{
item
.
msgTime
}}
</span>
</div>
<div
class=
"right"
v-if=
"queryChat.fromId === item.fromId"
>
<ChatContent
:queryChat=
"queryChat"
:message=
"item"
></ChatContent>
</div>
<div
v-else
>
<ChatContent
:queryChat=
"queryChat"
:message=
"item"
></ChatContent>
<ChatContent
:queryChat=
"queryChat"
:message=
"item"
></ChatContent>
</div>
</div>
</li>
</li>
...
@@ -49,19 +43,13 @@ export default {
...
@@ -49,19 +43,13 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.right
{
display
:
flex
;
justify-content
:
flex-end
;
}
.my_header
{
display
:
flex
;
align-items
:
center
;
}
.image
{
.image
{
width
:
24px
;
width
:
40px
;
height
:
24px
;
height
:
40px
;
border-radius
:
50%
;
vertical-align
:
top
;
margin-right
:
5px
;
box-shadow
:
0px
6px
8px
0px
rgba
(
78
,
89
,
105
,
0.3
);
border-radius
:
8px
8px
8px
8px
;
border
:
1px
solid
#ffffff
;
}
}
.shabowbox
{
.shabowbox
{
position
:
fixed
;
position
:
fixed
;
...
...
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