Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
footseen-large-website
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1b7010cf
authored
Apr 19, 2022
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
6a8b25af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
27 deletions
GraphicPage.html
index.html
GraphicPage.html
View file @
1b7010cf
...
...
@@ -186,7 +186,7 @@ $(function(){
if
(
data
.
dataList
[
i
].
type
!=
2
)
continue
var
list
=
data
.
dataList
[
i
]
var
videoList
=
JSON
.
parse
(
list
.
content
)
html
+=
'
<
div
data
-
type
=
"'+list.topicId+'"
class
=
"add-video-box"
>
';
html
+=
'
<
a
href
=
"Graphics.html?topicId='+list.topicId+'&tag='+tagNum+'"
><
div
data
-
type
=
"'+list.topicId+'"
class
=
"add-video-box"
>
';
html+='
<
div
class
=
"add-shadow"
><
/div>'
;
html
+=
'
<
div
class
=
"add-face-name"
>
';
html+='
<
img
src
=
"https://zhibocdn.yabolive.net/comm'+list.face+'?x-oss-process=image/resize,w_80"
alt
=
""
>
';
...
...
@@ -202,7 +202,7 @@ $(function(){
}
html
+=
'
<
/div>'
;
html
+=
'
<
/div>'
;
html
+=
'
<
/div>'
;
html
+=
'
<
/div>
</
a
>
';
}
if(pageNum==1){
$(".detailed-box").html(html)
...
...
@@ -213,10 +213,10 @@ $(function(){
setTimeout(function(){
scrollOk=true;
}, 500);
$
(
".add-video-box"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
var
_self
=
$
(
this
).
attr
(
"data-type"
)
window
.
location
.
href
=
"Graphics.html?topicId="
+
_self
+
"&tag="
+
tagNum
+
""
;
})
//
$(".add-video-box").unbind("click").on("click",function(){
//
var _self=$(this).attr("data-type")
//
window.location.href="Graphics.html?topicId="+_self+"&tag="+tagNum+"";
//
})
}
})
...
...
index.html
View file @
1b7010cf
...
...
@@ -250,15 +250,15 @@ $(function(){
var
html
=
[];
for
(
var
i
=
0
;
i
<
data
.
roomList
.
length
;
i
++
){
var
list
=
data
.
roomList
[
i
]
html
+=
'
<
div
class
=
"live-box"
>
';
html
+=
'
<
a
href
=
"download/down1.html?qd=ftsBH5ZB"
><
div
class
=
"live-box"
>
';
html+='
<
div
class
=
"live-face-box"
><
img
src
=
"https://zhibocdn.yabolive.net/comm'+list.face.split('?')[0]+'?x-oss-process=image/resize,w_180"
alt
=
""
><
/div>'
;
html
+=
'
<
div
class
=
"live-box-name"
>
'+list.nickname+'
<
/div>'
;
html
+=
'
<
/div>'
;
html
+=
'
<
/div>
</
a
>
';
}
$(".live-box-cotnent").html(html);
$
(
".live-box"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
window
.
location
.
href
=
'download/down1.html?qd=ftsBH5ZB'
})
//
$(".live-box").unbind("click").on("click",function(){
//
window.location.href='
download
/
down1
.
html
?
qd
=
ftsBH5ZB
'
//
})
}
})
}
...
...
@@ -276,8 +276,9 @@ $(function(){
// console.log('
獲取貼文列表
',data)
var html=[];
var topList=JSON.parse(data.dataList[0].content)
console.log(topList)
// duration
html
+=
'
<
div
style
=
"background: url(https://zhibocdn.yabolive.net/comm'+topList.videos[0].cover.split('?')[0]+'?x-oss-process=video/snapshot,t_0,f_jpg,w_510,h_0,m_fast,f_jpg)no-repeat;background-size: cover;"
class
=
"swiper-img"
>
';
html+='
<
a
href
=
"video.html?topicId='+data.dataList[0].topicId+'&tag='+tagNum+'"
><
div
style
=
"background: url(https://zhibocdn.yabolive.net/comm'+topList.videos[0].cover.split('?')[0]+'?x-oss-process=video/snapshot,t_0,f_jpg,w_510,h_0,m_fast,f_jpg)no-repeat;background-size: cover;"
class
=
"swiper-img"
>
';
html+='
<
div
class
=
"top-img-shadow"
><
/div>'
;
html
+=
'
<
/div>'
;
html
+=
'
<
div
class
=
"swiper-time"
>
'+add0(Math.floor(topList.videos[0].duration/1000/60))+'
:
'+add0(Math.floor(topList.videos[0].duration/1000)%60)+'
<
/div>'
;
...
...
@@ -289,7 +290,7 @@ $(function(){
html
+=
'
<
/div>'
;
html
+=
'
<
div
class
=
"swiper-more"
>
';
html+='
<
div
class
=
"swiper-more1"
><
img
src
=
"images/message.png"
alt
=
""
>
'+data.dataList[0].comment+'
<
/div>'
;
html
+=
'
<
/div>'
;
html
+=
'
<
/div>
</
a
>
'
;
$
(
".recommend-swiper"
).
html
(
html
);
$
(
".recommend-swiper"
).
attr
(
"data-type"
,
data
.
dataList
[
0
].
topicId
)
...
...
@@ -297,7 +298,7 @@ $(function(){
for
(
var
i
=
1
;
i
<
5
;
i
++
){
var
list
=
data
.
dataList
[
i
]
var
videoList
=
JSON
.
parse
(
list
.
content
)
html
+=
'
<
div
data
-
type
=
"'+list.topicId+'"
style
=
"background: url(https://zhibocdn.yabolive.net/comm'+videoList.videos[0].cover.split('?')[0]+'?x-oss-process=video/snapshot,t_0,f_jpg,w_360,h_0,m_fast,f_jpg)no-repeat;background-size: cover;"
class
=
"videos-box"
>
';
html
+=
'
<
a
href
=
"video.html?topicId='+list.topicId+'&tag='+tagNum+'"
><
div
data
-
type
=
"'+list.topicId+'"
style
=
"background: url(https://zhibocdn.yabolive.net/comm'+videoList.videos[0].cover.split('?')[0]+'?x-oss-process=video/snapshot,t_0,f_jpg,w_360,h_0,m_fast,f_jpg)no-repeat;background-size: cover;"
class
=
"videos-box"
>
';
html+='
<
img
class
=
"play-icon"
src
=
"images/play-icon.png"
alt
=
""
>
';
html+='
<
div
class
=
"video-time"
>
'+add0(Math.floor(videoList.videos[0].duration/1000/60))+'
:
'+add0(Math.floor(videoList.videos[0].duration/1000)%60)+'
<
/div>'
;
html
+=
'
<
div
class
=
"video-more"
>
';
...
...
@@ -306,7 +307,7 @@ $(function(){
html
+=
'
<
img
class
=
"video-face"
src
=
"https://zhibocdn.yabolive.net/comm'+list.face+'?x-oss-process=image/resize,w_180"
alt
=
""
>
';
html+='
<
p
class
=
"video-title"
>
'+list.nickname+'
<
/p>'
;
html
+=
'
<
div
class
=
"videos-shadow"
><
/div>'
;
html
+=
'
<
/div>'
;
html
+=
'
<
/div>
</
a
>
';
}
$(".videos-content").html(html);
...
...
@@ -316,7 +317,7 @@ $(function(){
var
list
=
data
.
dataList
[
i
]
var
videoList
=
JSON
.
parse
(
list
.
content
)
var
html
=
[]
html
+=
'
<
div
data
-
type
=
"'+list.topicId+'"
class
=
"add-video-box"
>
';
html
+=
'
<
a
href
=
"video.html?topicId='+list.topicId+'&tag='+tagNum+'"
><
div
data
-
type
=
"'+list.topicId+'"
class
=
"add-video-box"
>
';
html+='
<
div
class
=
"add-shadow"
><
/div>'
;
html
+=
'
<
div
class
=
"add-time"
>
'+add0(Math.floor(videoList.videos[0].duration/1000/60))+'
:
'+add0(Math.floor(videoList.videos[0].duration/1000)%60)+'
<
/div>'
;
html
+=
'
<
div
class
=
"add-face-name"
>
';
...
...
@@ -334,12 +335,12 @@ $(function(){
}
html
+=
'
<
/div>'
;
html
+=
'
<
/div>'
;
html
+=
'
<
/div>'
;
html
+=
'
<
/div>
</
a
>
';
$(".add-video-content").append(html)
$
(
".videos-box,.recommend-swiper,.add-video-box"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
var
_self
=
$
(
this
).
attr
(
"data-type"
)
window
.
location
.
href
=
"video.html?topicId="
+
_self
+
"&tag="
+
tagNum
+
""
})
//
$(".videos-box,.recommend-swiper,.add-video-box").unbind("click").on("click",function(){
//
var _self=$(this).attr("data-type")
//
window.location.href="video.html?topicId="+_self+"&tag="+tagNum+""
//
})
}
}
})
...
...
@@ -360,7 +361,7 @@ $(function(){
var
list
=
data
.
dataList
[
i
]
var
videoList
=
JSON
.
parse
(
list
.
content
)
var
html
=
[]
html
+=
'
<
div
data
-
type
=
"'+list.topicId+'"
class
=
"add-video-box"
>
';
html
+=
'
<
a
href
=
"video.html?topicId='+list.topicId+'&tag='+tagNum+'"
><
div
data
-
type
=
"'+list.topicId+'"
class
=
"add-video-box"
>
';
html+='
<
div
class
=
"add-shadow"
><
/div>'
;
html
+=
'
<
div
class
=
"add-time"
>
'+add0(Math.floor(videoList.videos[0].duration/1000/60))+'
:
'+add0(Math.floor(videoList.videos[0].duration/1000)%60)+'
<
/div>'
;
html
+=
'
<
div
class
=
"add-face-name"
>
';
...
...
@@ -378,7 +379,7 @@ $(function(){
}
html
+=
'
<
/div>'
;
html
+=
'
<
/div>'
;
html
+=
'
<
/div>'
;
html
+=
'
<
/div>
</
a
>
';
if(tagStr=='')$(".add-video-content").append(html)
else{
$(".detailed-box").append(html)
...
...
@@ -387,10 +388,10 @@ $(function(){
setTimeout(function(){
scrollOk=true;
}, 500);
$
(
".add-video-box"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
var
_self
=
$
(
this
).
attr
(
"data-type"
)
window
.
location
.
href
=
"video.html?topicId="
+
_self
+
"&tag="
+
tagNum
+
""
})
//
$(".add-video-box").unbind("click").on("click",function(){
//
var _self=$(this).attr("data-type")
//
window.location.href="video.html?topicId="+_self+"&tag="+tagNum+""
//
})
}
})
...
...
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