Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jd-vx-app
Project
Project
Details
Activity
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
Administrator
jd-vx-app
Commits
185f68c2
Commit
185f68c2
authored
May 08, 2022
by
肖健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付失败调用取消订单接口修复
parent
c531bcda
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
getCarCode.vue
pagesA/pages/index/getCarCode.vue
+3
-3
pay.vue
pagesC/pages/shop/pay.vue
+7
-1
No files found.
pagesA/pages/index/getCarCode.vue
View file @
185f68c2
...
@@ -194,7 +194,7 @@ export default {
...
@@ -194,7 +194,7 @@ export default {
url
:
'/app/mall/create/order'
,
url
:
'/app/mall/create/order'
,
method
:
'post'
method
:
'post'
};
};
th
is
.
http
.
httpTokenRequest
(
opts
,
this
.
createOrder
).
then
(
res
=>
{
th
at
.
http
.
httpTokenRequest
(
opts
,
this
.
createOrder
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
let
orderIds
=
res
.
data
.
data
let
orderIds
=
res
.
data
.
data
if
(
orderIds
&&
orderIds
.
length
>
0
)
{
if
(
orderIds
&&
orderIds
.
length
>
0
)
{
...
@@ -207,7 +207,7 @@ export default {
...
@@ -207,7 +207,7 @@ export default {
url
:
'/app/pay/order/submit/more'
,
url
:
'/app/pay/order/submit/more'
,
method
:
'post'
method
:
'post'
}
}
th
is
.
http
.
httpTokenRequest
(
opts
,
that
.
orderSubmit
).
then
(
res
=>
{
th
at
.
http
.
httpTokenRequest
(
opts
,
that
.
orderSubmit
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
let
paymentData
=
res
.
data
.
data
.
invokeResponse
;
let
paymentData
=
res
.
data
.
data
.
invokeResponse
;
uni
.
requestPayment
({
uni
.
requestPayment
({
...
@@ -226,7 +226,7 @@ export default {
...
@@ -226,7 +226,7 @@ export default {
//console.log('支付失败',err);
//console.log('支付失败',err);
if
(
that
.
orderSubmit
.
ids
!==
undefined
&&
that
.
orderSubmit
.
ids
!==
null
&&
that
.
orderSubmit
.
ids
.
length
>
0
){
if
(
that
.
orderSubmit
.
ids
!==
undefined
&&
that
.
orderSubmit
.
ids
!==
null
&&
that
.
orderSubmit
.
ids
.
length
>
0
){
let
opts
=
{
url
:
'/app/mall/cancel/order'
,
method
:
'post'
}
let
opts
=
{
url
:
'/app/mall/cancel/order'
,
method
:
'post'
}
th
is
.
http
.
httpTokenRequest
(
opts
,
that
.
orderSubmit
.
ids
).
then
(
res
=>
{
th
at
.
http
.
httpTokenRequest
(
opts
,
{
"ids"
:
that
.
orderSubmit
.
ids
}
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
){
if
(
res
.
data
.
code
==
200
){
}
}
...
...
pagesC/pages/shop/pay.vue
View file @
185f68c2
...
@@ -141,7 +141,7 @@ export default {
...
@@ -141,7 +141,7 @@ export default {
//console.log('支付失败',err);
//console.log('支付失败',err);
if
(
that
.
orderSubmit
.
ids
!==
undefined
&&
that
.
orderSubmit
.
ids
!==
null
&&
that
.
orderSubmit
.
ids
.
length
>
0
){
if
(
that
.
orderSubmit
.
ids
!==
undefined
&&
that
.
orderSubmit
.
ids
!==
null
&&
that
.
orderSubmit
.
ids
.
length
>
0
){
let
opts
=
{
url
:
'/app/mall/cancel/order'
,
method
:
'post'
}
let
opts
=
{
url
:
'/app/mall/cancel/order'
,
method
:
'post'
}
th
is
.
http
.
httpTokenRequest
(
opts
,
that
.
orderSubmit
.
ids
).
then
(
res
=>
{
th
at
.
http
.
httpTokenRequest
(
opts
,
{
"ids"
:
that
.
orderSubmit
.
ids
}
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
){
if
(
res
.
data
.
code
==
200
){
}
}
...
@@ -153,6 +153,12 @@ export default {
...
@@ -153,6 +153,12 @@ export default {
}
}
})
})
}
else
{
uni
.
showToast
({
title
:
res
.
data
.
msg
,
icon
:
'none'
,
duration
:
2000
,
});
}
}
})
})
...
...
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