Commit b12a9ab6 by libai

测试

parent f2766b08
...@@ -46,18 +46,38 @@ $(function(){ ...@@ -46,18 +46,38 @@ $(function(){
$(".down-btn2").css("background",'url(images/downBtn2-En.png) 0/ 100% 100% no-repeat') $(".down-btn2").css("background",'url(images/downBtn2-En.png) 0/ 100% 100% no-repeat')
} }
if (/iphone|ipad|ipod/.test(ua)) { if (/iphone|ipad|ipod/.test(ua)) {
var videoNum=Math.ceil(Math.random()*6) if(browserLang.indexOf("zh")==-1){
var html=[]; var videoNum=Math.ceil(Math.random()*10)
html+='<img class="down-webp" src="images/down'+videoNum+'.png" alt="">' var html=[];
html+='<img class="down-webp" src="https://app.ixiulive.com/static/downImg/En/down'+videoNum+'.png" alt="">'
}else{
var videoNum=Math.ceil(Math.random()*19)
var html=[];
html+='<img class="down-webp" src="https://app.ixiulive.com/static/downImg/down'+videoNum+'.png" alt="">'
}
} }
else if (/android/.test(ua)) { else if (/android/.test(ua)) {
var videoNum=Math.ceil(Math.random()*7) if(browserLang.indexOf("zh")==-1){
var html=[]; var videoNum=Math.ceil(Math.random()*10)
html+='<img class="down-webp" src="images/down'+videoNum+'.webp" alt="">' var html=[];
html+='<img class="down-webp" src="https://app.ixiulive.com/static/downImg/En/down'+videoNum+'.webp" alt="">'
}else{
var videoNum=Math.ceil(Math.random()*19)
var html=[];
html+='<img class="down-webp" src="https://app.ixiulive.com/static/downImg/down'+videoNum+'.webp" alt="">'
}
}else{ }else{
var videoNum=Math.ceil(Math.random()*7) if(browserLang.indexOf("zh")==-1){
var html=[]; var videoNum=Math.ceil(Math.random()*10)
html+='<img class="down-webp" src="images/down'+videoNum+'.webp" alt="">' var html=[];
html+='<img class="down-webp" src="https://app.ixiulive.com/static/downImg/En/down'+videoNum+'.webp" alt="">'
}else{
var videoNum=Math.ceil(Math.random()*19)
var html=[];
html+='<img class="down-webp" src="https://app.ixiulive.com/static/downImg/down'+videoNum+'.webp" alt="">'
}
} }
$(".down-webp-box").html(html) $(".down-webp-box").html(html)
$(".down-btn2").on("click",function(){ $(".down-btn2").on("click",function(){
......
...@@ -50,18 +50,38 @@ $(function(){ ...@@ -50,18 +50,38 @@ $(function(){
$(".down-btn2").css("background",'url(images/downBtn2-En.png) 0/ 100% 100% no-repeat') $(".down-btn2").css("background",'url(images/downBtn2-En.png) 0/ 100% 100% no-repeat')
} }
if (/iphone|ipad|ipod/.test(ua)) { if (/iphone|ipad|ipod/.test(ua)) {
var videoNum=Math.ceil(Math.random()*6) if(browserLang.indexOf("zh")==-1){
var html=[]; var videoNum=Math.ceil(Math.random()*10)
html+='<img class="down-webp" src="images/down'+videoNum+'.png" alt="">' var html=[];
html+='<img class="down-webp" src="https://app.ixiulive.com/static/downImg/En/down'+videoNum+'.png" alt="">'
}else{
var videoNum=Math.ceil(Math.random()*19)
var html=[];
html+='<img class="down-webp" src="https://app.ixiulive.com/static/downImg/down'+videoNum+'.png" alt="">'
}
} }
else if (/android/.test(ua)) { else if (/android/.test(ua)) {
var videoNum=Math.ceil(Math.random()*7) if(browserLang.indexOf("zh")==-1){
var html=[]; var videoNum=Math.ceil(Math.random()*10)
html+='<img class="down-webp" src="images/down'+videoNum+'.webp" alt="">' var html=[];
html+='<img class="down-webp" src="https://app.ixiulive.com/static/downImg/En/down'+videoNum+'.webp" alt="">'
}else{
var videoNum=Math.ceil(Math.random()*19)
var html=[];
html+='<img class="down-webp" src="https://app.ixiulive.com/static/downImg/down'+videoNum+'.webp" alt="">'
}
}else{ }else{
var videoNum=Math.ceil(Math.random()*7) if(browserLang.indexOf("zh")==-1){
var html=[]; var videoNum=Math.ceil(Math.random()*10)
html+='<img class="down-webp" src="images/down'+videoNum+'.webp" alt="">' var html=[];
html+='<img class="down-webp" src="https://app.ixiulive.com/static/downImg/En/down'+videoNum+'.webp" alt="">'
}else{
var videoNum=Math.ceil(Math.random()*19)
var html=[];
html+='<img class="down-webp" src="https://app.ixiulive.com/static/downImg/down'+videoNum+'.webp" alt="">'
}
} }
$(".down-webp-box").html(html) $(".down-webp-box").html(html)
$(".down-btn2").on("click",function(){ $(".down-btn2").on("click",function(){
......
...@@ -51,18 +51,38 @@ $(function(){ ...@@ -51,18 +51,38 @@ $(function(){
} }
var ua = window.navigator.userAgent.toLowerCase(); var ua = window.navigator.userAgent.toLowerCase();
if (/iphone|ipad|ipod/.test(ua)) { if (/iphone|ipad|ipod/.test(ua)) {
var videoNum=Math.ceil(Math.random()*6) if(browserLang.indexOf("zh")==-1){
var html=[]; var videoNum=Math.ceil(Math.random()*10)
html+='<img class="down-webp" src="images/down'+videoNum+'.png" alt="">' var html=[];
html+='<img class="down-webp" src="https://app.ixiulive.com/static/downImg/En/down'+videoNum+'.png" alt="">'
}else{
var videoNum=Math.ceil(Math.random()*19)
var html=[];
html+='<img class="down-webp" src="https://app.ixiulive.com/static/downImg/down'+videoNum+'.png" alt="">'
}
} }
else if (/android/.test(ua)) { else if (/android/.test(ua)) {
var videoNum=Math.ceil(Math.random()*7) if(browserLang.indexOf("zh")==-1){
var html=[]; var videoNum=Math.ceil(Math.random()*10)
html+='<img class="down-webp" src="images/down'+videoNum+'.webp" alt="">' var html=[];
html+='<img class="down-webp" src="https://app.ixiulive.com/static/downImg/En/down'+videoNum+'.webp" alt="">'
}else{
var videoNum=Math.ceil(Math.random()*19)
var html=[];
html+='<img class="down-webp" src="https://app.ixiulive.com/static/downImg/down'+videoNum+'.webp" alt="">'
}
}else{ }else{
var videoNum=Math.ceil(Math.random()*7) if(browserLang.indexOf("zh")==-1){
var html=[]; var videoNum=Math.ceil(Math.random()*10)
html+='<img class="down-webp" src="images/down'+videoNum+'.webp" alt="">' var html=[];
html+='<img class="down-webp" src="https://app.ixiulive.com/static/downImg/En/down'+videoNum+'.webp" alt="">'
}else{
var videoNum=Math.ceil(Math.random()*19)
var html=[];
html+='<img class="down-webp" src="https://app.ixiulive.com/static/downImg/down'+videoNum+'.webp" alt="">'
}
} }
$(".down-webp-box").html(html) $(".down-webp-box").html(html)
$(".down-btn2").on("click",function(){ $(".down-btn2").on("click",function(){
......
...@@ -46,18 +46,38 @@ $(function(){ ...@@ -46,18 +46,38 @@ $(function(){
$(".down-btn2").css("background",'url(images/downBtn2-En.png) 0/ 100% 100% no-repeat') $(".down-btn2").css("background",'url(images/downBtn2-En.png) 0/ 100% 100% no-repeat')
} }
if (/iphone|ipad|ipod/.test(ua)) { if (/iphone|ipad|ipod/.test(ua)) {
var videoNum=Math.ceil(Math.random()*6) if(browserLang.indexOf("zh")==-1){
var html=[]; var videoNum=Math.ceil(Math.random()*10)
html+='<img class="down-webp" src="images/down'+videoNum+'.png" alt="">' var html=[];
html+='<img class="down-webp" src="https://app.ixiulive.com/static/downImg/En/down'+videoNum+'.png" alt="">'
}else{
var videoNum=Math.ceil(Math.random()*19)
var html=[];
html+='<img class="down-webp" src="https://app.ixiulive.com/static/downImg/down'+videoNum+'.png" alt="">'
}
} }
else if (/android/.test(ua)) { else if (/android/.test(ua)) {
var videoNum=Math.ceil(Math.random()*7) if(browserLang.indexOf("zh")==-1){
var html=[]; var videoNum=Math.ceil(Math.random()*10)
html+='<img class="down-webp" src="images/down'+videoNum+'.webp" alt="">' var html=[];
html+='<img class="down-webp" src="https://app.ixiulive.com/static/downImg/En/down'+videoNum+'.webp" alt="">'
}else{
var videoNum=Math.ceil(Math.random()*19)
var html=[];
html+='<img class="down-webp" src="https://app.ixiulive.com/static/downImg/down'+videoNum+'.webp" alt="">'
}
}else{ }else{
var videoNum=Math.ceil(Math.random()*7) if(browserLang.indexOf("zh")==-1){
var html=[]; var videoNum=Math.ceil(Math.random()*10)
html+='<img class="down-webp" src="images/down'+videoNum+'.webp" alt="">' var html=[];
html+='<img class="down-webp" src="https://app.ixiulive.com/static/downImg/En/down'+videoNum+'.webp" alt="">'
}else{
var videoNum=Math.ceil(Math.random()*19)
var html=[];
html+='<img class="down-webp" src="https://app.ixiulive.com/static/downImg/down'+videoNum+'.webp" alt="">'
}
} }
$(".down-webp-box").html(html) $(".down-webp-box").html(html)
$(".down-btn2").on("click",function(){ $(".down-btn2").on("click",function(){
......
...@@ -568,3 +568,8 @@ ...@@ -568,3 +568,8 @@
font-size: 14px; font-size: 14px;
text-indent: 15px; text-indent: 15px;
} }
.search-icon {
position: absolute;
top: 23px;
left: 1062px;
}
...@@ -587,4 +587,9 @@ ...@@ -587,4 +587,9 @@
left: 830px; left: 830px;
font-size: 14px; font-size: 14px;
text-indent: 15px; text-indent: 15px;
} }
\ No newline at end of file .search-icon{
position: absolute;
top: 23px;
left: 1062px;
}
\ No newline at end of file
...@@ -160,9 +160,70 @@ function loginGo(){ ...@@ -160,9 +160,70 @@ function loginGo(){
$(".neck-nav-content").append(html) $(".neck-nav-content").append(html)
} }
var html=[]; var html=[];
html+='<input class="search-input" placeholder="搜索" type="text">' html+='<input class="search-input" maxlength="80" placeholder="搜索" type="text">'
html+='<img class="search-icon" src="https://www.footseen.xyz/yazhaiTest/images/front/search2.png">' html+='<img class="search-icon" src="https://www.footseen.xyz/yazhaiTest/images/front/search2.png">'
$(".neck-nav-content").append(html) $(".neck-nav-content").append(html)
$(".search-icon").on("click",function(){
})
$(".search-input").on("keydown",function(event){
if (event.keyCode == "13") {
if($(".search-input").val()==''||$(".search-input").val().split(" ").join("").length == 0){
layer.msg("請輸入要搜索的內容")
return;
}
}
})
searchGoUser(22,3)
searchGoVideo('黑絲',8)
function searchGoUser(e,pageNum){
$.ajax({
url:$ip+'search/queryUser',
data:{
keyword:e,
pageNum:1,
pageSize:pageNum,
pageID:localStorage.canvasCode,
uid:localStorage.uid,
token:localStorage.token
},
success:function(data){
console.log('搜索用户',data)
var html=[];
for(var i=0;i<data.data.length;i++){
var list=data.data[i];
html+='<li>';
html+='<p class="search-user-p1">'+list.nickname+'</p>';
html+='<p class="search-user-p2">Footseen ID:'+list.uid+'</p>';
html+='<a href="../space/index.html?fid='+list.uid+'"><img class="like-face" src="https://zhibocdn.yabolive.net/comm'+list.faceimg+'?x-oss-process=image/resize,w_120" alt=""></a>';
if(list.selfLike>0)html+='<div data-type="2" data-type2="'+list.uid+'" class="like-user-btn1 like-user-btn2">已追蹤</div>';
else html+='<div data-type="2" data-type2="'+list.uid+'" class="like-user-btn1 like-user-click">追蹤</div>';
html+='</li>';
}
$(".search-user-ul").html(html)
$(".search-user-box").show()
}
})
}
function searchGoVideo(e,pageNum){
$.ajax({
url:$ip+'search/queryUser',
data:{
keyword:e,
pageNum:1,
pageSize:pageNum,
pageID:localStorage.canvasCode,
uid:localStorage.uid,
token:localStorage.token,
type:1,
sort:-1,
},
success:function(data){
console.log('搜索帖子',data)
}
})
}
if(localStorage.uid!=undefined&&localStorage.uid!="undefined"){ if(localStorage.uid!=undefined&&localStorage.uid!="undefined"){
$.ajax({ $.ajax({
url:$ip+'user/queryUserBaseInfo', url:$ip+'user/queryUserBaseInfo',
......
...@@ -365,14 +365,22 @@ $(function(){ ...@@ -365,14 +365,22 @@ $(function(){
$(".side-nav-sort").eq(2).addClass("side-nav-sort-click") $(".side-nav-sort").eq(2).addClass("side-nav-sort-click")
$(".side-nav-sort").eq(2).children(".side-icon").attr("src","images/front/icon3-click.png") $(".side-nav-sort").eq(2).children(".side-icon").attr("src","images/front/icon3-click.png")
} }
fp.get(function(result, components) { if(localStorage.canvasCode==undefined){
localStorage.canvasCode=result fp.get(function(result, components) {
localStorage.canvasCode=result
if(sessionStorage.jump==2) liveList(1,2)
else liveList(1,1)
getTags()
getTopics(1,typeNum,tagNum,timeNum,sortNum,dayNum)
});
}else{
if(sessionStorage.jump==2) liveList(1,2) if(sessionStorage.jump==2) liveList(1,2)
else liveList(1,1) else liveList(1,1)
getTags() getTags()
getTopics(1,typeNum,tagNum,timeNum,sortNum,dayNum) getTopics(1,typeNum,tagNum,timeNum,sortNum,dayNum)
}
});
$(window).on("scroll",function(){ $(window).on("scroll",function(){
if($(document).height()-$(document).scrollTop()-$(window).height()<=20){ if($(document).height()-$(document).scrollTop()-$(window).height()<=20){
......
body::-webkit-scrollbar {
display: none;
}
.m-box { .m-box {
width: 1440px; width: 1440px;
margin: 0 auto; margin: 0 auto;
......
body::-webkit-scrollbar {
display: none;
}
.m-box{ .m-box{
width: 1440px; width: 1440px;
margin: 0 auto; margin: 0 auto;
...@@ -220,4 +223,4 @@ ...@@ -220,4 +223,4 @@
font-size: 28px; font-size: 28px;
margin-top: 15px; margin-top: 15px;
margin-bottom: 14px; margin-bottom: 14px;
} }
\ No newline at end of file
...@@ -33,16 +33,10 @@ ...@@ -33,16 +33,10 @@
<div>影片</div> <div>影片</div>
<div>圖檔</div> <div>圖檔</div>
</div> </div>
<div class="search-user-box"> <div style="display:none" class="search-user-box">
<div class="search-user-top">用戶</div> <div class="search-user-top">用戶</div>
<ul class="search-user-ul clearfix"> <ul class="search-user-ul clearfix">
<li> <!-- <li>
<p class="search-user-p1">會飛5247575</p>
<p class="search-user-p2">Footseen ID:123456</p>
<a href="index.html?fid=990063143"><img class="like-face" src="https://zhibocdn.yabolive.net/comm/user/img/28425247/4e3d2bf4e4724334bf5dfde8fd038e41.jpg?mainland=1?x-oss-process=image/resize,w_120" alt=""></a>
<div data-type="2" data-type2="990063143" class="like-user-btn1 like-user-btn2">已追蹤</div>
</li>
<li>
<p class="search-user-p1">會飛5247575</p> <p class="search-user-p1">會飛5247575</p>
<p class="search-user-p2">Footseen ID:123456</p> <p class="search-user-p2">Footseen ID:123456</p>
<a href="index.html?fid=990063143"><img class="like-face" src="https://zhibocdn.yabolive.net/comm/user/img/28425247/4e3d2bf4e4724334bf5dfde8fd038e41.jpg?mainland=1?x-oss-process=image/resize,w_120" alt=""></a> <a href="index.html?fid=990063143"><img class="like-face" src="https://zhibocdn.yabolive.net/comm/user/img/28425247/4e3d2bf4e4724334bf5dfde8fd038e41.jpg?mainland=1?x-oss-process=image/resize,w_120" alt=""></a>
...@@ -59,13 +53,7 @@ ...@@ -59,13 +53,7 @@
<p class="search-user-p2">Footseen ID:123456</p> <p class="search-user-p2">Footseen ID:123456</p>
<a href="index.html?fid=990063143"><img class="like-face" src="https://zhibocdn.yabolive.net/comm/user/img/28425247/4e3d2bf4e4724334bf5dfde8fd038e41.jpg?mainland=1?x-oss-process=image/resize,w_120" alt=""></a> <a href="index.html?fid=990063143"><img class="like-face" src="https://zhibocdn.yabolive.net/comm/user/img/28425247/4e3d2bf4e4724334bf5dfde8fd038e41.jpg?mainland=1?x-oss-process=image/resize,w_120" alt=""></a>
<div data-type="2" data-type2="990063143" class="like-user-btn1 like-user-btn2">已追蹤</div> <div data-type="2" data-type2="990063143" class="like-user-btn1 like-user-btn2">已追蹤</div>
</li> </li> -->
<li>
<p class="search-user-p1">會飛5247575</p>
<p class="search-user-p2">Footseen ID:123456</p>
<a href="index.html?fid=990063143"><img class="like-face" src="https://zhibocdn.yabolive.net/comm/user/img/28425247/4e3d2bf4e4724334bf5dfde8fd038e41.jpg?mainland=1?x-oss-process=image/resize,w_120" alt=""></a>
<div data-type="2" data-type2="990063143" class="like-user-btn1 like-user-btn2">已追蹤</div>
</li>
</ul> </ul>
</div> </div>
<div class="video-box"> <div class="video-box">
...@@ -193,6 +181,7 @@ ...@@ -193,6 +181,7 @@
<script src="../lib/qrcode.min.js"></script> <script src="../lib/qrcode.min.js"></script>
<script> <script>
$(function(){ $(function(){
if(localStorage.canvasCode==undefined)window.location.href='../pc.html'
loginGo() loginGo()
}) })
</script> </script>
......
body::-webkit-scrollbar {
display: none;
}
.m-box { .m-box {
width: 1200px; width: 1200px;
margin: 0 auto; margin: 0 auto;
......
body::-webkit-scrollbar {
display: none;
}
.m-box{ .m-box{
width: 1200px; width: 1200px;
margin: 0 auto; margin: 0 auto;
......
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