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
ccc79a3d
Commit
ccc79a3d
authored
Jan 03, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
d78b06dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
coin-popup.vue
vedio/components/coin-popup/coin-popup.vue
+12
-6
No files found.
vedio/components/coin-popup/coin-popup.vue
View file @
ccc79a3d
<
template
>
<view>
<uni-popup
:type=
"popType"
ref=
"coinPop"
:maskClick=
"false"
:isMaskClick=
"false"
>
<view
class=
"body"
style=
"margin-top: 500rpx;border-radius: 10rpx;"
>
<view
class=
"body"
style=
"margin-top: 500rpx;border-radius: 10rpx;
width: 100%;height: 100%;
"
>
<scroll-view
scroll-y
>
<view
style=
"display: flex;flex-direction: column;align-items: flex-end;"
>
<image
@
click=
"handleClose"
...
...
@@ -114,7 +114,9 @@
},
handleShow
()
{
let
that
=
this
;
that
.
post
({
url
:
'/vip/getVipProducts/point'
,
data
:
{
...
...
@@ -125,7 +127,9 @@
data
})
=>
{
that
.
isFirstPayFlag
=
data
.
forFirst
;
if
(
data
.
list
!=
null
&&
data
.
list
.
length
>
0
)
{
if
(
data
.
list
!=
null
&&
data
.
list
.
length
>
0
)
{
that
.
vipList
=
[];
that
.
firstPayList
=
[];
if
(
that
.
isFirstPayFlag
!=
null
&&
that
.
isFirstPayFlag
)
{
// 符合首充
var
tempFirstPayFlag
=
false
;
...
...
@@ -144,7 +148,8 @@
that
.
title
=
that
.
firstCash
+
' 元自动解锁后续剧集'
;
that
.
showPop
(
'top'
)
that
.
handlePay
()
}
else
{
}
else
{
that
.
showPop
(
'bottom'
)
that
.
vipList
=
data
.
list
;
that
.
title
=
'超多精彩好剧一键解锁'
;
for
(
let
i
=
0
;
i
<
data
.
list
.
length
;
i
++
)
{
...
...
@@ -169,7 +174,7 @@
});
},
handleClose
()
{
this
.
$refs
.
coinPop
.
close
(
'bottom'
);
this
.
$refs
.
coinPop
.
close
(
this
.
popType
);
this
.
$emit
(
'close'
);
},
choosePack
(
item
,
index
)
{
...
...
@@ -282,7 +287,8 @@
},
watch
:
{
show
:
{
handler
:
function
(
newVal
,
oldVal
)
{
handler
:
function
(
newVal
,
oldVal
)
{
if
(
newVal
)
{
this
.
handleShow
();
}
...
...
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