Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_vedio
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
android
uniapp_vedio
Commits
58f42a10
Commit
58f42a10
authored
Nov 13, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付成功添加类型区分
parent
8e8a75e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
coin-popup.vue
vedio/components/coin-popup/coin-popup.vue
+5
-5
my.vue
vedio/pages/my/my.vue
+3
-1
No files found.
vedio/components/coin-popup/coin-popup.vue
View file @
58f42a10
...
...
@@ -93,8 +93,8 @@
},
methods
:
{
// 支付完成回调
paySuccess
()
{
this
.
$emit
(
'paySuccess'
);
paySuccess
(
largeType
)
{
this
.
$emit
(
'paySuccess'
,
largeType
);
this
.
handleClose
();
},
handleShow
()
{
...
...
@@ -146,11 +146,11 @@
success
:
({
data
})
=>
{
that
.
wxPay
(
data
);
that
.
wxPay
(
data
,
vipBean
.
largeType
);
}
});
},
wxPay
(
wxData
)
{
wxPay
(
wxData
,
largeType
)
{
let
wxParams
=
wxData
.
params
;
let
that
=
this
;
// 发起微信支付
...
...
@@ -161,7 +161,7 @@
signType
:
wxParams
.
signType
,
paySign
:
wxParams
.
paySign
,
success
(
res
)
{
that
.
paySuccess
();
that
.
paySuccess
(
largeType
);
},
fail
(
res
)
{
}
...
...
vedio/pages/my/my.vue
View file @
58f42a10
...
...
@@ -204,7 +204,9 @@
}
})
},
paySuccess
()
{
paySuccess
(
largeType
)
{
// largeType=vip 开通vip
// largeType=point 购买看点
message
.
notify
(
'支付成功'
);
this
.
post
({
...
...
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