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
1e113557
Commit
1e113557
authored
Aug 07, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
f5b08422
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
15 deletions
+22
-15
ttVideoDetail.vue
vedio/pagesC/ttvideo/ttVideoDetail.vue
+19
-15
utils.js
vedio/utils/utils.js
+3
-0
No files found.
vedio/pagesC/ttvideo/ttVideoDetail.vue
View file @
1e113557
...
...
@@ -286,10 +286,10 @@
this
.
post
({
url
:
'/vTask/common/reportCompleteMsg/beginSeeTime'
,
showLoading
:
false
,
success
:
({
data
})
=>
{
success
:
({
data
})
=>
{
}
});
},
...
...
@@ -299,10 +299,10 @@
this
.
post
({
url
:
'/vTask/common/reportCompleteMsg/endSeeTime'
,
showLoading
:
false
,
success
:
({
data
})
=>
{
success
:
({
data
})
=>
{
}
});
},
...
...
@@ -328,10 +328,10 @@
this
.
post
({
url
:
'/vTask/vedioPageClose'
,
showLoading
:
false
,
success
:
({
data
})
=>
{
success
:
({
data
})
=>
{
}
});
},
...
...
@@ -571,7 +571,8 @@
});
let
that
=
this
this
.
ad
.
closeHandler
=
function
(
res
)
{
this
.
ad
.
onClose
((
res
)
=>
{
uni
.
hideLoading
();
if
(
res
&&
res
.
isEnded
||
res
===
undefined
)
{
if
(
that
.
isMoreAd
)
{
...
...
@@ -592,8 +593,8 @@
}
else
{
message
.
notify
(
"未观看完整视频"
)
}
});
};
// 监听错误
this
.
ad
.
onError
((
err
)
=>
{
...
...
@@ -615,7 +616,7 @@
});
// 监听视频播放完成
this
.
ad
.
onClose
(
this
.
ad
.
closeHandler
);
//
this.ad.onClose(this.ad.closeHandler);
// 预加载资源
this
.
ad
.
load
();
...
...
@@ -672,6 +673,9 @@
success
:
({
data
})
=>
{
console
.
log
(
'BBBBBBBBBB'
)
message
.
notify
(
data
.
msg
)
if
(
data
.
code
==
200
)
{
...
...
vedio/utils/utils.js
View file @
1e113557
...
...
@@ -337,6 +337,9 @@ export function getSubList(length, list) {
}
export
function
formateTime
(
dateTime
,
fmt
)
{
if
(
!
dateTime
)
{
return
''
}
let
date
=
new
Date
(
dateTime
)
if
(
/
(
y+
)
/
.
test
(
fmt
))
{
fmt
=
fmt
.
replace
(
RegExp
.
$1
,
(
date
.
getFullYear
()
+
''
).
substr
(
4
-
RegExp
.
$1
.
length
));
...
...
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