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
提交
f5a3cf95
提交
f5a3cf95
编写于
2月 22, 2023
作者:
张敬贤
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'feature/zjx' into 'develop'
add See merge request
!68
上级
7a6c2d74
3f39f247
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
35 行增加
和
15 行删除
+35
-15
question.js
src/api/question.js
+2
-2
index.vue
src/views/home/index.vue
+33
-13
未找到文件。
src/api/question.js
浏览文件 @
f5a3cf95
...
...
@@ -9,10 +9,10 @@ export const getButtonStatus = (id) => {
};
// 根据订单号获取跳转页状态/
// /tis/insurance/jumpPageStatus?orderNo=1&projectEquityNo=1
export
const
getJumpPageStatus
=
({
externalOrderNo
,
projectEquityNo
})
=>
{
export
const
getJumpPageStatus
=
({
externalOrderNo
,
yunOrderNo
,
projectEquityNo
})
=>
{
return
request
({
method
:
'get'
,
url
:
`/tis/insurance/jumpPageStatus?externalOrderNo=
${
externalOrderNo
}
&projectEquityNo=
${
projectEquityNo
}
`
,
url
:
`/tis/insurance/jumpPageStatus?externalOrderNo=
${
externalOrderNo
}
&projectEquityNo=
${
projectEquityNo
}
&yunOrderNo=
${
yunOrderNo
}
`
,
withCredentials
:
true
,
});
};
...
...
src/views/home/index.vue
浏览文件 @
f5a3cf95
...
...
@@ -37,16 +37,38 @@ export default {
dectionData
:
{},
projectEquityNo
:
''
,
externalOrderNo
:
''
,
query
:{}
query
:
{},
yunOrderNo
:
''
,
};
},
mounted
()
{
const
{
projectEquityNo
,
externalOrderNo
}
=
this
.
$route
.
query
;
this
.
query
=
this
.
$route
.
query
;
this
.
projectEquityNo
=
projectEquityNo
;
this
.
externalOrderNo
=
externalOrderNo
;
this
.
$loading
.
show
();
this
.
query
=
this
.
$route
.
query
;
if
(
this
.
query
.
projectEquityNo
&&
this
.
query
.
externalOrderNo
)
{
const
{
projectEquityNo
,
externalOrderNo
}
=
this
.
$route
.
query
;
this
.
projectEquityNo
=
projectEquityNo
;
this
.
externalOrderNo
=
externalOrderNo
;
const
data
=
{
yunOrderNo
:
''
,
projectEquityNo
,
externalOrderNo
};
this
.
initMap
(
data
);
}
if
(
this
.
query
.
referer
)
{
const
url
=
this
.
query
.
referer
;
const
yunOrderNo
=
url
.
split
(
'@@'
)[
1
];
console
.
log
(
'this.query.referer'
,
yunOrderNo
);
const
data
=
{
yunOrderNo
,
projectEquityNo
:
''
,
externalOrderNo
:
''
,
};
this
.
initMap
(
data
);
}
// get geolocation
// var that = this;
// var geolocation = new qq.maps.Geolocation();
...
...
@@ -58,11 +80,11 @@ export default {
// console.log('err', result);
// that.getJumpPageStatus();
// });
this
.
initMap
();
},
methods
:
{
// 高德地图导航只有在线上环境才能使用
initMap
()
{
initMap
(
data
)
{
// latitude: 70
// longitude: 50.2
// const data = {
...
...
@@ -72,6 +94,7 @@ export default {
// };
// that.getHospitalList(data);
var
that
=
this
;
AMapLoader
.
load
({
key
:
'009dd02e4fe0a1b5f895cd7b86b9e216'
,
// 申请好的Web端开发者Key,首次调用 load 时必填
plugins
:[
''
],
// 需要使用的的插件列表,如比例尺'AMap.Scale'等
...
...
@@ -95,7 +118,7 @@ export default {
const
position
=
{
...
result
.
position
,
addr
:
result
.
formattedAddress
};
storejs
.
set
(
'geolocation'
,
position
);
}
that
.
getJumpPageStatus
();
that
.
getJumpPageStatus
(
data
);
});
...
...
@@ -118,11 +141,8 @@ export default {
});
},
// 获取跳转状态
getJumpPageStatus
()
{
const
data
=
{
externalOrderNo
:
this
.
externalOrderNo
,
projectEquityNo
:
this
.
projectEquityNo
};
getJumpPageStatus
(
data
)
{
getJumpPageStatus
(
data
).
then
(
res
=>
{
console
.
log
(
'getJumpPageStatus'
,
res
);
if
(
res
.
code
==
'000000'
)
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录