Commit 06a97155 authored by xinyuandu's avatar xinyuandu

朋友圈换新app功能

parent 299edcea
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</head> </head>
<body style="background: #FFFFFF"> <body style="background: #FFFFFF">
<input type="hidden" id="open_id" value={$data}> <input type="hidden" id="open_id" value={$data} />
<header class="m_part1_w"> <header class="m_part1_w">
<div class="u_btn1b" onclick="window.history.go(-1)" style="margin-top:0.1rem"><span style=""><i class="icon-angle-left" style="font-size:0.65rem"></i></span></div> <div class="u_btn1b" onclick="window.history.go(-1)" style="margin-top:0.1rem"><span style=""><i class="icon-angle-left" style="font-size:0.65rem"></i></span></div>
<div class="lp-bunner"> <div class="lp-bunner">
......
...@@ -15,5 +15,17 @@ ...@@ -15,5 +15,17 @@
<div style="width:100%;height:100%"> <div style="width:100%;height:100%">
<image style="width:100%;height:80%;position:fixed;top:5%;left:0px;z-index:10000;" src="/app/images/android@2x.png"/> <image style="width:100%;height:80%;position:fixed;top:5%;left:0px;z-index:10000;" src="/app/images/android@2x.png"/>
</div> </div>
<script src="/app/js/jquery-1122-min.js" charset="UTF-8"></script>
<script>
$(document).ready(function(){
console.log("yindao")
var params = "?" + window.location.href.split('?')[1];
if ( navigator.userAgent.toLowerCase().match(/MicroMessenger/i)!='micromessenger' ) {
location.href = "shareShop" + params ;
} else {
console.log("wechart net");
}
})
</script>
</body> </body>
</html> </html>
...@@ -15,5 +15,18 @@ ...@@ -15,5 +15,18 @@
<div style="width:100%;height:100%"> <div style="width:100%;height:100%">
<image style="width:100%;height:80%;position:fixed;top:5%;left:0px;z-index:10000;" src="/app/images/ios@2x.png"/> <image style="width:100%;height:80%;position:fixed;top:5%;left:0px;z-index:10000;" src="/app/images/ios@2x.png"/>
</div> </div>
<script src="/app/js/jquery-1122-min.js" charset="UTF-8"></script>
<script>
$(document).ready(function(){
console.log("yindao")
var params = "?" + window.location.href.split('?')[1]
if ( navigator.userAgent.toLowerCase().match(/MicroMessenger/i)!='micromessenger' ) {
console.log(window.location);
location.href = "shareShop" + params;
} else {
console.log("wechart net")
}
})
</script>
</body> </body>
</html> </html>
...@@ -36,7 +36,6 @@ function readUrlAndroid(isFutang, fn) { ...@@ -36,7 +36,6 @@ function readUrlAndroid(isFutang, fn) {
// //进场红包 // //进场红包
// _rt = _headerMarks + '://tlhost/tonglian/open?url='+ _href +'?down_hide=1&name=进场红包'; // _rt = _headerMarks + '://tlhost/tonglian/open?url='+ _href +'?down_hide=1&name=进场红包';
// } // }
console.log(_rt)
return fn(_rt); return fn(_rt);
} }
...@@ -77,7 +76,6 @@ function readUrlIos(isFutang, fn){ ...@@ -77,7 +76,6 @@ function readUrlIos(isFutang, fn){
} }
function jumpEvent(){ function jumpEvent(){
console.log('下载页');
var _clientType = getUrlParam('client'); var _clientType = getUrlParam('client');
var _ft = getUrlParam('ft'); var _ft = getUrlParam('ft');
...@@ -86,38 +84,36 @@ function jumpEvent(){ ...@@ -86,38 +84,36 @@ function jumpEvent(){
$('.fix_area_top>p>span:nth-of-type(2)').html('请下载福堂中国APP'); $('.fix_area_top>p>span:nth-of-type(2)').html('请下载福堂中国APP');
$('#jump_link>img').attr('src','images/pbl_dakai_ft.png'); $('#jump_link>img').attr('src','images/pbl_dakai_ft.png');
} }
var params = "?" + window.location.href.split('?')[1]
$('#jump_link').click(function(e){ $('#jump_link').click(function(e){
console.log($('#jump_link').attr("data-phone"));
if ($('#jump_link').attr("data-phone") == 'true' ? true : false ){ if ($('#jump_link').attr("data-phone") == 'true' ? true : false ){
console.log(device.isIos());
alert("123");
if(device.isIos()) { if(device.isIos()) {
console.log( navigator.userAgent.toLowerCase().match(/MicroMessenger/i) )
if ( navigator.userAgent.toLowerCase().match(/MicroMessenger/i)!='micromessenger' ) { if ( navigator.userAgent.toLowerCase().match(/MicroMessenger/i)!='micromessenger' ) {
readUrlIos(_ft, function(_url){ /*readUrlIos(_ft, function(_url){
window.location.href = _url; window.location.href = _url;
}); });*/
window.location.href = 'tlscheme://tlhost/tongtonglian/open' + params;
window.setTimeout(function(){ window.setTimeout(function(){
location.href = ServerHostTempC + _clientType==='b'?'/app_broker/download_b':'/app.php/app/download_c' location.href = ServerHostTempC + _clientType==='b'?'/app_broker/download_b':'/app.php/app/download_c'
},2000); },10000);
} else { } else {
location.href = "yindao_ios.html" location.href = "yindaoIos" + params
} }
} else if (device.isAndroid()){ } else if (device.isAndroid()){
if ( navigator.userAgent.toLowerCase().match(/MicroMessenger/i)!='micromessenger' ) { if ( navigator.userAgent.toLowerCase().match(/MicroMessenger/i)!='micromessenger' ) {
readUrlAndroid(_ft, function(_url){ /*readUrlAndroid(_ft, function(_url){
console.log(_url);
window.location.href = _url; window.location.href = _url;
}); });*/
window.location.href = 'tlscheme://tlhost/tongtonglian/open' + params;
window.setTimeout(function(){ window.setTimeout(function(){
location.href = ServerHostTempC + _clientType==='b'?'/app_broker/download_b':'/app.php/app/download_c' location.href = ServerHostTempC + _clientType==='b'?'/app_broker/download_b':'/app.php/app/download_c'
},2000); },1000);
} else { } else {
location.href = "yindao_android.html" location.href = "yindaoAndroid" + params
} }
} else { } else {
console.log("12312312312312");
}; };
} else { } else {
// location.href = ServerHostTempC + "/app/dist/index.html#/inviteRegister?" + "inviteRegister"; // location.href = ServerHostTempC + "/app/dist/index.html#/inviteRegister?" + "inviteRegister";
...@@ -127,24 +123,7 @@ function jumpEvent(){ ...@@ -127,24 +123,7 @@ function jumpEvent(){
e.stopPropagation(); e.stopPropagation();
}); });
if ( navigator.userAgent.toLowerCase().match(/MicroMessenger/i)!='micromessenger' ) {
if(device.isIos()) {
readUrlIos(_ft, function(_url){
window.location.href = _url;
});
} else if(device.isAndroid()) {
readUrlAndroid(_ft, function(_url){
window.location = _url;
});
} else {
console.log("other device");
}
window.setTimeout(function(){
location.href = ServerHostTempC + _clientType==='b'?'/app_broker/download_b':'/app.php/app/download_c'
},2000);
} else {
}
// if(device.isIos()) { // if(device.isIos()) {
// readUrlIos(_ft, function(_url){ // readUrlIos(_ft, function(_url){
// window.location.href = _url; // window.location.href = _url;
......
...@@ -335,6 +335,7 @@ ...@@ -335,6 +335,7 @@
} }
})(); })();
$(document).ready(function(){ $(document).ready(function(){
console.log("12312321321312321132") console.log("12312321321312321132")
//window.location.href = 'https://www.baidu.com'; //window.location.href = 'https://www.baidu.com';
...@@ -354,6 +355,7 @@ $(document).ready(function(){ ...@@ -354,6 +355,7 @@ $(document).ready(function(){
} }
}); });
console.log($('#open_id').val())
console.log(JSON.parse($('#open_id').val())); console.log(JSON.parse($('#open_id').val()));
console.log(JSON.parse($('#open_id').val()).id) console.log(JSON.parse($('#open_id').val()).id)
$('#jump_link').attr("data-phone" , JSON.parse($('#open_id').val()).is_user) $('#jump_link').attr("data-phone" , JSON.parse($('#open_id').val()).is_user)
......
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 to comment