Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
仟微科技
Link Wechat
提交
70d724b9
Link Wechat
项目概览
仟微科技
/
Link Wechat
通知
48
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Link Wechat
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
70d724b9
编写于
3月 11, 2021
作者:
篮球鞋的袜子
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
会话地图显示
上级
0b0758fa
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
49 addition
and
12 deletion
+49
-12
linkwe-ui/package.json
linkwe-ui/package.json
+1
-0
linkwe-ui/public/index.html
linkwe-ui/public/index.html
+1
-0
linkwe-ui/src/main.js
linkwe-ui/src/main.js
+9
-0
linkwe-ui/src/views/conversation/component/chat.vue
linkwe-ui/src/views/conversation/component/chat.vue
+38
-11
linkwe-ui/src/views/conversation/page/employeeTest.vue
linkwe-ui/src/views/conversation/page/employeeTest.vue
+0
-1
未找到文件。
linkwe-ui/package.json
浏览文件 @
70d724b9
...
...
@@ -66,6 +66,7 @@
"video.js"
:
"^7.11.4"
,
"videojs-contrib-hls"
:
"^5.15.0"
,
"vue"
:
"2.6.10"
,
"vue-amap"
:
"^0.5.10"
,
"vue-count-to"
:
"1.0.13"
,
"vue-cropper"
:
"0.4.9"
,
"vue-quill-editor"
:
"3.0.6"
,
...
...
linkwe-ui/public/index.html
浏览文件 @
70d724b9
...
...
@@ -7,6 +7,7 @@
<meta
name=
"renderer"
content=
"webkit"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
>
<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>
<style>
html
,
...
...
linkwe-ui/src/main.js
浏览文件 @
70d724b9
...
...
@@ -72,6 +72,15 @@ import VideoPlayer from 'vue-video-player'
import
'
@liripeng/vue-audio-player/lib/vue-audio-player.css
'
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
(
'
RightToolbar
'
,
RightToolbar
)
...
...
linkwe-ui/src/views/conversation/component/chat.vue
浏览文件 @
70d724b9
<
template
>
<div
class=
"takecontent"
>
<ul>
<li
v-for=
"(item,index) in allChat"
:key=
"index"
>
<!--
<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
: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
}}
</div>
<div
v-else-if=
"item.msgtype=='image'"
class=
"msgtypeimg"
>
<img
:src=
"item.image.attachment"
@
click=
"showImg(item)"
>
</div>
...
...
@@ -24,12 +26,15 @@
<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>
</div>
<div
v-else-if=
"item.msgtype=='location'"
class=
"msgtypecard "
>
<div
class=
"card_name"
></div>
<div
class=
"card_foot"
>
{{
item
.
location
.
address
}}
</div>
<div
v-else-if=
"item.msgtype=='location'"
class=
"msgtypecard"
>
<div
class=
"card_name"
>
<el-amap
ref=
"map"
vid=
"amapDemo"
:center=
"[item.location.longitude, item.location.latitude]"
:zoom=
"zoom"
class=
"amap-demo"
style=
"pointer-events: none;"
>
<el-amap-marker
:position=
"[item.location.longitude, item.location.latitude]"
></el-amap-marker>
</el-amap>
</div>
<div
class=
"card_foot"
>
{{
item
.
location
.
address
}}
</div>
</div>
<div
v-else-if=
"item.msgtype=='weapp'"
class=
"msgtypecard
"
>
<div
v-else-if=
"item.msgtype=='weapp'"
class=
"msgtypecard"
>
<div
class=
"card_name"
></div>
<div
class=
"card_foot"
>
小程序
</div>
</div>
...
...
@@ -69,7 +74,7 @@
<
script
>
import
{
AMapManager
}
from
'
vue-amap
'
;
import
'
video.js/dist/video-js.css
'
import
'
vue-video-player/src/custom-theme.css
'
...
...
@@ -78,14 +83,16 @@
yearMouthDay
}
from
'
@/utils/common.js
'
export
default
{
components
:{
AMapManager
},
props
:
{
allChat
:
{
type
:
Array
,
defluat
:
()
=>
[]
}
},
mounted
(){
},
data
()
{
return
{
dia
:
false
,
...
...
@@ -111,10 +118,28 @@
width
:
document
.
documentElement
.
clientWidth
,
height
:
'
475
'
,
notSupportedMessage
:
'
此视频暂无法播放,请稍后再试
'
//允许覆盖Video.js无法播放媒体源时显示的默认信息。
}
},
zoom
:
15
,
center
:
[
117.148118
,
36.660223
],
markers
:
[
{
position
:
[
117.148118
,
36.660223
],
visible
:
false
,
draggable
:
false
,
}
]
}
},
methods
:
{
playVideo
(
e
){
this
.
vioceSrc
=
[
e
.
voice
.
attachment
]
this
.
diavioce
=
true
;
...
...
@@ -184,6 +209,8 @@
}
.card_name
{
width
:
320px
;
height
:
105px
;
line-height
:
80px
;
text-indent
:
10px
;
}
...
...
@@ -208,7 +235,7 @@
}
.msgtypecard
{
width
:
3
0
0px
;
width
:
3
2
0px
;
height
:
140px
;
margin
:
10px
;
border-radius
:
8px
;
...
...
linkwe-ui/src/views/conversation/page/employeeTest.vue
浏览文件 @
70d724b9
...
...
@@ -280,7 +280,6 @@
chatFn
(
data
)
{
this
.
chat
=
data
;
if
(
data
)
{
console
.
log
(
122132
)
this
.
activeNameThreeClick
()
}
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录