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
提交
24348ba2
提交
24348ba2
编写于
2月 21, 2023
作者:
张磊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update guide app
上级
cd6cdabf
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
12 行增加
和
13 行删除
+12
-13
httpExtension.js
src/plugins/httpExtension.js
+2
-2
index.vue
src/views/appoint/index.vue
+9
-1
index.vue
src/views/home/index.vue
+1
-10
未找到文件。
src/plugins/httpExtension.js
浏览文件 @
24348ba2
import
$http
from
'mn-template/plugins/http'
;
import
$http
from
'mn-template/plugins/http'
;
//
import { Toast } from 'vant';
import
{
Toast
}
from
'vant'
;
// 设置axios默认属性
// 设置axios默认属性
$http
.
setDefaults
({
$http
.
setDefaults
({
headers
:
{}
headers
:
{}
...
@@ -19,7 +19,7 @@ $http.addBeforeHook(config => console.log('我是新增的前置钩子', config)
...
@@ -19,7 +19,7 @@ $http.addBeforeHook(config => console.log('我是新增的前置钩子', config)
$http
.
addAfterHook
(
response
=>
{
$http
.
addAfterHook
(
response
=>
{
if
(
response
.
code
!==
'000000'
)
{
if
(
response
.
code
!==
'000000'
)
{
//
Toast(response.data.message);
Toast
(
response
.
data
.
message
);
}
}
console
.
log
(
'我是新增的后置钩子'
,
response
);
console
.
log
(
'我是新增的后置钩子'
,
response
);
},
0
);
},
0
);
src/views/appoint/index.vue
浏览文件 @
24348ba2
...
@@ -399,6 +399,7 @@ export default {
...
@@ -399,6 +399,7 @@ export default {
this
.
dectionForm
.
beneficiaryPhone
=
res
.
data
.
beneficiaryPhone
;
this
.
dectionForm
.
beneficiaryPhone
=
res
.
data
.
beneficiaryPhone
;
this
.
dectionForm
.
beneficiaryIdNum
=
res
.
data
.
beneficiaryIdNum
;
this
.
dectionForm
.
beneficiaryIdNum
=
res
.
data
.
beneficiaryIdNum
;
this
.
$store
.
dispatch
(
'home/setOrderInfo'
,
res
.
data
);
this
.
$store
.
dispatch
(
'home/setOrderInfo'
,
res
.
data
);
});
});
},
},
selectTimes
(
times
)
{
selectTimes
(
times
)
{
...
@@ -446,7 +447,14 @@ export default {
...
@@ -446,7 +447,14 @@ export default {
yunOrderNo
:
this
.
yunOrderNo
,
yunOrderNo
:
this
.
yunOrderNo
,
};
};
appointment
(
data
).
then
(
res
=>
{
appointment
(
data
).
then
(
res
=>
{
console
.
log
(
'confirm'
,
res
);
if
(
res
.
code
===
'000000'
)
{
this
.
$router
.
push
({
path
:
'/appoint-details'
,
query
:
{
yunOrderNo
:
this
.
yunOrderNo
}
});
}
});
});
},
},
...
...
src/views/home/index.vue
浏览文件 @
24348ba2
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
<
script
>
<
script
>
import
{
getJumpPageStatus
}
from
'@/api/question'
;
import
{
getJumpPageStatus
}
from
'@/api/question'
;
import
{
getOrderInfo
}
from
'@/api/appoint'
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -27,7 +26,6 @@ export default {
...
@@ -27,7 +26,6 @@ export default {
if
(
res
.
code
==
'000000'
)
{
if
(
res
.
code
==
'000000'
)
{
this
.
yunOrderNo
=
res
.
data
.
yunOrderNo
;
this
.
yunOrderNo
=
res
.
data
.
yunOrderNo
;
this
.
query
.
yunOrderNo
=
res
.
data
.
yunOrderNo
;
this
.
query
.
yunOrderNo
=
res
.
data
.
yunOrderNo
;
this
.
getOrderInfo
(
res
.
data
.
yunOrderNo
);
this
.
status
=
res
.
data
.
status
;
this
.
status
=
res
.
data
.
status
;
switch
(
res
.
data
.
status
)
{
switch
(
res
.
data
.
status
)
{
case
'0001'
:
case
'0001'
:
...
@@ -65,14 +63,7 @@ export default {
...
@@ -65,14 +63,7 @@ export default {
this
.
$router
.
push
({
this
.
$router
.
push
({
path
,
query
path
,
query
});
});
},
}
getOrderInfo
(
yunOrderNo
)
{
getOrderInfo
(
yunOrderNo
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
)
{
this
.
$store
.
dispatch
(
'home/setOrderInfo'
,
res
.
data
);
}
});
},
}
}
};
};
</
script
>
</
script
>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录