Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
h5-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
new-sing
h5-base
Commits
23b8e891
Commit
23b8e891
authored
Sep 12, 2019
by
IvyXia123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付接口调试
parent
fb9f29a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
buy.vue
src/components/buy/buy.vue
+6
-5
No files found.
src/components/buy/buy.vue
View file @
23b8e891
...
...
@@ -380,11 +380,12 @@ export default {
let
payTypeArr
=
[
'WX'
,
'ALI'
,
'KFQ'
]
let
data
=
{
pay_type
:
payTypeArr
[
this
.
payIndex
],
return_url
:
window
.
location
.
href
,
goods_id
:
json
.
goods_id
,
buy_type
:
this
.
groupDetail
.
goods_type
,
group_order_id
:
json
.
group_order_id
,
order_coupon_id
:
json
.
order_coupon_id
}
postPayBillApi
(
data
).
then
(
res
=>
{
/*
postPayBillApi(data).then(res => {
if(this.payIndex === 0) {
console
.
log
(
9999
)
this.orderNo = res.out_trade_no;
if (res.out_trade_no && !res.appId) {
console.log(9999)
getCourseInfoApi().then(res => {
this.userCourse = res;
localStorage.setItem(
...
...
@@ -428,9 +429,9 @@ export default {
}else if(this.payIndex === 2) {
this.payUrl = res.pay_url;
}
})
})
*/
/*
payApi(json).then(res => {
payApi
(
json
).
then
(
res
=>
{
this
.
orderNo
=
res
.
out_trade_no
;
console
.
log
(
res
)
if
(
res
.
out_trade_no
&&
!
res
.
appId
)
{
...
...
@@ -475,7 +476,7 @@ export default {
.
catch
(
res
=>
{
// alert(res)
this
.
orderFlag
=
true
;
});
*/
});
}
},
closeAdd
(
data
)
{
...
...
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