Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
9f15b38f
Commit
9f15b38f
authored
Nov 15, 2023
by
侯体倬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付报错处理
parent
8576c3d2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletions
+24
-1
src/pages/wxPay/index.vue
+20
-0
src/pages/wxPay/main.json
+4
-1
No files found.
src/pages/wxPay/index.vue
View file @
9f15b38f
<
template
>
<div>
<div
class=
"domain"
>
{{
message
}}
</div>
<van-dialog
use-slot
:show=
"isShow"
@
confirm=
"handleConfirm"
>
<div
class=
"dialog-content__wrapper"
>
<div>
当前订单处在支付中,可能是以下情况:
</div>
<div>
* 您的前一比付款未完成
</div>
<div>
* 您的好友正在帮你付款
</div>
<div
style=
"margin-top: 10px;"
>
为避免重复支持,请稍后确认支付
</div>
</div>
</van-dialog>
</div>
</
template
>
<
script
>
...
...
@@ -95,6 +105,7 @@ export default {
totalMoney
:
""
,
scene
:
""
,
//sso
backUrl
:
""
,
isShow
:
false
,
};
},
onLoad
(
options
)
{
...
...
@@ -256,6 +267,8 @@ export default {
// }
};
wx
.
requestPayment
(
payData
);
}
else
if
([
'504'
,
'505'
].
includes
(
res
.
data
.
code
))
{
this
.
isShow
=
true
;
}
else
{
wx
.
showToast
({
title
:
res
.
data
.
msg
,
icon
:
"none"
});
}
...
...
@@ -299,6 +312,9 @@ export default {
)}
`
,
});
},
handleConfirm
()
{
wx
.
navigateBack
();
},
},
};
</
script
>
...
...
@@ -308,4 +324,8 @@ export default {
text-align
:
center
;
padding-top
:
50%
;
}
.dialog-content__wrapper
{
padding
:
16px
;
}
</
style
>
src/pages/wxPay/main.json
View file @
9f15b38f
{
"navigationBarTitleText"
:
"支付"
"navigationBarTitleText"
:
"支付"
,
"usingComponents"
:
{
"van-dialog"
:
"/static/vant/dialog/index"
}
}
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