Commit 73b01bd5 by agan

修改跳轉邏輯

parent 1e2029f6
...@@ -29,32 +29,38 @@ ...@@ -29,32 +29,38 @@
</script> </script>
<script> <script>
var ua = window.navigator.userAgent.toLowerCase(); var ua = window.navigator.userAgent.toLowerCase();
var nJumpArr = ['11134', '211120', '11151', '31186', '31192'];
var h5CidArr = ['H5BZBSX', 'H5BNFDYY', 'H5BABYH', 'H5BSSWA', 'H5BSSQ'];
var h5i = nJumpArr.indexOf(url_get_params().icid);
if ((/iphone|ipad|ipod/.test(ua)) && h5i > -1) {
window.location.href = "https://www.footseen.xyz?go=footseen&pmt=https://" + url_get_params().mrefer + '&h5Cid=' + h5CidArr[h5i];
}
// var nJumpArr = ['31184', '11134', '31179', '31183', '21144', '11125', '1116', '31147', '31186', '11159'] // var nJumpArr = ['31184', '11134', '31179', '31183', '21144', '11125', '1116', '31147', '31186', '11159']
if (!((/iphone|ipad|ipod/.test(ua)) || (/android/.test(ua)))) { // if (!((/iphone|ipad|ipod/.test(ua)) || (/android/.test(ua)))) {
// if (nJumpArr.indexOf(url_get_params().icid) > -1) { // if (nJumpArr.indexOf(url_get_params().icid) > -1) {
if (url_get_params().icid != '31187') { // if (url_get_params().icid != '31187') {
if (url_get_params().from != 'pc') { // if (url_get_params().from != 'pc') {
window.location.href = "https://www.footseen.xyz?go=footseen&pmt=https://" + url_get_params().mrefer; // window.location.href = "https://www.footseen.xyz?go=footseen&pmt=https://" + url_get_params().mrefer;
} else { // } else {
$.ajax({ // $.ajax({
url: 'https://cpapi.footseen.xyz/activeLog/webActive', // url: 'https://cpapi.footseen.xyz/activeLog/webActive',
data: { // data: {
activeType: 3, // activeType: 3,
pageID: 'pcDownload', // pageID: 'pcDownload',
}, // },
success: function (data) { // success: function (data) {
} // }
}) // })
} // }
} // }
// } else { // } else {
// if (url_get_params().icid != '31187') { // if (url_get_params().icid != '31187') {
// window.location.href = "https://www.footseen.xyz?go=footseen"; // window.location.href = "https://www.footseen.xyz?go=footseen";
// } // }
// } // }
} // }
</script> </script>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="renderer" content="webkit"> <meta name="renderer" content="webkit">
......
...@@ -27,32 +27,39 @@ ...@@ -27,32 +27,39 @@
</script> </script>
<script> <script>
var ua = window.navigator.userAgent.toLowerCase(); var ua = window.navigator.userAgent.toLowerCase();
var nJumpArr = ['11134', '211120', '11151', '31186', '31192'];
var h5CidArr = ['H5BZBSX', 'H5BNFDYY', 'H5BABYH', 'H5BSSWA', 'H5BSSQ'];
var h5i = nJumpArr.indexOf(url_get_params().icid);
if ((/iphone|ipad|ipod/.test(ua)) && h5i > -1) {
window.location.href = "https://www.footseen.xyz?go=footseen&pmt=https://" + url_get_params().mrefer + '&h5Cid=' + h5CidArr[h5i];
}
// var nJumpArr = ['31184', '11134', '31179', '31183', '21144', '11125', '1116', '31147', '31186', '11159'] // var nJumpArr = ['31184', '11134', '31179', '31183', '21144', '11125', '1116', '31147', '31186', '11159']
if (!((/iphone|ipad|ipod/.test(ua)) || (/android/.test(ua)))) { // if (!((/iphone|ipad|ipod/.test(ua)) || (/android/.test(ua)))) {
// if (nJumpArr.indexOf(url_get_params().icid) > -1) { // if (nJumpArr.indexOf(url_get_params().icid) > -1) {
if (url_get_params().icid != '31187') { // if (url_get_params().icid != '31187') {
if (url_get_params().from != 'pc') { // if (url_get_params().from != 'pc') {
window.location.href = "https://www.footseen.xyz?go=footseen&pmt=https://" + url_get_params().mrefer; // window.location.href = "https://www.footseen.xyz?go=footseen&pmt=https://" + url_get_params().mrefer;
} else { // } else {
$.ajax({ // $.ajax({
url: 'https://cpapi.footseen.xyz/activeLog/webActive', // url: 'https://cpapi.footseen.xyz/activeLog/webActive',
data: { // data: {
activeType: 3, // activeType: 3,
pageID: 'pcDownload', // pageID: 'pcDownload',
}, // },
success: function (data) { // success: function (data) {
} // }
}) // })
} // }
} // }
// } else { // } else {
// if (url_get_params().icid != '31187') { // if (url_get_params().icid != '31187') {
// window.location.href = "https://www.footseen.xyz?go=footseen"; // window.location.href = "https://www.footseen.xyz?go=footseen";
// } // }
// } // }
} // }
</script> </script>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="renderer" content="webkit"> <meta name="renderer" content="webkit">
......
...@@ -23,7 +23,10 @@ ...@@ -23,7 +23,10 @@
</script> </script>
<script> <script>
var ua = window.navigator.userAgent.toLowerCase(); var ua = window.navigator.userAgent.toLowerCase();
if (!((/iphone|ipad|ipod/.test(ua)) || (/android/.test(ua)))) { if (!((/android/.test(ua)))) {
if((/iphone|ipad|ipod/.test(ua))){
window.location.href = 'https://www.footseen.xyz/mobile/index.html';
}
window.location.href = "https://www.footseen.xyz?go=footseen"; window.location.href = "https://www.footseen.xyz?go=footseen";
} }
</script> </script>
......
...@@ -23,7 +23,10 @@ ...@@ -23,7 +23,10 @@
</script> </script>
<script> <script>
var ua = window.navigator.userAgent.toLowerCase(); var ua = window.navigator.userAgent.toLowerCase();
if (!((/iphone|ipad|ipod/.test(ua)) || (/android/.test(ua)))) { if (!((/android/.test(ua)))) {
if((/iphone|ipad|ipod/.test(ua))){
window.location.href = 'https://www.footseen.xyz/mobile/index.html';
}
window.location.href = "https://www.footseen.xyz?go=footseen"; window.location.href = "https://www.footseen.xyz?go=footseen";
} }
</script> </script>
......
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