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
61c89c1d
Commit
61c89c1d
authored
Sep 03, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/policy_add' into 'master'
fix: 顾问支付完成回传测试 See merge request
!215
parents
a27b5bad
810a33bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
index.vue
src/views/Consultant/Buy/index.vue
+16
-7
index.vue
src/views/Consultant/index.vue
+1
-0
No files found.
src/views/Consultant/Buy/index.vue
View file @
61c89c1d
...
@@ -112,7 +112,7 @@ export default {
...
@@ -112,7 +112,7 @@ export default {
remain
:
0
,
remain
:
0
,
price
:
[
0.99
,
199
],
price
:
[
0.99
,
199
],
consultantOrderNo
:
""
,
consultantOrderNo
:
""
,
openId
:
localStorage
.
get
(
"
openId
"
),
openId
:
localStorage
.
get
(
"
openId
"
)
||
undefined
,
isPayWait
:
false
,
isPayWait
:
false
,
tradeType
:
isXyqb
?
"
MWEB
"
:
isWeixinBrower
?
"
JSAPI
"
:
"
MWEB
"
,
tradeType
:
isXyqb
?
"
MWEB
"
:
isWeixinBrower
?
"
JSAPI
"
:
"
MWEB
"
,
serviceList
:
[
serviceList
:
[
...
@@ -269,15 +269,24 @@ export default {
...
@@ -269,15 +269,24 @@ export default {
},
1000
);
},
1000
);
};
};
try
{
try
{
const
res
=
await
goPay
({
tradeType
:
this
.
tradeType
,
openId
:
this
.
openId
});
let
{
tradeType
,
openId
}
=
this
;
if
(
!
openId
)
{
openId
=
undefined
;
}
const
_param
=
{
tradeType
,
openId
,
channelId
:
isXyqb
?
2
:
isWeixinBrower
?
1
:
undefined
};
const
res
=
await
goPay
(
_param
);
if
(
res
)
{
if
(
res
)
{
let
payInfo
=
""
;
let
payInfo
=
""
;
if
(
res
.
payInfo
&&
res
.
payInfo
.
payUrl
)
{
if
(
res
.
payInfo
&&
res
.
payInfo
.
payUrl
)
{
payInfo
=
{
payInfo
=
{
url
:
res
.
payInfo
.
payUrl
,
url
:
res
.
payInfo
.
payUrl
,
params
:
{
params
:
{
tradeType
:
this
.
tradeType
,
tradeType
,
openId
:
this
.
openId
,
openId
,
isConsultant
:
1
,
isConsultant
:
1
,
state
:
1
state
:
1
}
}
...
@@ -293,14 +302,14 @@ export default {
...
@@ -293,14 +302,14 @@ export default {
payInfo
=
{
payInfo
=
{
url
:
res
.
payUrl
,
url
:
res
.
payUrl
,
params
:
{
params
:
{
tradeType
:
this
.
tradeType
,
tradeType
,
isConsultant
:
1
,
isConsultant
:
1
,
openId
:
this
.
openId
,
openId
,
state
:
1
state
:
1
}
}
};
};
}
}
payByWay
(
t
his
.
t
radeType
,
payInfo
)
payByWay
(
tradeType
,
payInfo
)
.
then
(()
=>
{
.
then
(()
=>
{
getOrderInfo
();
getOrderInfo
();
})
})
...
...
src/views/Consultant/index.vue
View file @
61c89c1d
...
@@ -64,6 +64,7 @@ export default {
...
@@ -64,6 +64,7 @@ export default {
...
mapActions
[
"
setIsLoading
"
],
...
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
)
{
console
.
log
(
checkPayState
);
if
(
!
this
.
isLogin
)
return
;
if
(
!
this
.
isLogin
)
return
;
this
.
showQuestion
=
false
;
this
.
showQuestion
=
false
;
const
res
=
await
getCulOrder
();
const
res
=
await
getCulOrder
();
...
...
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