Commit d376f267 by libai

测试

parent 5bf4f301
......@@ -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 {
......
......@@ -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;
......
......@@ -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()
......
......@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment