Commit 372c1036 by dabai

footseen邀请测试

parent 0f27fd87
Showing with 33 additions and 16 deletions
...@@ -76,8 +76,7 @@ ...@@ -76,8 +76,7 @@
</div> </div>
<img src="https://www.footseen.com/img/logo.png" class="logo" /> <img src="https://www.footseen.com/img/logo.png" class="logo" />
<a class="topUp"></a> <a class="topUp"></a>
<div class="iosDown heartbeat" data-clipboard-action="copy" data-clipboard-target="#target" id="copy_btn"></div> <div class="iosDown heartbeat"></div>
<span id="target"></span>
<div class="swiper-container androidSwiper hide"> <div class="swiper-container androidSwiper hide">
<div class="swiper-wrapper"> <div class="swiper-wrapper">
<div class="swiper-slide"> <div class="swiper-slide">
...@@ -96,14 +95,11 @@ ...@@ -96,14 +95,11 @@
<div class="andoridBottom"></div> <div class="andoridBottom"></div>
<div class="arBottom"></div> <div class="arBottom"></div>
</div> </div>
</body> </body>
<script src="https://www.footseen.com/js/jquery-3.1.1.min.js"></script> <script src="https://www.footseen.com/js/jquery-3.1.1.min.js"></script>
<script src="https://www.footseen.com/js/swiper.min.js"></script> <script src="https://www.footseen.com/js/swiper.min.js"></script>
<script src="js/clipboard.min.js"></script>
<script type="text/javascript" src="https://www.footseen.com/js/langAndorid.js?v=202003301518" ></script> <script type="text/javascript" src="https://www.footseen.com/js/langAndorid.js?v=202003301518" ></script>
<script src='https://www.footseen.com/layer-v3.1.0/layer/layer.js'></script> <script src='https://www.footseen.com/layer-v3.1.0/layer/layer.js'></script>
<script type="text/javascript"> <script type="text/javascript">
function browserRedirect(msg) { function browserRedirect(msg) {
var sUserAgent = navigator.userAgent.toLowerCase(); var sUserAgent = navigator.userAgent.toLowerCase();
...@@ -126,7 +122,11 @@ ...@@ -126,7 +122,11 @@
var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串 var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
$(".iosDown").on("click", function () { $(".iosDown").on("click", function () {
var data = OpenInstall.parseUrlParams(); var data = {
"bingdType":getRequest().bindType,
"lang":sessionStorage.lang,
"type":getRequest().type,
};
var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串 var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
if (userAgent.indexOf("Line") > -1) { if (userAgent.indexOf("Line") > -1) {
if(sessionStorage.lang == 7){ if(sessionStorage.lang == 7){
...@@ -137,10 +137,7 @@ ...@@ -137,10 +137,7 @@
$(".masking.L_En").fadeIn(500); $(".masking.L_En").fadeIn(500);
} }
} else { } else {
// console.info('Action:', e.action); copyText(JSON.stringify(data));
// console.info('Text:', e.text);
// console.info('Trigger:', e.trigger);
// e.clearSelection();
setTimeout(function(){ setTimeout(function(){
new OpenInstall({ new OpenInstall({
appKey: "tsy5ov", appKey: "tsy5ov",
...@@ -161,11 +158,26 @@ ...@@ -161,11 +158,26 @@
$('.topUp').on('click',function(){ $('.topUp').on('click',function(){
window.location.href = 'https://www.footseen.com/footseen/phonepay/applepay.html?lang='+sessionStorage.lang+'&gofrom=web&cidStr=h5_footseengw'; window.location.href = 'https://www.footseen.com/footseen/phonepay/applepay.html?lang='+sessionStorage.lang+'&gofrom=web&cidStr=h5_footseengw';
}) })
$(document).ready(function(){
var targetText=$("#target").text(); function copyText(text) {
var clipboard = new Clipboard('#copy_btn'); var textarea = document.createElement("textarea");
}); var currentFocus = document.activeElement;
$("#target").text(getRequest().agentCode) document.body.appendChild(textarea);
textarea.value = text;
textarea.focus();
if (textarea.setSelectionRange)
textarea.setSelectionRange(0, textarea.value.length);
else
textarea.select();
try {
var flag = document.execCommand("copy");
} catch(eo){
var flag = false;
}
document.body.removeChild(textarea);
currentFocus.focus();
return flag;
}
function getRequest() { function getRequest() {
var url = location.href; var url = location.href;
var theRequest = new Object(); var theRequest = new Object();
......
...@@ -54,7 +54,12 @@ ...@@ -54,7 +54,12 @@
<script src='https://www.footseen.com/layer-v3.1.0/layer/layer.js'></script> <script src='https://www.footseen.com/layer-v3.1.0/layer/layer.js'></script>
<script type="text/javascript"> <script type="text/javascript">
var data = OpenInstall.parseUrlParams(); //var data = OpenInstall.parseUrlParams();
var data = {
"bingdType":getRequest().bindType,
"lang":sessionStorage.lang,
"type":getRequest().type,
};
$('.iosDown').on('click',function(){ $('.iosDown').on('click',function(){
new OpenInstall({ new OpenInstall({
appKey: "dzxj4c", appKey: "dzxj4c",
......
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