<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <link href="__CSS__/download/index.css" rel="stylesheet"> </head> <body> <div style="display:none" class="right-open"> <img src="__IMG__/img_guide@3x.png" class="right-open-img"> </div> <notempty name="data" > <eq name="data['app_version']" value="1"> <a class="xz" download="" href="{$data['dow_url']}"></a> <else/> <a class="xz" download="" href="itms-services://?action=download-manifest&url=https://{$_SERVER['HTTP_HOST']}{:ltrim($data['plist_url'],'.')}"></a> </eq> </notempty> </body> <script src="__JS__/jquery-1.11.1.min.js"></script> <script> $(function () { if(ismobile() == 3 ){ if(is_qq()){ $(".right-open").show(); } if (is_weixn()){ $(".right-open").show(); } } if (ismobile() == 2){ if(is_weixn()){ $(".right-open").show(); } } $(".xz").trigger('click'); }); $(".xz").click(function () { window.location.href = $(this).attr('href'); }) </script> <script> /** * [isMobile 判断平台] */ function ismobile(){ var u = navigator.userAgent, app = navigator.appVersion; var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); if (isAndroid) { //这个是安卓操作系统 return 2; } if (isIOS) { //这个是ios操作系统 return 3 } }; function is_weixn(){ var ua = navigator.userAgent.toLowerCase(); if(ua.match(/MicroMessenger/i)=="micromessenger") { return true; } else { return false; } } function is_qq(){ var ua = navigator.userAgent.toLowerCase(); if (ua.match(/QQ/i) == "qq") { return true; } return false; } </script> </html>