Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
X
xzf_uniapp-wechat-web
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
李智书
xzf_uniapp-wechat-web
Commits
7b2af723
Commit
7b2af723
authored
Mar 10, 2022
by
李智书
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修改支付结果回调;
parent
e1a37f48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
14 deletions
+19
-14
src/pages/StudentPayment/PayOrderDetails/PayOrderDetails.vue
src/pages/StudentPayment/PayOrderDetails/PayOrderDetails.vue
+19
-14
No files found.
src/pages/StudentPayment/PayOrderDetails/PayOrderDetails.vue
View file @
7b2af723
...
...
@@ -140,7 +140,7 @@
selectPayProjectObj
:
{},
selectCount
:
0
,
dialogShow
:
false
,
PaymentRsults
:
1
,
PaymentRsults
:
-
1
,
allData
:
{},
// 交费项目详情信息
ChargeProDetail
:
{},
...
...
@@ -160,15 +160,9 @@
})
if
(
options
.
PaymentRsults
)
{
this_
.
dialogShow
=
true
this
.
PaymentRsults
=
parseInt
(
options
.
PaymentRsults
)
// uni.showLoading({
// mask: true,
// title: "查询支付结果"
// })
// setTimeout(function() {
// uni.hideLoading()
// this_.returnPaymentResult(uni.getStorageSync("prepayId"))
// }, 1000)
this
.
PaymentRsults
=
parseInt
(
options
.
PaymentRsults
);
// 上报支付结果
this
.
returnPaymentResult
(
uni
.
getStorageSync
(
"
prepayId
"
),
this
.
PaymentRsults
)
}
this
.
queryChargeProDetail
()
},
...
...
@@ -243,6 +237,13 @@
try
{
console
.
log
(
"
dialogClosed
"
);
this
.
dialogShow
=
false
if
(
this
.
PaymentRsults
==
1
)
{
// 支付成功返回交费项目列表
uni
.
redirectTo
({
url
:
"
../PayProject/PayProject
"
})
return
}
}
catch
(
e
)
{
//TODO handle the exception
console
.
log
(
e
);
...
...
@@ -411,14 +412,19 @@
}
},
// 返回支付结果
async
returnPaymentResult
(
tradeId
)
{
async
returnPaymentResult
(
tradeId
,
payStatus
)
{
try
{
if
(
!
tradeId
&&
!
payStatus
)
{
return
}
let
data
=
await
this
.
$http
.
get
({
url
:
orderApi
+
'
/order-charge/app/charge/project/returnPaymentResult
'
},
{
tradeId
tradeId
,
payStatus
})
if
(
data
.
data
.
code
!=
200
||
!
data
.
data
.
data
)
{
console
.
log
(
data
)
if
(
data
.
code
!=
200
||
!
data
.
data
)
{
uni
.
showToast
({
icon
:
"
none
"
,
mask
:
true
,
...
...
@@ -426,7 +432,6 @@
})
return
}
this_
.
dialogShow
=
true
}
catch
(
e
)
{
//TODO handle the exception
console
.
log
(
e
);
...
...
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