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
38b1c38f
Commit
38b1c38f
authored
Jul 29, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接入签约支付
parent
2f2f1a2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
13 deletions
+49
-13
coin-popup.vue
vedio/components/coin-popup/coin-popup.vue
+49
-13
No files found.
vedio/components/coin-popup/coin-popup.vue
View file @
38b1c38f
...
@@ -101,11 +101,11 @@
...
@@ -101,11 +101,11 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
common
from
'@/mixins/common'
;
import
common
from
'@/mixins/common'
;
import
{
import
{
navigateTo
,
navigateTo
,
message
,
message
,
loading
loading
}
from
'@/utils/fun.js'
;
}
from
'@/utils/fun.js'
;
export
default
{
export
default
{
name
:
'coinPopup'
,
name
:
'coinPopup'
,
...
@@ -198,12 +198,12 @@
...
@@ -198,12 +198,12 @@
this
.
handlePay
();
this
.
handlePay
();
},
},
handlePay
()
{
handlePay
()
{
// if (this.os == 'ios') {
if
(
this
.
os
==
'ios'
)
{
// message.notify('暂不支持ios支付');
message
.
notify
(
'暂不支持ios支付'
);
// return
return
// }
}
let
that
=
this
;
let
that
=
this
;
let
vipBean
=
this
.
vipList
[
this
.
selectedIndex
];
let
vipBean
=
this
.
vipList
[
this
.
selectedIndex
];
this
.
post
({
this
.
post
({
...
@@ -217,12 +217,48 @@
...
@@ -217,12 +217,48 @@
success
:
({
success
:
({
data
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
));
}
})
},
onVip
()
{
onVip
()
{
navigateTo
(
`/pagesA/vipPay/vipPay`
)
navigateTo
(
`/pagesA/vipPay/vipPay`
)
this
.
handleClose
();
this
.
handleClose
();
},
},
ttPrePay
(
ttData
,
largeType
)
{
ttPrePay
(
ttData
,
largeType
)
{
...
...
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