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
提交
d3907d03
提交
d3907d03
编写于
2月 21, 2023
作者:
张敬贤
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add
上级
86b13f3f
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
91 行增加
和
42 行删除
+91
-42
question.js
src/api/question.js
+11
-1
main.js
src/main.js
+1
-0
index.vue
src/views/appointDetails/index.vue
+0
-1
index.vue
src/views/home/index.vue
+79
-40
未找到文件。
src/api/question.js
浏览文件 @
d3907d03
...
...
@@ -9,10 +9,20 @@ export const getButtonStatus = (id) => {
};
// 根据订单号获取跳转页状态/
// /tis/insurance/jumpPageStatus?orderNo=1&projectEquityNo=1
export
const
getJumpPageStatus
=
(
orderNo
,
projectEquityNo
)
=>
{
export
const
getJumpPageStatus
=
(
{
orderNo
,
projectEquityNo
}
)
=>
{
return
request
({
method
:
'get'
,
url
:
`/tis/insurance/jumpPageStatus?orderNo=
${
orderNo
}
&projectEquityNo=
${
projectEquityNo
}
`
,
withCredentials
:
true
,
});
};
// https://dev-sc.yunqueyi.com/tis/insurance/create/order
export
const
createOrder
=
(
data
)
=>
{
return
request
({
method
:
'post'
,
data
,
url
:
'/tis/insurance/create/order'
,
withCredentials
:
true
,
});
};
src/main.js
浏览文件 @
d3907d03
...
...
@@ -39,6 +39,7 @@ document.documentElement.addEventListener(
vueApp
.
$rocNative
.
appInit
();
vueApp
.
$rocNative
.
on
(
'wx_ready'
,
function
()
{
console
.
log
(
'-wx_ready-'
,
window
.
_picaWechat
);
// 初始化wx jssdk 后 执行 脚手架将 wx 对象挂在到 $rocNative对象上,后执行 小程序环境判断方法 miniProgram.getEnv
vueApp
.
$rocNative
.
WXInstance
.
miniProgram
.
getEnv
(
function
(
res
)
{
console
.
log
(
'_miniprogram'
,
res
.
miniprogram
);
// true
window
.
_miniprogram
=
res
.
miniprogram
;
...
...
src/views/appointDetails/index.vue
浏览文件 @
d3907d03
...
...
@@ -239,7 +239,6 @@ export default {
break
;
case
2
:
// https://lbs.qq.com/webApi/uriV1/uriGuide/uriWebMarker api地址
url
=
'https://apis.map.qq.com/uri/v1/geocoder?coord='
+
latitude
+
','
+
longitude
+
'&referer=PICA'
;
break
;
case
3
:
...
...
src/views/home/index.vue
浏览文件 @
d3907d03
...
...
@@ -3,28 +3,47 @@
</
template
>
<
script
>
import
{
getJumpPageStatus
}
from
'@/api/question'
;
import
{
getJumpPageStatus
,
createOrder
}
from
'@/api/question'
;
import
{
getDetectionName
}
from
'@/api/appoint'
;
export
default
{
data
()
{
return
{
// 无问卷-0001 有问卷未填写-0101 已填写问卷未出结果-0102 已出结果无需领用-0401 已出结果未预约-0201 已预约未采样-0301 已预约已采样-0302
// // 0102 已填写问卷
// // 0201 待预约
// // 0202 已预约
// // 0203 已取消待重新预约(暂时无用)
// // 0301 待采样 (暂时无用)
// // 0302 已采样
// // 0303 待重新采样
// // 0901 已结束
// // 0902 已出报告
// // 变化如下:
// // 原来的 已出报告状态从0304变更为0901, 原来的已结束状态0401变更为0902
routerMap
:{
'0001'
:
'/appoint'
,
'0101'
:
null
,
//
'0001': '/appoint',
//
'0101': null,
'0102'
:
'/insuranceQuestionBack'
,
'0401'
:
'/insuranceQuestionResult'
,
//
'0401': '/insuranceQuestionResult',
'0201'
:
'/appoint'
,
'0301'
:
'/appoint-details'
,
'0302'
:
'/insuranceBindCode'
,
'0202'
:
'/appoint-details'
,
// '0203': '/appoint-details',
'0302'
:
'/insuranceDetectionDetail'
,
'0303'
:
'/insuranceBindCode'
,
'0901'
:
'/insuranceQuestionResult'
,
// '0902': '/insuranceBindCode',
},
dectionData
:
{},
projectEquityNo
:
''
,
orderNo
:
''
orderNo
:
''
,
query
:{}
};
},
mounted
()
{
const
{
projectEquityNo
,
orderNo
}
=
this
.
$route
.
query
;
this
.
query
=
this
.
$route
.
query
;
this
.
projectEquityNo
=
projectEquityNo
;
this
.
orderNo
=
orderNo
;
this
.
getJumpPageStatus
();
...
...
@@ -45,45 +64,65 @@ export default {
},
// 获取跳转状态
getJumpPageStatus
()
{
getJumpPageStatus
(
this
.
orderNo
,
this
.
projectEquityNo
).
then
(
res
=>
{
const
data
=
{
orderNo
:
this
.
orderNo
,
projectEquityNo
:
this
.
projectEquityNo
};
getJumpPageStatus
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
)
{
this
.
yunOrderNo
=
res
.
data
.
yunOrderNo
;
this
.
query
.
yunOrderNo
=
res
.
data
.
yunOrderNo
;
this
.
status
=
res
.
data
.
status
;
this
.
getDetectionName
(
this
.
yunOrderNo
);
switch
(
res
.
data
.
status
)
{
case
'0001'
:
this
.
turnToPage
(
this
.
routerMap
[
this
.
status
],
this
.
query
);
break
;
case
'0101'
:
// this.turnToPage(this.routerMap[ this.status], this.query);
// 跳转到问卷页面
window
.
location
.
href
=
res
.
data
.
url
;
break
;
case
'0102'
:
// 跳转到结果页面;
this
.
turnToPage
(
this
.
routerMap
[
this
.
status
],
this
.
query
);
break
;
case
'0401'
:
this
.
query
.
needDetect
=
1
;
this
.
turnToPage
(
this
.
routerMap
[
this
.
status
],
this
.
query
);
break
;
case
'0201'
:
this
.
turnToPage
(
this
.
routerMap
[
this
.
status
],
this
.
query
);
break
;
case
'0301'
:
this
.
turnToPage
(
this
.
routerMap
[
this
.
status
],
this
.
query
);
break
;
case
'0302'
:
this
.
turnToPage
(
this
.
routerMap
[
this
.
status
],
this
.
query
);
break
;
default
:
break
;
if
(
res
.
data
.
yunOrderNo
&&
res
.
data
.
yunOrderNo
!=
''
)
{
this
.
checkStatus
(
res
);
}
else
{
// https://dev-sc.yunqueyi.com/tis/insurance/create/order
this
.
createOrder
(
data
);
}
}
});
},
checkStatus
(
res
)
{
this
.
yunOrderNo
=
res
.
data
.
yunOrderNo
;
this
.
query
.
yunOrderNo
=
res
.
data
.
yunOrderNo
;
this
.
status
=
res
.
data
.
status
;
this
.
getDetectionName
(
this
.
yunOrderNo
);
switch
(
res
.
data
.
status
)
{
case
'0001'
:
this
.
turnToPage
(
this
.
routerMap
[
this
.
status
],
this
.
query
);
break
;
case
'0101'
:
// this.turnToPage(this.routerMap[ this.status], this.query);
// 跳转到问卷页面
window
.
location
.
href
=
res
.
data
.
questionnaireUrl
;
break
;
case
'0102'
:
// 跳转到结果页面;
this
.
turnToPage
(
this
.
routerMap
[
this
.
status
],
this
.
query
);
break
;
case
'0401'
:
this
.
query
.
needDetect
=
1
;
this
.
turnToPage
(
this
.
routerMap
[
this
.
status
],
this
.
query
);
break
;
case
'0201'
:
this
.
turnToPage
(
this
.
routerMap
[
this
.
status
],
this
.
query
);
break
;
case
'0301'
:
this
.
turnToPage
(
this
.
routerMap
[
this
.
status
],
this
.
query
);
break
;
case
'0302'
:
this
.
turnToPage
(
this
.
routerMap
[
this
.
status
],
this
.
query
);
break
;
default
:
break
;
}
},
createOrder
(
data
)
{
createOrder
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
)
{
this
.
checkStatus
(
res
);
}
});
},
turnToPage
(
path
,
query
)
{
this
.
$router
.
push
({
path
,
query
});
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录