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
a27b5bad
Commit
a27b5bad
authored
Sep 03, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/policy_add' into 'master'
Fix/policy add See merge request
!214
parents
db7d5c38
825c2290
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
index.vue
src/views/Consultant/index.vue
+6
-2
index.vue
src/views/Policy/PayWaiting/index.vue
+1
-1
No files found.
src/views/Consultant/index.vue
View file @
a27b5bad
...
@@ -17,7 +17,7 @@ import Buy from "./Buy";
...
@@ -17,7 +17,7 @@ import Buy from "./Buy";
import
Success
from
"
./Success
"
;
import
Success
from
"
./Success
"
;
import
Question
from
"
./Question
"
;
import
Question
from
"
./Question
"
;
import
Exclusive
from
"
./Exclusive
"
;
import
Exclusive
from
"
./Exclusive
"
;
import
{
mapState
}
from
"
vuex
"
;
import
{
mapState
,
mapActions
}
from
"
vuex
"
;
import
localStorage
from
"
@/service/localStorage
"
;
import
localStorage
from
"
@/service/localStorage
"
;
import
{
getCulOrder
,
getPayState
}
from
"
@/api/consultant
"
;
import
{
getCulOrder
,
getPayState
}
from
"
@/api/consultant
"
;
export
default
{
export
default
{
...
@@ -57,9 +57,11 @@ export default {
...
@@ -57,9 +57,11 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
getOrderInfo
();
const
fromPay
=
this
.
$route
.
query
.
from
&&
this
.
$route
.
query
.
from
===
"
wxh5
"
;
this
.
getOrderInfo
(
fromPay
);
},
},
methods
:
{
methods
:
{
...
mapActions
[
"
setIsLoading
"
],
// 1-待支付,3-支付成功,4-问卷收集完成,方案配置中,5-方案配置完成, -1 -支付失败订单关闭,-2 -支付超过1小时订单关闭,-3 -订单关闭
// 1-待支付,3-支付成功,4-问卷收集完成,方案配置中,5-方案配置完成, -1 -支付失败订单关闭,-2 -支付超过1小时订单关闭,-3 -订单关闭
async
getOrderInfo
(
checkPayState
=
false
)
{
async
getOrderInfo
(
checkPayState
=
false
)
{
if
(
!
this
.
isLogin
)
return
;
if
(
!
this
.
isLogin
)
return
;
...
@@ -74,12 +76,14 @@ export default {
...
@@ -74,12 +76,14 @@ export default {
}
}
},
},
async
getPayState
()
{
async
getPayState
()
{
this
.
setIsLoading
(
true
);
const
res
=
await
getPayState
({
consultantOrderNo
:
this
.
orderInfo
[
0
].
consultantOrderNo
});
const
res
=
await
getPayState
({
consultantOrderNo
:
this
.
orderInfo
[
0
].
consultantOrderNo
});
if
(
res
.
state
===
2
)
{
if
(
res
.
state
===
2
)
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
getPayState
();
this
.
getPayState
();
},
3000
);
},
3000
);
}
else
{
}
else
{
this
.
setIsLoading
(
false
);
this
.
getOrderInfo
();
this
.
getOrderInfo
();
}
}
},
},
...
...
src/views/Policy/PayWaiting/index.vue
View file @
a27b5bad
...
@@ -28,7 +28,7 @@ export default {
...
@@ -28,7 +28,7 @@ export default {
this
.
orderInfo
=
this
.
$route
.
query
;
this
.
orderInfo
=
this
.
$route
.
query
;
// 如果存在isXyqb,同时当前不是在信用钱包环境
// 如果存在isXyqb,同时当前不是在信用钱包环境
if
(
this
.
orderInfo
.
isConsultant
)
{
if
(
this
.
orderInfo
.
isConsultant
)
{
this
.
$router
.
replace
(
"
/consultant
"
);
this
.
$router
.
replace
(
{
path
:
"
/consultant
"
,
query
:
{
from
:
"
wxh5
"
}
}
);
return
;
return
;
}
else
if
(
}
else
if
(
(
this
.
orderInfo
.
isXyqb
==
1
||
(
this
.
orderInfo
.
isXyqb
==
1
||
...
...
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