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
825c2290
Commit
825c2290
authored
Sep 03, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 顾问追加loading
parent
6ffb94e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
index.vue
src/views/Consultant/index.vue
+4
-1
No files found.
src/views/Consultant/index.vue
View file @
825c2290
...
...
@@ -17,7 +17,7 @@ import Buy from "./Buy";
import
Success
from
"
./Success
"
;
import
Question
from
"
./Question
"
;
import
Exclusive
from
"
./Exclusive
"
;
import
{
mapState
}
from
"
vuex
"
;
import
{
mapState
,
mapActions
}
from
"
vuex
"
;
import
localStorage
from
"
@/service/localStorage
"
;
import
{
getCulOrder
,
getPayState
}
from
"
@/api/consultant
"
;
export
default
{
...
...
@@ -61,6 +61,7 @@ export default {
this
.
getOrderInfo
(
fromPay
);
},
methods
:
{
...
mapActions
[
"
setIsLoading
"
],
// 1-待支付,3-支付成功,4-问卷收集完成,方案配置中,5-方案配置完成, -1 -支付失败订单关闭,-2 -支付超过1小时订单关闭,-3 -订单关闭
async
getOrderInfo
(
checkPayState
=
false
)
{
if
(
!
this
.
isLogin
)
return
;
...
...
@@ -75,12 +76,14 @@ export default {
}
},
async
getPayState
()
{
this
.
setIsLoading
(
true
);
const
res
=
await
getPayState
({
consultantOrderNo
:
this
.
orderInfo
[
0
].
consultantOrderNo
});
if
(
res
.
state
===
2
)
{
setTimeout
(()
=>
{
this
.
getPayState
();
},
3000
);
}
else
{
this
.
setIsLoading
(
false
);
this
.
getOrderInfo
();
}
},
...
...
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