Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
chart-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangzhaowei
chart-web
Commits
a57ab097
Commit
a57ab097
authored
Jun 14, 2019
by
looker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fininsh
parent
1332c7e9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
3 deletions
+13
-3
dist.zip
dist.zip
+0
-0
chatlist.vue
src/components/chatlist/chatlist.vue
+4
-1
message.vue
src/components/message/message.vue
+8
-1
user.js
src/store/modules/user.js
+1
-1
No files found.
dist.zip
View file @
a57ab097
No preview for this file type
src/components/chatlist/chatlist.vue
View file @
a57ab097
...
...
@@ -99,7 +99,10 @@ export default {
temp
=
'[视频]'
break
;
case
42
:
temp
=
'[卡片]'
temp
=
'[链接]'
break
;
case
49
:
temp
=
`[小程序]
${
messages
[
messages
.
length
-
1
].
miniTitle
}
`
break
;
case
34
:
temp
=
'[语音]'
...
...
src/components/message/message.vue
View file @
a57ab097
...
...
@@ -17,6 +17,13 @@
<div
class=
"text"
v-html=
"replaceFace(item.content)"
></div>
</div>
</div>
<div
v-if=
"item.type==49"
class=
"main"
:class=
"
{ self: item.isSend }">
<img
class=
"avatar"
width=
"36"
height=
"36"
:src=
"item.isSend ? user.img : selectedChat.user.img||'static/images/weixin.jpg'"
/>
<div
class=
"time"
><span>
{{
item
.
createTime
|
time
}}
</span></div>
<div
class=
"content"
>
小程序[
{{
item
.
miniDescription
}}
],请到手机查看
</div>
</div>
<div
v-if=
"item.type==10000"
class=
"main"
:class=
"
{ self: item.isSend }">
<div
class=
"time"
style=
"text-align: center"
><span>
{{
item
.
createTime
|
time
}}
</span></div>
<div
style=
"text-align: center"
>
...
...
@@ -54,7 +61,7 @@
<span
style=
"font-size: 12px;color: gray"
>
{{
item
.
cardDescription
}}
</span>
</div>
<div
style=
"width: 30%;height: 100%;float: right;"
>
<img
width=
30%
height=
100%
:src=
"
item.cardImageUrl"
alt=
""
>
<img
width=
100%
height=
100%
:src=
"imgUrl+
item.cardImageUrl"
alt=
""
>
</div>
</a>
</div>
...
...
src/store/modules/user.js
View file @
a57ab097
...
...
@@ -161,7 +161,7 @@ const user = {
let
{
chatlist
,
selectId
}
=
state
for
(
let
c
in
chatlist
){
if
(
chatlist
[
c
].
id
==
selectId
){
let
temp
=
[...
value
,
...
chatlist
[
c
].
messages
]
let
temp
=
singel
([...
value
,
...
chatlist
[
c
].
messages
])
let
aotps
=
getAutioLength
(
temp
)
chatlist
[
c
].
messages
=
aotps
.
sort
(
compare
(
'createTime'
))
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment