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 70d724b9
authored
Mar 11, 2021
by
qiyeqing
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
会话地图显示
1 parent
0b0758fa
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
10 deletions
linkwe-ui/package.json
linkwe-ui/public/index.html
linkwe-ui/src/main.js
linkwe-ui/src/views/conversation/component/chat.vue
linkwe-ui/src/views/conversation/page/employeeTest.vue
linkwe-ui/package.json
View file @
70d724b
...
@@ -66,6 +66,7 @@
...
@@ -66,6 +66,7 @@
"video.js"
:
"^7.11.4"
,
"video.js"
:
"^7.11.4"
,
"videojs-contrib-hls"
:
"^5.15.0"
,
"videojs-contrib-hls"
:
"^5.15.0"
,
"vue"
:
"2.6.10"
,
"vue"
:
"2.6.10"
,
"vue-amap"
:
"^0.5.10"
,
"vue-count-to"
:
"1.0.13"
,
"vue-count-to"
:
"1.0.13"
,
"vue-cropper"
:
"0.4.9"
,
"vue-cropper"
:
"0.4.9"
,
"vue-quill-editor"
:
"3.0.6"
,
"vue-quill-editor"
:
"3.0.6"
,
...
...
linkwe-ui/public/index.html
View file @
70d724b
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
<meta
name=
"renderer"
content=
"webkit"
>
<meta
name=
"renderer"
content=
"webkit"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<script
type=
"text/javascript"
src=
"//api.map.baidu.com/api?v=2.0&ak=wI3zLlyN01Ej3ZD6ZD4WiuoE8N6AC6Lm"
></script>
<title>
<
%= VUE_APP_TITLE %>
</title>
<title>
<
%= VUE_APP_TITLE %>
</title>
<style>
<style>
html
,
html
,
...
...
linkwe-ui/src/main.js
View file @
70d724b
...
@@ -72,6 +72,15 @@ import VideoPlayer from 'vue-video-player'
...
@@ -72,6 +72,15 @@ import VideoPlayer from 'vue-video-player'
import
'@liripeng/vue-audio-player/lib/vue-audio-player.css'
import
'@liripeng/vue-audio-player/lib/vue-audio-player.css'
Vue
.
use
(
AudioPlayer
)
Vue
.
use
(
AudioPlayer
)
import
VueAMap
from
'vue-amap'
;
Vue
.
use
(
VueAMap
);
VueAMap
.
initAMapApiLoader
({
key
:
'32396af00cd726deed804cf5b63ed2d8'
,
plugin
:
[
'AMap.Autocomplete'
,
'AMap.PlaceSearch'
,
'AMap.Scale'
,
'AMap.OverView'
,
'AMap.ToolBar'
,
'AMap.MapType'
,
'AMap.PolyEditor'
,
'AMap.CircleEditor'
],
v
:
'1.4.4'
});
// 全局组件挂载
// 全局组件挂载
Vue
.
component
(
'Pagination'
,
Pagination
)
Vue
.
component
(
'Pagination'
,
Pagination
)
Vue
.
component
(
'RightToolbar'
,
RightToolbar
)
Vue
.
component
(
'RightToolbar'
,
RightToolbar
)
...
...
linkwe-ui/src/views/conversation/component/chat.vue
View file @
70d724b
<
template
>
<
template
>
<div
class=
"takecontent"
>
<div
class=
"takecontent"
>
<ul>
<ul>
<li
v-for=
"(item,index) in allChat"
:key=
"index"
>
<li
v-for=
"(item,index) in allChat"
:key=
"index"
>
<!--
<span
v-if=
"item.fromInfo.name"
>
{{
item
.
fromInfo
.
name
}}
</span>
-->
<!--
<span
v-if=
"item.fromInfo.name"
>
{{
item
.
fromInfo
.
name
}}
</span>
-->
<div
:style=
"
{'color':item.action=='send'?'#199ed8':'#999'}">
<span
v-if=
"item.fromInfo"
>
{{
item
.
fromInfo
.
name
}}
</span>
<span
<div
:style=
"
{'color':item.action=='send'?'#199ed8':'#999'}">
<span
v-if=
"item.fromInfo"
>
{{
item
.
fromInfo
.
name
}}
</span>
<span
:style=
"
{'color':item.action=='send'?'#199ed8':'#999'}">
{{
parseTime
(
item
.
msgtime
)
}}
</span></div>
:style=
"
{'color':item.action=='send'?'#199ed8':'#999'}">
{{
parseTime
(
item
.
msgtime
)
}}
</span></div>
<div
v-if=
"item.msgtype=='text'"
class=
"msgtypetext"
>
<div
v-if=
"item.msgtype=='text'"
class=
"msgtypetext"
>
{{
item
.
text
.
content
}}
{{
item
.
text
.
content
}}
</div>
</div>
<div
v-else-if=
"item.msgtype=='image'"
class=
"msgtypeimg"
>
<div
v-else-if=
"item.msgtype=='image'"
class=
"msgtypeimg"
>
<img
:src=
"item.image.attachment"
@
click=
"showImg(item)"
>
<img
:src=
"item.image.attachment"
@
click=
"showImg(item)"
>
</div>
</div>
...
@@ -24,12 +26,15 @@
...
@@ -24,12 +26,15 @@
<div
v-else-if=
"item.msgtype=='video'"
class=
"msgtypevideo"
>
<div
v-else-if=
"item.msgtype=='video'"
class=
"msgtypevideo"
>
<i
class=
"el-icon-video-play"
style=
" font-size: 40px; color: #199ed8;"
@
click=
"play(item,'video')"
></i>
<i
class=
"el-icon-video-play"
style=
" font-size: 40px; color: #199ed8;"
@
click=
"play(item,'video')"
></i>
</div>
</div>
<div
v-else-if=
"item.msgtype=='location'"
class=
"msgtypecard"
>
<div
v-else-if=
"item.msgtype=='location'"
class=
"msgtypecard "
>
<div
class=
"card_name"
>
<div
class=
"card_name"
></div>
<el-amap
ref=
"map"
vid=
"amapDemo"
:center=
"[item.location.longitude, item.location.latitude]"
:zoom=
"zoom"
class=
"amap-demo"
style=
"pointer-events: none;"
>
<div
class=
"card_foot"
>
{{
item
.
location
.
address
}}
</div>
<el-amap-marker
:position=
"[item.location.longitude, item.location.latitude]"
></el-amap-marker>
</el-amap>
</div>
</div>
<div
v-else-if=
"item.msgtype=='weapp'"
class=
"msgtypecard "
>
<div
class=
"card_foot"
>
{{
item
.
location
.
address
}}
</div>
</div>
<div
v-else-if=
"item.msgtype=='weapp'"
class=
"msgtypecard"
>
<div
class=
"card_name"
></div>
<div
class=
"card_name"
></div>
<div
class=
"card_foot"
>
小程序
</div>
<div
class=
"card_foot"
>
小程序
</div>
</div>
</div>
...
@@ -69,7 +74,7 @@
...
@@ -69,7 +74,7 @@
<
script
>
<
script
>
import
{
AMapManager
}
from
'vue-amap'
;
import
'video.js/dist/video-js.css'
import
'video.js/dist/video-js.css'
import
'vue-video-player/src/custom-theme.css'
import
'vue-video-player/src/custom-theme.css'
...
@@ -78,14 +83,16 @@
...
@@ -78,14 +83,16 @@
yearMouthDay
yearMouthDay
}
from
'@/utils/common.js'
}
from
'@/utils/common.js'
export
default
{
export
default
{
components
:{
AMapManager
},
props
:
{
props
:
{
allChat
:
{
allChat
:
{
type
:
Array
,
type
:
Array
,
defluat
:
()
=>
[]
defluat
:
()
=>
[]
}
}
},
},
mounted
(){
},
data
()
{
data
()
{
return
{
return
{
dia
:
false
,
dia
:
false
,
...
@@ -111,10 +118,28 @@
...
@@ -111,10 +118,28 @@
width
:
document
.
documentElement
.
clientWidth
,
width
:
document
.
documentElement
.
clientWidth
,
height
:
'475'
,
height
:
'475'
,
notSupportedMessage
:
'此视频暂无法播放,请稍后再试'
//允许覆盖Video.js无法播放媒体源时显示的默认信息。
notSupportedMessage
:
'此视频暂无法播放,请稍后再试'
//允许覆盖Video.js无法播放媒体源时显示的默认信息。
},
zoom
:
15
,
center
:
[
117.148118
,
36.660223
],
markers
:
[
{
position
:
[
117.148118
,
36.660223
],
visible
:
false
,
draggable
:
false
,
}
}
]
}
}
},
},
methods
:
{
methods
:
{
playVideo
(
e
){
playVideo
(
e
){
this
.
vioceSrc
=
[
e
.
voice
.
attachment
]
this
.
vioceSrc
=
[
e
.
voice
.
attachment
]
this
.
diavioce
=
true
;
this
.
diavioce
=
true
;
...
@@ -184,6 +209,8 @@
...
@@ -184,6 +209,8 @@
}
}
.card_name
{
.card_name
{
width
:
320px
;
height
:
105px
;
line-height
:
80px
;
line-height
:
80px
;
text-indent
:
10px
;
text-indent
:
10px
;
}
}
...
@@ -208,7 +235,7 @@
...
@@ -208,7 +235,7 @@
}
}
.msgtypecard
{
.msgtypecard
{
width
:
3
0
0px
;
width
:
3
2
0px
;
height
:
140px
;
height
:
140px
;
margin
:
10px
;
margin
:
10px
;
border-radius
:
8px
;
border-radius
:
8px
;
...
...
linkwe-ui/src/views/conversation/page/employeeTest.vue
View file @
70d724b
...
@@ -280,7 +280,6 @@
...
@@ -280,7 +280,6 @@
chatFn
(
data
)
{
chatFn
(
data
)
{
this
.
chat
=
data
;
this
.
chat
=
data
;
if
(
data
)
{
if
(
data
)
{
console
.
log
(
122132
)
this
.
activeNameThreeClick
()
this
.
activeNameThreeClick
()
}
}
},
},
...
...
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