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
f831908c
Commit
f831908c
authored
Jan 03, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
b50c43c8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
13 deletions
+35
-13
coin-popup.vue
vedio/components/coin-popup/coin-popup.vue
+18
-9
uni-popup.vue
vedio/components/uni-popup/uni-popup.vue
+17
-4
No files found.
vedio/components/coin-popup/coin-popup.vue
View file @
f831908c
...
...
@@ -125,11 +125,16 @@
success
:
({
data
})
=>
{
that
.
isFirstPayFlag
=
data
.
forFirst
;
if
(
data
.
list
!=
null
&&
data
.
list
.
length
>
0
)
{
if
(
that
.
point
>
0
)
{
that
.
isFirstPayFlag
=
data
.
forFirst
;
}
else
{
that
.
isFirstPayFlag
=
false
;
}
that
.
vipList
=
[];
that
.
firstPayList
=
[];
if
(
that
.
isFirstPayFlag
!=
null
&&
that
.
isFirstPayFlag
)
{
if
(
that
.
isFirstPayFlag
!=
null
&&
that
.
isFirstPayFlag
&&
that
.
point
>
0
)
{
// 符合首充
var
tempFirstPayFlag
=
false
;
for
(
let
i
=
0
;
i
<
data
.
list
.
length
;
i
++
)
{
...
...
@@ -138,18 +143,22 @@
tempFirstPayFlag
=
true
;
that
.
firstPayList
.
push
(
data
.
list
[
i
]);
that
.
firstCash
=
data
.
list
[
i
].
firstPayPrice
;
that
.
title
=
that
.
firstCash
+
' 元
自动解锁后续
剧集'
;
that
.
title
=
that
.
firstCash
+
' 元
继续观看精彩
剧集'
;
}
else
{
that
.
vipList
.
push
(
data
.
list
[
i
]);
}
}
th
is
.
showAnim
=
false
th
at
.
showAnim
=
false
that
.
showPop
(
'top'
)
that
.
handlePay
()
}
else
{
th
is
.
showAnim
=
true
th
at
.
showAnim
=
true
that
.
showPop
(
'bottom'
)
that
.
vipList
=
data
.
list
;
for
(
let
i
=
0
;
i
<
data
.
list
.
length
;
i
++
)
{
if
(
data
.
list
[
i
].
forFirst
!=
1
)
{
that
.
vipList
.
push
(
data
.
list
[
i
]);
}
}
that
.
title
=
'超多精彩好剧一键解锁'
;
for
(
let
i
=
0
;
i
<
data
.
list
.
length
;
i
++
)
{
if
(
data
.
list
[
i
].
activityType
==
1
)
{
...
...
@@ -231,7 +240,7 @@
setTimeout
(()
=>
{
that
.
title
=
'超多精彩好剧一键解锁'
;
that
.
isFirstPayFlag
=
false
that
.
showPop
(
'bottom'
)
that
.
showPop
(
'bottom
Pay
'
)
},
100
);
}
else
{
// message.notify(errMsg);
...
...
vedio/components/uni-popup/uni-popup.vue
View file @
f831908c
...
...
@@ -2,7 +2,8 @@
<
template
>
<view
v-if=
"showPopup"
class=
"uni-popup"
@
touchmove
.
stop
.
prevent=
"clear"
>
<uni-transition
:mode-class=
"['fade']"
:styles=
"maskClass"
:duration=
"duration"
:show=
"showTrans"
@
click=
"onTap"
/>
<uni-transition
:mode-class=
"['fade']"
:styles=
"maskClass"
:duration=
"duration"
:show=
"showTrans"
@
click=
"onTap"
/>
<uni-transition
:mode-class=
"ani"
:styles=
"transClass"
:duration=
"duration"
:show=
"showTrans"
@
click=
"onTap"
>
<view
class=
"uni-popup__wrapper-box"
@
click
.
stop=
"clear"
>
<slot
/>
...
...
@@ -79,6 +80,7 @@
'left'
:
0
,
'right'
:
0
,
}
this
.
duration
=
0
break
case
'bottom'
:
this
.
ani
=
[
'slide-bottom'
]
...
...
@@ -88,6 +90,17 @@
'right'
:
0
,
'bottom'
:
0
}
this
.
duration
=
300
break
case
'bottomPay'
:
this
.
ani
=
[
'slide-bottom'
]
this
.
transClass
=
{
'position'
:
'fixed'
,
'left'
:
0
,
'right'
:
0
,
'bottom'
:
0
}
this
.
duration
=
0
break
case
'center'
:
this
.
ani
=
[
'zoom-out'
,
'fade'
]
...
...
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