Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_wechat
Overview
Overview
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
pseer
gxpt_wechat
Commits
038a744f
Commit
038a744f
authored
Jan 20, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加订单取消支付后进行取消订单
parent
391d9995
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletions
+15
-1
order.js
api/order.js
+6
-0
order.vue
pages/order/order.vue
+9
-1
No files found.
api/order.js
View file @
038a744f
...
...
@@ -62,4 +62,9 @@ export const noLoginOpenDoor=(orderNo)=>{
export
const
noLoginGetOrderInfo
=
(
orderNo
)
=>
{
let
url
=
`/openInterface/order/info?orderNo=
${
orderNo
}
`
return
http
.
get
(
url
)
}
export
const
orderCancelPay
=
(
data
)
=>
{
let
url
=
`/order/cancelPay`
return
http
.
post
(
url
,
data
)
}
\ No newline at end of file
pages/order/order.vue
View file @
038a744f
...
...
@@ -358,7 +358,8 @@
import
{
orderCreate
,
computePrice
,
getOrderInfoByNo
getOrderInfoByNo
,
orderCancelPay
}
from
"@/api/order"
export
default
{
...
...
@@ -1287,12 +1288,19 @@
})
},
"fail"
:
(
resp
)
=>
{
console
.
log
(
resp
,
"支付失败"
)
// 取消支付或支付失败
uni
.
showToast
({
title
:
"取消支付"
})
orderCancelPay
({
orderNo
:
res
.
data
.
data
.
orderNo
}).
then
(
res
=>
{
console
.
log
(
res
)
})
},
"complete"
:
(
resp
)
=>
{
console
.
log
(
resp
,
"支付完成"
)
// 接口调用结束的回调函数(调用成功、失败都会执行)
}
});
...
...
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