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
d78b06dd
Commit
d78b06dd
authored
Jan 03, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化样式
parent
193e8b24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
9 deletions
+21
-9
coin-popup.vue
vedio/components/coin-popup/coin-popup.vue
+21
-9
No files found.
vedio/components/coin-popup/coin-popup.vue
View file @
d78b06dd
<
template
>
<view>
<uni-popup
type=
"bottom
"
ref=
"coinPop"
:maskClick=
"false"
:isMaskClick=
"false"
>
<view
class=
"body"
style=
"
width: 100%;height: 100%
;"
>
<uni-popup
:type=
"popType
"
ref=
"coinPop"
:maskClick=
"false"
:isMaskClick=
"false"
>
<view
class=
"body"
style=
"
margin-top: 500rpx;border-radius: 10rpx
;"
>
<scroll-view
scroll-y
>
<view
style=
"display: flex;flex-direction: column;align-items: flex-end;"
>
<image
@
click=
"handleClose"
style=
"width: 30rpx;height: 30rpx;display: flex;align-items: right;margin-top: 20rpx;margin-right: 20rpx;margin-bottom: 10rpx;"
src=
"@/static/index/ic_quit_white.png"
></image
>
src=
"@/static/index/ic_quit_white.png"
/
>
</view>
<view
style=
"display: flex;flex-direction: column;align-items: center;margin-bottom: 20rpx;"
>
<view
style=
"font-size: 38rpx;color: black;"
>
{{
title
}}
</view>
...
...
@@ -97,10 +97,16 @@
selectedIndex
:
0
,
title
:
'超多精彩好剧一键解锁'
,
userBean
:
{},
isFirstPayFlag
:
false
showClone
:
false
,
isFirstPayFlag
:
false
,
popType
:
'bottom'
,
};
},
methods
:
{
showPop
(
type
)
{
this
.
popType
=
type
this
.
$refs
.
coinPop
.
open
(
'bottom'
);
},
// 支付完成回调
paySuccess
(
largeType
)
{
this
.
$emit
(
'paySuccess'
,
largeType
);
...
...
@@ -108,7 +114,6 @@
},
handleShow
()
{
let
that
=
this
;
this
.
$refs
.
coinPop
.
open
(
'bottom'
);
that
.
post
({
url
:
'/vip/getVipProducts/point'
,
...
...
@@ -128,14 +133,16 @@
if
(
data
.
list
[
i
].
forFirst
==
1
&&
!
tempFirstPayFlag
)
{
// 首充
tempFirstPayFlag
=
true
;
that
.
firstPayList
.
push
(
data
.
list
[
i
]);
that
.
firstCash
=
data
.
list
[
i
].
firstPayPrice
;
that
.
firstPayList
.
push
(
data
.
list
[
i
]);
that
.
firstCash
=
data
.
list
[
i
].
firstPayPrice
;
that
.
title
=
that
.
firstCash
+
' 元自动解锁后续剧集'
;
}
else
{
that
.
vipList
.
push
(
data
.
list
[
i
]);
}
}
that
.
firstCash
=
data
.
list
[
0
].
firstPayPrice
;
that
.
title
=
that
.
firstCash
+
' 元自动解锁后续剧集'
;
that
.
showPop
(
'top'
)
that
.
handlePay
()
}
else
{
that
.
vipList
=
data
.
list
;
...
...
@@ -216,10 +223,15 @@
if
(
that
.
isFirstPayFlag
&&
errCode
==
-
2
)
{
// 符合首充
that
.
handleClose
()
setTimeout
(()
=>
{
that
.
isFirstPayFlag
=
false
that
.
showPop
(
'bottom'
)
},
500
);
}
else
{
// message.notify(errMsg);
}
}
,
}
})
}
else
{
message
.
notify
(
'当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'
);
...
...
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