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
3152c554
Commit
3152c554
authored
Sep 01, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 顾问H5
parent
db23622a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletion
+28
-1
index.vue
src/views/Consultant/Buy/index.vue
+28
-1
No files found.
src/views/Consultant/Buy/index.vue
View file @
3152c554
...
@@ -257,7 +257,34 @@ export default {
...
@@ -257,7 +257,34 @@ export default {
try
{
try
{
const
res
=
await
goPay
({
tradeType
:
this
.
tradeType
,
openId
:
this
.
openId
});
const
res
=
await
goPay
({
tradeType
:
this
.
tradeType
,
openId
:
this
.
openId
});
if
(
res
)
{
if
(
res
)
{
payByWay
(
this
.
tradeType
,
res
.
payInfo
).
then
(()
=>
{
let
payInfo
=
""
;
if
(
res
.
payInfo
&&
res
.
payInfo
.
payUrl
)
{
payInfo
=
{
url
:
res
.
payInfo
.
payUrl
,
params
:
{
tradeType
:
this
.
tradeType
,
openId
:
this
.
openId
,
state
:
1
}
};
}
else
if
(
this
.
tradeType
===
"
JSAPI
"
&&
!
res
.
payUrl
&&
res
.
payInfo
&&
!
res
.
payInfo
.
payUrl
)
{
payInfo
=
res
.
payInfo
;
}
else
{
payInfo
=
{
url
:
res
.
payUrl
,
params
:
{
tradeType
:
this
.
tradeType
,
openId
:
this
.
openId
,
state
:
1
}
};
}
payByWay
(
this
.
tradeType
,
payInfo
).
then
(()
=>
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$parent
.
getOrderInfo
(
true
);
this
.
$parent
.
getOrderInfo
(
true
);
},
1000
);
},
1000
);
...
...
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