admin管理员组

文章数量:1624340

$(function () {
  var register = $("#register");// 添加注册并且打开APP事件

  register.click(function(e){
    e.preventDefault();
    deepLink();
  })


  function deepLink(){
    // 判断系统
    var o =null;
    var u = navigator.userAgent, app = navigator.appVersion;
    var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //g
    var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端

    if (isAndroid) {
      //这个是安卓操作系统
      openOrDownload();//需要安卓的src参数
        o =setTimeout(function(){
        document.body.removeChild(ifr);
        document.hasFocus() && (window.location = 'http://www.baidu') //安卓给的应用宝地址
      },1000)
    }
    if (isIOS) {
      //这个是ios操作系统
      var ver = (navigator.appVersion).match(/OS (\d+)_(\d+)_?(\d+)?/);
      ver = parseInt(ver[1], 10);
      //ios9以上,打开的时候用a标签来跳转
      if (ver > 9

本文标签: 未完成商店app