Commit 800053f9 by libai

测试

parent 33535419
Showing with 24 additions and 11 deletions
...@@ -408,8 +408,21 @@ ...@@ -408,8 +408,21 @@
$(function(){ $(function(){
//判斷渠道 //判斷渠道
if(sessionStorage.pmt!=undefined&&sessionStorage.pmt!='undefined'){ if(sessionStorage.pmt!=undefined&&sessionStorage.pmt!='undefined'){
if(sessionStorage.pmt=="other"){
$.ajax({
url:$ip+'activeLog/h5Active',
data:{
pmt:'other',
pageID:localStorage.canvasCode
},
success:function(data){
history.pushState('','','/mobile/');
sessionStorage.pmt='undefined'
}
})
return;
}
var pmtNumber=sessionStorage.pmt.split('/d/')[1] var pmtNumber=sessionStorage.pmt.split('/d/')[1]
console.log(pmtNumber)
$.ajax({ $.ajax({
url:$ip+'frontPage/queryLinkNumberCid', url:$ip+'frontPage/queryLinkNumberCid',
type: 'get', type: 'get',
...@@ -1221,17 +1234,17 @@ $(function(){ ...@@ -1221,17 +1234,17 @@ $(function(){
} }
if(startY<e.changedTouches[0].clientY){ if(startY<e.changedTouches[0].clientY){
//向下 //向下
var ua = window.navigator.userAgent.toLowerCase(); // var ua = window.navigator.userAgent.toLowerCase();
if (/iphone|ipad|ipod/.test(ua)) { // if (/iphone|ipad|ipod/.test(ua)) {
if(sessionStorage.type!="pwa")return; // if(sessionStorage.type!="pwa")return;
if($("body").offset().top!=0)return; // if($("body").offset().top!=0)return;
if(zwidth>3){ // if(zwidth>3){
setTimeout(function(){ // setTimeout(function(){
window.location.reload() // window.location.reload()
},300) // },300)
} // }
} // }
} }
}) })
......
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