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
d376f267
authored
Nov 17, 2022
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
5bf4f301
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
18 deletions
mTest/css/index.css
mTest/css/index.less
mTest/index.html
mTest/lib/default.js
mTest/css/index.css
View file @
d376f267
...
...
@@ -632,7 +632,7 @@
overflow
:
hidden
;
position
:
relative
;
}
.zone-photo-ul
a
:nth-child
(
2n
)
li
{
.zone-photo-ul
li
:nth-child
(
2n
)
{
margin-left
:
0.2rem
;
}
.zone-photo-ul
.zone-photo-img
{
...
...
mTest/css/index.less
View file @
d376f267
...
...
@@ -646,11 +646,10 @@
overflow: hidden;
position: relative;
}
a:nth-child(2n){
li{
li:nth-child(2n){
margin-left: 0.2rem;
}
}
.zone-photo-img{
width: 4.7rem;
...
...
mTest/index.html
View file @
d376f267
...
...
@@ -759,7 +759,7 @@ $(function(){
var
videoList
=
JSON
.
parse
(
list
.
content
)
if
(
videoList
.
videos
[
0
].
cover
==
undefined
)
continue
videoNum
++
html
+=
'
<
a
href
=
"video.html?topicId='+list.topicId+'"
><
div
data
-
type
=
"'+list.topicId+'"
class
=
"add-video-box"
>
';
html
+=
'
<
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"
>
';
...
...
@@ -777,13 +777,27 @@ $(function(){
}
html
+=
'
<
/div>'
;
html
+=
'
<
/div>'
;
html
+=
'
<
/div>
</
a
>
';
html
+=
'
<
/div>'
;
}
if
(
videoNum
==
0
){
html
=
'
<
div
class
=
"no-search-box"
><
img
src
=
"images/no-search.png"
><
p
>
未找到
'+e+'
相關影片
<
/p></
div
>
'
}
$(".search-ul").html(html)
$(".add-video-box").on("click",function(){
var _self=$(this)
layer.open({
type: 2,
title: false,
shadeClose: true,
skin: "yourclass9",
area: ["10rem", dHeight+'
px
'],
content: '
pageVideo
.
html
?
topicId
=
'+_self.attr("data-type")+'',
end: function () {
$(".layui-layer-shade").hide()
layer.closeAll()
}
})
})
}
})
}
...
...
@@ -803,7 +817,7 @@ $(function(){
if
(
data
.
dataList
[
i
].
type
==
3
){
var
list
=
data
.
dataList
[
i
];
var
content
=
JSON
.
parse
(
list
.
content
)
html
+=
'
<
a
href
=
"video.html?topicId='+list.topicId+'"
><
li
class
=
"video-go"
data
-
type
=
'+list.topicId+'
>
';
html
+=
'
<
li
class
=
"video-go"
data
-
type
=
'+list.topicId+'
>
';
html+='
<
p
class
=
"zone-photo-title"
>
'+content.title+'
<
/p>'
;
html
+=
'
<
div
class
=
"zone-photo-bottom-box"
>
';
html+='
<
span
class
=
"zone-photo-bottom-p1"
><
img
src
=
"images/message.png"
alt
=
""
>
'+list.comment+'
<
/span>'
;
...
...
@@ -812,11 +826,11 @@ $(function(){
html
+=
'
<
/div>'
;
html
+=
'
<
div
class
=
"zone-photo-shadow"
><
/div>'
;
html
+=
'
<
img
class
=
"zone-photo-img"
src
=
"https://zhibocdn.yabolive.net/comm'+content.videos[0].cover+'?x-oss-process=image/resize,w_255"
alt
=
""
>
';
html+='
<
/li>
</
a
>
';
html+='
<
/li>'
;
}
else
if
(
data
.
dataList
[
i
].
type
==
2
){
var
list
=
data
.
dataList
[
i
];
var
content
=
JSON
.
parse
(
list
.
content
)
html+='
<
a
href
=
"Graphics.html?topicId='+list.topicId+'"
><
li
class
=
"Graphics-go"
data
-
type
=
'+list.topicId+'
>
';
html
+=
'
<
li
class
=
"Graphics-go"
data
-
type
=
'+list.topicId+'
>
';
html+='
<
p
class
=
"zone-photo-title"
>
'+content.title+'
<
/p>'
;
html
+=
'
<
div
class
=
"zone-photo-bottom-box"
>
';
html+='
<
span
class
=
"zone-photo-bottom-p1"
><
img
src
=
"images/message.png"
alt
=
""
>
'+list.comment+'
<
/span>'
;
...
...
@@ -824,18 +838,19 @@ $(function(){
html
+=
'
<
/div>'
;
html
+=
'
<
div
class
=
"zone-photo-shadow"
><
/div>'
;
html
+=
'
<
img
class
=
"zone-photo-img"
src
=
"https://zhibocdn.yabolive.net/comm'+content.images[0].url+'?x-oss-process=image/resize,w_255"
alt
=
""
>
';
html+='
<
/li>
</
a
>
';
html+='
<
/li>'
;
}
}
$
(
".zone-photo-ul"
).
html
(
html
)
$
(
".video-go"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
var
_self
=
$
(
this
)
layer
.
open
({
type
:
2
,
title
:
false
,
shadeClose
:
true
,
skin
:
"yourclass9"
,
area
:
[
"10rem"
,
dHeight
+
'px'
],
content: '
..
/
userRoom
.
html
?
tid
=
'+data.room.uid
+'',
content
:
'
pageVideo.html?topicId='
+
_self
.
attr
(
"data-type"
)
+
''
,
end
:
function
()
{
$
(
".layui-layer-shade"
).
hide
()
layer
.
closeAll
()
...
...
@@ -843,13 +858,14 @@ $(function(){
})
})
$
(
".Graphics-go"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
var
_self
=
$
(
this
)
layer
.
open
({
type
:
2
,
title
:
false
,
shadeClose
:
true
,
skin
:
"yourclass9"
,
area
:
[
"10rem"
,
dHeight
+
'px'
],
content: '
..
/
userRoom
.
html
?
tid
=
'+data.room.uid
+'',
content
:
'
pageImages.html?topicId='
+
_self
.
attr
(
"data-type"
)
+
''
,
end
:
function
()
{
$
(
".layui-layer-shade"
).
hide
()
layer
.
closeAll
()
...
...
mTest/lib/default.js
View file @
d376f267
...
...
@@ -53,11 +53,11 @@ sessionStorage.qd=data.qd
sessionStorage
.
kkk
=
'debug'
sessionStorage
.
roomId
=
23864554
}
//
if (bbb.indexOf("file:///") > -1) {
//
localStorage.uid= 155100;
//
localStorage.token = 'debug'
//
// sessionStorage.roomId=210101
//
}
if
(
bbb
.
indexOf
(
"file:///"
)
>
-
1
)
{
localStorage
.
uid
=
155100
;
localStorage
.
token
=
'debug'
// sessionStorage.roomId=210101
}
$
.
ajaxSetup
({
global
:
false
,
type
:
'get'
,
...
...
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