Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-insurance
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.frontend
pica-insurance
提交
f6e78f3f
提交
f6e78f3f
编写于
2月 21, 2023
作者:
张敬贤
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add
上级
85eb2485
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
2 行增加
和
3 行删除
+2
-3
main.js
src/main.js
+1
-2
index.vue
src/views/appointDetails/index.vue
+1
-1
未找到文件。
src/main.js
浏览文件 @
f6e78f3f
...
@@ -62,9 +62,8 @@ window.Vue.use(Loading);
...
@@ -62,9 +62,8 @@ window.Vue.use(Loading);
window
.
_AMapSecurityConfig
=
{
window
.
_AMapSecurityConfig
=
{
securityJsCode
:
'5dfc1ae6a14ad5c005ffb2ad6d718ae4'
securityJsCode
:
'5dfc1ae6a14ad5c005ffb2ad6d718ae4'
};
};
// 获取位置信息
// 获取位置信息
腾讯地图api
var
geolocation
=
new
qq
.
maps
.
Geolocation
();
var
geolocation
=
new
qq
.
maps
.
Geolocation
();
console
.
log
(
'geolocation'
,
geolocation
.
getLocation
);
geolocation
.
getLocation
(
function
(
result
)
{
geolocation
.
getLocation
(
function
(
result
)
{
console
.
log
(
'result'
,
result
);
console
.
log
(
'result'
,
result
);
storejs
.
set
(
'geolocation'
,
result
);
storejs
.
set
(
'geolocation'
,
result
);
...
...
src/views/appointDetails/index.vue
浏览文件 @
f6e78f3f
...
@@ -243,7 +243,7 @@ export default {
...
@@ -243,7 +243,7 @@ export default {
// http://api.map.baidu.com/direction?origin=latlng:34.264642646862,108.95108518068|name:我家&destination=大雁塔&mode=driving®ion=西安&output=html&src=webapp.baidu.openAPIdemo
// http://api.map.baidu.com/direction?origin=latlng:34.264642646862,108.95108518068|name:我家&destination=大雁塔&mode=driving®ion=西安&output=html&src=webapp.baidu.openAPIdemo
// https://lbsyun.baidu.com/index.php?title=uri/api/web api地址
// https://lbsyun.baidu.com/index.php?title=uri/api/web api地址
url
=
'http://api.map.baidu.com/direction?origin=latlng:'
+
latitude
+
','
+
longitude
+
'&destination='
+
geolocation
.
lat
+
','
+
geolocation
.
lng
+
+
'&output=html&src=webapp.baidu.openAPIdemo&coord_type=bd09ll'
;
url
=
'http://api.map.baidu.com/direction?origin=latlng:'
+
latitude
+
','
+
longitude
+
'&destination='
+
geolocation
.
lat
+
','
+
geolocation
.
lng
+
'&output=html&src=webapp.baidu.openAPIdemo&coord_type=bd09ll'
;
break
;
break
;
default
:
default
:
url
=
'https://uri.amap.com/marker?&name='
+
hospitalName
+
'&position='
+
longitude
+
','
+
latitude
+
'&callnative=1'
;
url
=
'https://uri.amap.com/marker?&name='
+
hospitalName
+
'&position='
+
longitude
+
','
+
latitude
+
'&callnative=1'
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录