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
1d7db962
Commit
1d7db962
authored
Dec 11, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加快手支付
parent
361662c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
5 deletions
+31
-5
coin-popup.vue
vedio/components/coin-popup/coin-popup.vue
+29
-4
manifest.json
vedio/manifest.json
+2
-1
No files found.
vedio/components/coin-popup/coin-popup.vue
View file @
1d7db962
...
...
@@ -157,7 +157,19 @@
// 快手支付
// #ifdef MP-KUAISHOU
this
.
post
({
url
:
'/vip/getVipPayParams/kuaishou'
,
data
:
{
vedioId
:
that
.
point
<=
0
?
null
:
that
.
vedioId
,
pid
:
vipBean
.
pid
},
showLoading
:
true
,
success
:
({
data
})
=>
{
that
.
ksPay
(
data
,
vipBean
.
largeType
);
}
});
// #endif
// 抖音支付
...
...
@@ -195,6 +207,20 @@
// #endif
},
ksPay
(
ksData
,
largeType
)
{
let
that
=
this
;
ks
.
pay
({
serviceId
:
ksData
.
params
.
serviceId
,
orderInfo
:
ksData
.
params
.
orderInfo
,
paymentChannel
:
ksData
.
params
.
paymentChannel
,
success
()
{
that
.
queryOrderStatus
(
largeType
,
ksData
.
tidStr
)
},
fail
()
{
message
.
notify
(
'支付失败'
);
},
})
},
ttPay
(
ttData
,
largeType
)
{
let
that
=
this
;
...
...
@@ -204,14 +230,13 @@
order_token
:
ttData
.
params
.
order_token
,
},
service
:
5
,
success
(
res
)
{
success
(
res
)
{
if
(
res
.
code
==
0
)
{
// 拉取服务器,是否支付成功
that
.
queryOrderStatus
(
largeType
,
ttData
.
tidStr
)
}
},
fail
(
res
)
{
fail
(
res
)
{
message
.
notify
(
res
.
errMsg
);
},
});
...
...
vedio/manifest.json
View file @
1d7db962
...
...
@@ -193,7 +193,8 @@
"mp-kuaishou"
:
{
"uniStatistics"
:
{
"enable"
:
false
}
},
"appid"
:
"ks702843017315155644"
},
"mp-lark"
:
{
"uniStatistics"
:
{
...
...
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