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
da5fed19
Commit
da5fed19
authored
Jun 06, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化样式
parent
7d089bb1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
14 deletions
+18
-14
ad-more-popup.vue
vedio/components/ad-more-popup/ad-more-popup.vue
+1
-1
ad-popup.vue
vedio/components/ad-popup/ad-popup.vue
+13
-9
ttVideoDetail.vue
vedio/pagesC/ttvideo/ttVideoDetail.vue
+4
-4
No files found.
vedio/components/ad-more-popup/ad-more-popup.vue
View file @
da5fed19
...
...
@@ -59,8 +59,8 @@
<
style
lang=
"scss"
>
.container
{
margin-top
:
-200rpx
;
width
:
600rpx
;
height
:
800rpx
;
position
:
relative
;
display
:
flex
;
flex-direction
:
column
;
...
...
vedio/components/ad-popup/ad-popup.vue
View file @
da5fed19
...
...
@@ -14,7 +14,7 @@
<text
class=
"title"
>
恭喜你,获得免费看剧名额
</text>
<text
class=
"button-ad"
@
click=
"handleAd"
>
看视频免费解锁1集
</text>
<text
class=
"button-vip"
@
click=
"handleVip"
>
免广告解锁
</text>
<text
class=
"downtext"
>
{{
countDown
}}
s后自动进入广告,观看完成解锁第
{{
vedioIndex
+
1
}}
集剧情
</text>
<text
v-show=
"showTime"
class=
"downtext"
>
{{
countDown
}}
s后自动进入广告,观看完成解锁第
{{
vedioIndex
+
1
}}
集剧情
</text>
</view>
</view>
</uni-popup>
...
...
@@ -42,7 +42,8 @@
return
{
adUnitId
:
EXPRESS_ID
,
countDown
:
3
,
timer
:
''
timer
:
''
,
showTime
:
false
};
},
methods
:
{
...
...
@@ -52,7 +53,7 @@
},
startCountdown
()
{
let
that
=
this
;
that
.
showTime
=
true
var
countDownSeconds
=
3
that
.
countDown
=
countDownSeconds
this
.
timer
=
setInterval
(()
=>
{
...
...
@@ -65,17 +66,20 @@
}
},
1000
)
},
handleAd
()
{
handleAd
()
{
this
.
showTime
=
false
clearInterval
(
this
.
timer
)
// this.$refs.adPop.close('center');
this
.
$emit
(
'handleAd'
);
},
handleVip
()
{
handleVip
()
{
this
.
showTime
=
false
clearInterval
(
this
.
timer
)
this
.
$refs
.
adPop
.
close
();
this
.
$emit
(
'handleVip'
);
},
onClose
()
{
onClose
()
{
this
.
showTime
=
false
clearInterval
(
this
.
timer
)
this
.
$refs
.
adPop
.
close
();
this
.
$emit
(
'handleClose'
);
...
...
@@ -95,7 +99,7 @@
handler
:
function
(
newVal
,
oldVal
)
{
if
(
newVal
)
{
this
.
handleShow
();
}
else
{
}
else
{
try
{
clearInterval
(
this
.
timer
)
this
.
$refs
.
adPop
.
close
();
...
...
@@ -111,9 +115,9 @@
</
script
>
<
style
lang=
"scss"
>
.container
{
.container
{
margin-top
:
-200rpx
;
width
:
600rpx
;
height
:
800rpx
;
position
:
relative
;
display
:
flex
;
flex-direction
:
column
;
...
...
vedio/pagesC/ttvideo/ttVideoDetail.vue
View file @
da5fed19
...
...
@@ -624,10 +624,10 @@
}
else
{
message
.
notify
(
"未观看完整视频"
)
that
.
$nextTick
(()
=>
{
// 延迟渲染,否则位置错乱
that
.
showCoinPop
=
true
})
//
that.$nextTick(() => {
//
// 延迟渲染,否则位置错乱
//
that.showCoinPop = true
//
})
}
});
...
...
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