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