Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_scan
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_scan
Commits
0f59e708
Commit
0f59e708
authored
Jul 29, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加签约支付
parent
ed6b9c04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
1 deletion
+37
-1
vipPay.vue
scan/pagesA/vipPay/vipPay.vue
+37
-1
No files found.
scan/pagesA/vipPay/vipPay.vue
View file @
0f59e708
...
...
@@ -158,9 +158,45 @@
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