Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

libai / footsen

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • footsen
  • footseen
  • Nesting
  • fireflyRmb
  • wxFalse.html
Find file
BlameHistoryPermalink
  • dabai's avatar
    footseen h5 移植 · 6161a8cd
    dabai committed 4 years ago
    6161a8cd
wxFalse.html 3.54 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
<!DOCTYPE html>
<html lang="en">
<head>
    <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/indexLi.css?v='12312352'">
    <link rel="stylesheet" href="../../css/background.css" />
    <script src="js/fsize.js"></script>
    <style type="text/css">
    	.wx-false-btn{
    		background:  #FF57A0;
    	}
    </style>
</head>
<body>
<div  style="width: 10rem;height: 1rem;"></div>
<div class="wx-banner">
    <p class="wx-p1">WeChat</p>
    <p class="wx-p2 L-Cn">請先綁定微信</p>
    <p class="wx-p2 L-En">Please bind WeChat first</p>
    <p class="wx-p3 L-Cn">綁定的微信將成為你的提現賬戶</p>
    <p style="text-indent: 0rem;width: 5rem;left: 4rem;position: absolute" class="wx-p3 L-En">The bound WeChat will become your withdrawal account</p>
</div>
<div class="wx-false-btn L-Cn">綁定微信</div>
<div class="wx-false-btn L-En">Bind WeChat</div>
</body>
<script src="js/jquery-3.2.1.min.js"></script>
<script src="../../lib/globalizationJq.js"></script>
<script>
    if(sessionStorage.lang==1)$("title").text("Set WeChat withdrawal")
    else $("title").text("設置微信提現")
    //$ip = "http://ceshi.yabolive.tv/web";
    $ip = "https://webserver.yabolive.net";
    $(".wx-false-btn").on("click", function () {
        var obj2 = {
            "cid": 8,
            "reqCode": new Date().getTime(),
            "data": {
                msg: '跳转微信绑定页面'
            }
        }
        var obj = JSON.stringify(obj2);
        appCollaboration(obj)
    })
    setInterval(function () {
        $.ajax({
            url: $ip + '/withdraw/checkbindway.html',
            type: "post",
            data: {
                os: "WEB",
                cid: "web_gw",
                lang: sessionStorage.lang,
                uid:  sessionStorage.bbb,
                token:sessionStorage.kkk,
                bindtype:2
            },
            success: function (msg) {
                var data=JSON.parse(msg);
                if(data.code==1){
                    window.location.href="http://yazhai://_closeweb";
                }
            }
        })
    },500)

    function appCollaboration(msg) {
        var sUserAgent = navigator.userAgent.toLowerCase();
        var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
        var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";
        var bIsMidp = sUserAgent.match(/midp/i) == "midp";
        var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
        var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";
        var bIsAndroid = sUserAgent.match(/android/i) == "android";
        var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
        var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";
        if (!(bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM)) {
        }
        else if (bIsAndroid) {
            window.yazhai.appCollaboration(msg);
        } else if (bIsIphoneOs || bIsIpad) {
            window.webkit.messageHandlers.appCollaboration.postMessage(msg);
        }
    }
    //客户端回调结果
    function appCallback(msg) {
        console.log(msg);
    }
</script>
</html>