Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
mongo-ui
Commits
25cfa286
Commit
25cfa286
authored
Aug 29, 2020
by
郝聪敏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/fix_pay_router' into 'master'
fix: 修改定时刷新问题、修改续费跳转路由 See merge request
!133
parents
13006a5c
5a0c4a62
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
detailPay.mixin.js
src/views/Goods/Detail/modules/detailPay.mixin.js
+5
-1
index.vue
src/views/Policy/Detail/index.vue
+6
-5
No files found.
src/views/Goods/Detail/modules/detailPay.mixin.js
View file @
25cfa286
...
@@ -100,7 +100,11 @@ export default {
...
@@ -100,7 +100,11 @@ export default {
// expectResult为true时期望支付结果成功,否则继续执行
// expectResult为true时期望支付结果成功,否则继续执行
if
(
expectResult
&&
!
payRes
?.
result
)
return
;
if
(
expectResult
&&
!
payRes
?.
result
)
return
;
// 清除定时器
// 清除定时器
if
(
this
.
timer
)
clearInterval
(
this
.
timer
);
if
(
this
.
timer
)
window
.
clearInterval
(
this
.
timer
);
// payOrderNo为月计划订单时跳转保单列表
if
(
+
payType
===
2
)
{
this
.
$router
.
replace
(
`/policy`
);
}
// 根据状态跳转页面
// 根据状态跳转页面
const
status
=
await
this
.
getPolicyStatus
(
orderNo
);
const
status
=
await
this
.
getPolicyStatus
(
orderNo
);
if
([
"
6.2-3
"
,
"
6.1-3
"
].
includes
(
status
))
{
if
([
"
6.2-3
"
,
"
6.1-3
"
].
includes
(
status
))
{
...
...
src/views/Policy/Detail/index.vue
View file @
25cfa286
...
@@ -36,7 +36,7 @@ export default {
...
@@ -36,7 +36,7 @@ export default {
},
},
async
created
()
{
async
created
()
{
await
this
.
getPolicy
();
await
this
.
getPolicy
();
if
(
this
.
$route
?.
query
?.
isWxH5
)
{
if
(
this
.
$route
?.
query
?.
isWxH5
&&
+
this
.
policy
?.
payState
!==
3
)
{
this
.
$dialog
({
this
.
$dialog
({
message
:
"
请确认是否已经完成了微信免密支付签约
"
,
message
:
"
请确认是否已经完成了微信免密支付签约
"
,
onCancel
:
this
.
refresh
,
onCancel
:
this
.
refresh
,
...
@@ -55,11 +55,12 @@ export default {
...
@@ -55,11 +55,12 @@ export default {
payType
:
this
.
policy
?.
payInfo
?.
payOrderType
,
payType
:
this
.
policy
?.
payInfo
?.
payOrderType
,
orderNo
:
this
.
policy
?.
orderNo
orderNo
:
this
.
policy
?.
orderNo
};
};
this
.
timer
=
setInterval
(()
=>
this
.
getPayResult
(
true
),
3000
);
this
.
timer
=
window
.
setInterval
(()
=>
this
.
getPayResult
(
true
),
3000
);
this
.
$once
(
"
hook:beforeDestroy
"
,
()
=>
{
window
.
clearInterval
(
this
.
timer
);
this
.
timer
=
null
;
});
}
}
},
beforeDestroy
()
{
clearInterval
(
this
.
timer
);
}
}
};
};
</
script
>
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment