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
e4f274a3
Commit
e4f274a3
authored
Jun 11, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
8202d849
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
ad-popup.vue
vedio/components/ad-popup/ad-popup.vue
+9
-6
ttVideoDetail.vue
vedio/pagesC/ttvideo/ttVideoDetail.vue
+4
-1
No files found.
vedio/components/ad-popup/ad-popup.vue
View file @
e4f274a3
...
...
@@ -3,14 +3,13 @@
<uni-popup
type=
"center"
ref=
"adPop"
:maskClick=
"false"
:isMaskClick=
"false"
>
<view
class=
"container"
>
<!--
<view
class=
"ad-view"
>
<ad
:unit-id=
"adUnitId"
@
load=
"onload"
@
close=
"onclose"
@
error=
"onerror"
></ad>
</view>
-->
<image
@
click=
"onClose2"
style=
"width: 50rpx; height: 50rpx;margin-left:auto;margin-right: 30rpx;
margin-bottom: 30rpx;"
src=
"https://mints-web.oss-cn-beijing.aliyuncs.com/images/ic_close_white.png"
></image>
<view
class=
"content"
>
<text
class=
"title"
>
恭喜你,获得免费看剧名额
</text>
<text
class=
"button"
@
click=
"handleClose"
>
看
视频
免费解锁1集
</text>
<text
class=
"downtext"
>
{{
countDown
}}
s后自动进入广告,观看完成解锁第
{{
vedioIndex
+
1
}}
集剧情
</text>
<text
class=
"button"
@
click=
"handleClose"
>
看
广告
免费解锁1集
</text>
<text
v-if=
"false"
class=
"downtext"
>
{{
countDown
}}
s后自动进入广告,观看完成解锁第
{{
vedioIndex
+
1
}}
集剧情
</text>
</view>
</view>
</uni-popup>
...
...
@@ -43,7 +42,7 @@
methods
:
{
handleShow
()
{
this
.
$refs
.
adPop
.
open
(
'center'
);
this
.
startCountdown
()
//
this.startCountdown()
},
startCountdown
()
{
let
that
=
this
;
...
...
@@ -64,6 +63,10 @@
handleClose
()
{
this
.
$refs
.
adPop
.
close
(
'center'
);
this
.
$emit
(
'close'
);
},
onClose2
()
{
this
.
$refs
.
adPop
.
close
(
'center'
);
this
.
$emit
(
'close2'
);
},
onload
(
e
)
{
console
.
log
(
"onload"
);
...
...
vedio/pagesC/ttvideo/ttVideoDetail.vue
View file @
e4f274a3
...
...
@@ -62,7 +62,7 @@
:originIndex=
"originIndex"
/>
<coin-popup
:show=
"showCoinPop"
:point=
"data.point"
:vedioId=
"data.vedioId"
@
close=
"showCoinPop = false"
@
clickClose=
"coinPopupClose"
@
paySuccess=
"paySuccess"
/>
<ad-popup
:show=
"showAdPop"
@
close=
"adPopupClose"
:vedioIndex=
"originIndex"
/>
<ad-popup
:show=
"showAdPop"
@
close=
"adPopupClose"
@
close2=
"adPopupClose2"
:vedioIndex=
"originIndex"
/>
</view>
</
template
>
...
...
@@ -548,6 +548,9 @@
adPopupClose
()
{
this
.
showAdPop
=
false
this
.
playRewardVideo
()
},
adPopupClose2
()
{
this
.
showAdPop
=
false
},
playRewardVideo
()
{
// 播放激励视频
...
...
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