<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  <meta content="telephone=no" name="format-detection">
  <meta name="wap-font-scale" content="no">
  <title>現金提現</title>
  <link rel="stylesheet" href="css/reset.css">
  <link rel="stylesheet" href="css/index.css">
  <script type="text/javascript" src="js/fsize.js"></script>
</head>
<body>
  <div class="cashReality">
    <ul class="list">
      <li class="item wx-type">
        <img class="type-icon wx" src="img/wx.png" alt="">
        <span>微信公眾號提現(Firefly Live)</span>
        <img class="jt" src="img/jt.png" alt="">
      </li>
      <li class="item paypal-li">
        <img class="type-icon paypal" src="img/paypal.png" alt="">
        <span>PayPal提現</span>
        <img class="jt" src="img/jt.png" alt="">
      </li>
    </ul>
    <div class="pop pop1">
      PayPal提现功能正在积极开发中,关于海外提现问题可咨询客服了解详情
      <div class="bottom">
        <div class="left pop-close">取消</div>
        <a href="yazhai://_customer_service"><div class="right toServer">咨詢客服</div></a> 
      </div>
    </div>
    <div class="pop pop2">
        點擊微信右上角“+”號,選擇“添加朋友”,搜索官方公眾號“Firefly Live”,關注后即可申請提現
        <div class="bottom">
          <div class="left pop-close">取消</div>
          <!-- <a href="javascript:testApp('weixin://')"><div class="right">打開微信</div></a>  -->
          <a href="yazhai://_weixin"><div class="right toServer">打開微信</div></a>
        </div>
      </div>
    <div class="black-bg"></div>
  </div>
</body>
<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
<script type="text/javascript">
  $ip = "https://webserver.yabolive.net";
  var bbb = location.href;
  var data = url_get_params(bbb)
  sessionStorage.bbb = data.uid; //u
  sessionStorage.kkk=data.method;  //t
  if(data.method==undefined){
    sessionStorage.kkk=data.token;
  }
  function url_get_params(url_path) {
      var url = url_path;
      var theRequest = new Object();
      if (url.indexOf("?") != -1) {
          var str = url.substr(url.indexOf("?") + 1);
          strs = str.split("&");
          for (var i = 0; i < strs.length; i++) {
              theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
          }
      }
      return theRequest;
  }
  // function testApp(url) { 
  //   var timeout, t = 1000, hasApp = true; 
  //   // setTimeout(function () { 
  //   //   if (!hasApp) { 
  //   //     //没有安装微信
  //   //     var r=confirm("您没有安装微信,请先安装微信!");
  //   //     if (r==true){
  //   //         location.href="http://weixin.qq.com/"
  //   //     }
  //   //   }else{
  //   //     //安装微信
  //   //   }
  //   //   document.body.removeChild(ifr); 
  //   // }, 10000) 
  //   var t1 = Date.now(); 
  //   var ifr = document.createElement("iframe"); 
  //   ifr.setAttribute('src', url); 
  //   ifr.setAttribute('style', 'display:none'); 
  //   document.body.appendChild(ifr); 
  //   timeout = setTimeout(function () { 
  //     var t2 = Date.now(); 
  //     if (!t1 || t2 - t1 < t + 100) { 
  //       hasApp = false; 
  //     } 
  //   }, t); 
  // } 
  // //判断访问终端
  // var browser={
  //   versions:function(){
  //     var u = navigator.userAgent, app = navigator.appVersion;
  //     return {
  //       trident: u.indexOf('Trident') > -1, //IE内核
  //       presto: u.indexOf('Presto') > -1, //opera内核
  //       webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
  //       gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1,//火狐内核
  //       mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
  //       ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
  //       android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器
  //       iPhone: u.indexOf('iPhone') > -1 , //是否为iPhone或者QQHD浏览器
  //       iPad: u.indexOf('iPad') > -1, //是否iPad
  //       webApp: u.indexOf('Safari') == -1, //是否web应该程序,没有头部与底部
  //       weixin: u.indexOf('MicroMessenger') > -1, //是否微信 (2015-01-22新增)
  //       qq: u.match(/\sQQ/i) == " qq" //是否QQ
  //     };
  //   }(),
  //   language:(navigator.browserLanguage || navigator.language).toLowerCase()
  // }

  $(".paypal-li").click(function () {
    $(".pop1").fadeIn("fast");
    $(".black-bg").fadeIn("fast");
  });
  $(".wx-type").click(function () {
    $(".pop2").fadeIn("fast");
    $(".black-bg").fadeIn("fast");
  });
  $(".pop-close").click(function () {
    $(".pop").fadeOut("fast");
    $(".black-bg").fadeOut("fast");
  });
  $(".toServer").click(function () {
    $(".pop").fadeOut("fast");
    $(".black-bg").fadeOut("fast");
  });
</script>
</html>