Commit f3237bfd by libai

测试

parent daeebcb8
Showing with 19 additions and 10 deletions
...@@ -243,7 +243,7 @@ function loginGo(){ ...@@ -243,7 +243,7 @@ function loginGo(){
html+='<a target="_blank" href="https://www.footseen.xyz/yazhaiTest/pc.html?jump=2"><li data-type="2"><span>直播</span> <img src="https://www.footseen.xyz/yazhaiTest/images/front/nack-icon.png" alt=""></li></a>'; html+='<a target="_blank" href="https://www.footseen.xyz/yazhaiTest/pc.html?jump=2"><li data-type="2"><span>直播</span> <img src="https://www.footseen.xyz/yazhaiTest/images/front/nack-icon.png" alt=""></li></a>';
html+='<a target="_blank" href="https://www.footseen.xyz/yazhaiTest/pc.html?jump=3"><li data-type="3"><span>追蹤</span> <img src="https://www.footseen.xyz/yazhaiTest/images/front/nack-icon.png" alt=""></li></a>'; html+='<a target="_blank" href="https://www.footseen.xyz/yazhaiTest/pc.html?jump=3"><li data-type="3"><span>追蹤</span> <img src="https://www.footseen.xyz/yazhaiTest/images/front/nack-icon.png" alt=""></li></a>';
html+='<a target="_blank" href="https://www.footseen.xyz/yazhaiTest/pc.html?jump=4"><li data-type="4"><span>影片</span> <img src="https://www.footseen.xyz/yazhaiTest/images/front/nack-icon.png" alt=""></li></a>'; html+='<a target="_blank" href="https://www.footseen.xyz/yazhaiTest/pc.html?jump=4"><li data-type="4"><span>影片</span> <img src="https://www.footseen.xyz/yazhaiTest/images/front/nack-icon.png" alt=""></li></a>';
html+='<a target="_blank" href="https://www.footseen.xyz/yazhaiTest/pc.html?jump=5"><li data-type="5"><span>圖</span> <img src="https://www.footseen.xyz/yazhaiTest/images/front/nack-icon.png" alt=""></li></a>'; html+='<a target="_blank" href="https://www.footseen.xyz/yazhaiTest/pc.html?jump=5"><li data-type="5"><span>圖</span> <img src="https://www.footseen.xyz/yazhaiTest/images/front/nack-icon.png" alt=""></li></a>';
html+='<a target="_blank" href="https://www.footseen.xyz/yazhaiTest/pc.html?jump=6"><li data-type="6"><span>約會</span> <img src="https://www.footseen.xyz/yazhaiTest/images/front/nack-icon.png" alt=""></li></a>'; html+='<a target="_blank" href="https://www.footseen.xyz/yazhaiTest/pc.html?jump=6"><li data-type="6"><span>約會</span> <img src="https://www.footseen.xyz/yazhaiTest/images/front/nack-icon.png" alt=""></li></a>';
html+='</ul>'; html+='</ul>';
$(".neck-nav-content").append(html) $(".neck-nav-content").append(html)
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<li data-type="2"><span>直播</span> <img src="images/front/nack-icon.png" alt=""></li> <li data-type="2"><span>直播</span> <img src="images/front/nack-icon.png" alt=""></li>
<li data-type="3"><span>追蹤</span> <img src="images/front/nack-icon.png" alt=""></li> <li data-type="3"><span>追蹤</span> <img src="images/front/nack-icon.png" alt=""></li>
<li data-type="4"><span>影片</span> <img src="images/front/nack-icon.png" alt=""></li> <li data-type="4"><span>影片</span> <img src="images/front/nack-icon.png" alt=""></li>
<li data-type="5"><span></span> <img src="images/front/nack-icon.png" alt=""></li> <li data-type="5"><span></span> <img src="images/front/nack-icon.png" alt=""></li>
<li data-type="6"><span>約會</span> <img src="images/front/nack-icon.png" alt=""></li> <li data-type="6"><span>約會</span> <img src="images/front/nack-icon.png" alt=""></li>
</ul> </ul>
<a href="https://www.footseen.xyz/yazhaiTest/pc.html"><img class="logo" src="images/logo.png" alt=""></a> <a href="https://www.footseen.xyz/yazhaiTest/pc.html"><img class="logo" src="images/logo.png" alt=""></a>
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
</div> </div>
<div class="video-list-box"> <div class="video-list-box">
<h2 class="box-title box-title2"> <h2 class="box-title box-title2">
<img src="images/front/category2.png" alt=""><span>影片</span> <img src="images/front/category2.png" alt=""><span>激情影片</span>
<div class="video-more-btn"> <div class="video-more-btn">
篩選<img src="images/front/more-btn.png" alt=""> 篩選<img src="images/front/more-btn.png" alt="">
</div> </div>
...@@ -329,8 +329,16 @@ $(function(){ ...@@ -329,8 +329,16 @@ $(function(){
// var strings='eyJhbGciOiJSUzI1NiIsImt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ac0Ick86-TnJH6Gj-U2WGU0QabbaEfbG1MSe-FslBEcE-Y9vbP4Wfzm0K1PCnooBv2Saj4HPBMuAhluHHXiejfU8MvLT8AaJH0oKlBJ_yH01OOGSiqQhM8qt3jaEC4lNVghePtSpjcflwY4_p-0vxewL4uH5szZnbVhPL0Q'
// var userinfo = JSON.parse(decodeURIComponent(escape(window.atob(strings.replace(/-/g, "+").replace(/_/g, "/"))))); // var userinfo = JSON.parse(decodeURIComponent(escape(window.atob(strings.replace(/-/g, "+").replace(/_/g, "/")))));
// console.log(userinfo) // console.log(userinfo)
sessionStorage.jump=data.jump
var stateObject = {};
var title = "Java学习笔记网";
var newUrl = "/pc.html"; //https://www.javaxxbj.com后面的那部分
history.pushState(stateObject,title,newUrl);
var _url = window.location.protocol + '//' + window.location.host + '/index.html';
window.history.pushState({}, 0, _url);
if(sessionStorage.jump=='undefined'){
sessionStorage.jump=1
}
loginGo() loginGo()
var scrollOk=true; var scrollOk=true;
var pageNumber=1 var pageNumber=1
...@@ -448,6 +456,7 @@ $(function(){ ...@@ -448,6 +456,7 @@ $(function(){
loginLayer() loginLayer()
return; return;
} }
sessionStorage.jump=_self.attr("data-type")
scrollNav=false scrollNav=false
$(".neck-nav-ul li").removeClass("neck-nav-li-click") $(".neck-nav-ul li").removeClass("neck-nav-li-click")
$(".side-nav").hide() $(".side-nav").hide()
...@@ -755,7 +764,7 @@ $(function(){ ...@@ -755,7 +764,7 @@ $(function(){
} }
function jumpGo(){ function jumpGo(){
if(data.jump==2){ if(sessionStorage.jump==2){
scrollNav=false scrollNav=false
$(".neck-nav-ul li").removeClass("neck-nav-li-click") $(".neck-nav-ul li").removeClass("neck-nav-li-click")
$(".neck-nav-ul li").eq(data.jump-1).addClass("neck-nav-li-click") $(".neck-nav-ul li").eq(data.jump-1).addClass("neck-nav-li-click")
...@@ -767,7 +776,7 @@ $(function(){ ...@@ -767,7 +776,7 @@ $(function(){
liveList(1,2) liveList(1,2)
$(".more-live").hide() $(".more-live").hide()
} }
if(data.jump==3){ if(sessionStorage.jump==3){
if(localStorage.uid==undefined){ if(localStorage.uid==undefined){
loginLayer() loginLayer()
return; return;
...@@ -782,7 +791,7 @@ $(function(){ ...@@ -782,7 +791,7 @@ $(function(){
$(".like-box").show() $(".like-box").show()
likeList() likeList()
} }
if(data.jump==4){ if(sessionStorage.jump==4){
scrollNav=false scrollNav=false
$(".neck-nav-ul li").removeClass("neck-nav-li-click") $(".neck-nav-ul li").removeClass("neck-nav-li-click")
$(".neck-nav-ul li").eq(data.jump-1).addClass("neck-nav-li-click") $(".neck-nav-ul li").eq(data.jump-1).addClass("neck-nav-li-click")
...@@ -802,7 +811,7 @@ $(function(){ ...@@ -802,7 +811,7 @@ $(function(){
$(".video-list-box").show() $(".video-list-box").show()
getTopics(1,typeNum,tagNum,timeNum,sortNum,dayNum) getTopics(1,typeNum,tagNum,timeNum,sortNum,dayNum)
} }
if(data.jump==5){ if(sessionStorage.jump==5){
scrollNav=false scrollNav=false
$(".neck-nav-ul li").removeClass("neck-nav-li-click") $(".neck-nav-ul li").removeClass("neck-nav-li-click")
$(".neck-nav-ul li").eq(data.jump-1).addClass("neck-nav-li-click") $(".neck-nav-ul li").eq(data.jump-1).addClass("neck-nav-li-click")
...@@ -822,7 +831,7 @@ $(function(){ ...@@ -822,7 +831,7 @@ $(function(){
$(".images-list-box").show() $(".images-list-box").show()
getTopics(1,typeNum,tagNum,timeNum,sortNum,dayNum) getTopics(1,typeNum,tagNum,timeNum,sortNum,dayNum)
} }
if(data.jump==6){ if(sessionStorage.jump==6){
scrollNav=false scrollNav=false
$(".neck-nav-ul li").removeClass("neck-nav-li-click") $(".neck-nav-ul li").removeClass("neck-nav-li-click")
$(".neck-nav-ul li").eq(data.jump-1).addClass("neck-nav-li-click") $(".neck-nav-ul li").eq(data.jump-1).addClass("neck-nav-li-click")
......
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