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
6100dccf
Commit
6100dccf
authored
Jul 29, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接入签约支付
parent
809e16d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
2 deletions
+38
-2
coin-popup.vue
vedio/components/coin-popup/coin-popup.vue
+38
-2
No files found.
vedio/components/coin-popup/coin-popup.vue
View file @
6100dccf
...
...
@@ -188,10 +188,46 @@
showLoading
:
true
,
success
:
({
data
})
=>
{
that
.
ttPrePay
(
data
,
vipBean
.
largeType
);
})
=>
{
if
(
vipBean
.
trial
==
1
){
// 签约
that
.
ttCreateSignOrder
(
data
,
vipBean
.
largeType
);
}
else
{
that
.
ttPrePay
(
data
,
vipBean
.
largeType
);
}
}
});
},
ttCreateSignOrder
(
ttData
,
largeType
)
{
if
(
!
tt
.
canIUse
(
'createSignOrder'
))
{
message
.
notify
(
'请升级抖音APP版本.'
);
return
}
if
(
!
tt
.
canIUse
(
'sign'
))
{
message
.
notify
(
'请升级抖音APP版本.'
);
return
}
let
that
=
this
;
tt
.
createSignOrder
({
businessType
:
2
,
data
:
ttData
.
params
.
data
,
byteAuthorization
:
ttData
.
params
.
byteAuthorization
,
success
:
(
res
)
=>
{
tt
.
sign
({
businessType
:
2
,
orderId
:
res
.
authOrderId
,
success
:
(
res
)
=>
{
that
.
queryOrderStatus
(
largeType
,
ttData
.
tidStr
);
}
})
},
fail
:
(
res
)
=>
{
console
.
log
(
'createSignOrdercreateSignOrder->:'
,
JSON
.
stringify
(
res
));
}
})
},
ttPrePay
(
ttData
,
largeType
)
{
if
(
!
tt
.
canIUse
(
'requestOrder'
))
{
...
...
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