• 暂存战绩页面


    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
        <title>亲友圈邀请加入</title>
        <link rel="stylesheet" href="../../bootstrap/css/bootstrap.css">
        <link rel="stylesheet" href="../../bootstrap/css/bootstrap.css">
        <link rel="stylesheet" href="//res.wx.qq.com/open/libs/weui/0.4.3/weui.min.css">
        <style>
            html,
            body {
                height: 100%;
                padding: 0;
                margin: 0;
                text-align: center;
                color: white;
            }
    
            * {
                padding: 0;
                margin: 0;
            }
    
            .shareBg {
                max- 460px;
                min-height: 640px;
                margin: 0 auto;
                background-position: 50% 50%;
                background-repeat: no-repeat;
                background-size: 100% 100%;
                -moz-background-size: 100% 100%;
                -webkit-background-size: 100% 100%;
                height: 100%;
                padding: 0px 0 0;
                box-sizing: border-box;
                position: relative;
            }
    
            .page-container, .page-content {
                height: 100%;
                background: none !important;
                position: relative;
                 100% !important;
            }
    
            [v-cloak] {
                display: none;
            }
        </style>
    </head>
    <body>
    <div class="weui-flex shareBg">
        <div class="weui-flex__item">
            <img src=../../images/shart/shart_work.png width="60" height="60"
                 style=" text-align: center;border-radius:50%;margin-top: 3%">
        </div>
        <div class="weui-flex__item">
            <b><p>邀请人:王尚龙</p></b>
        </div>
        <div class="weui-flex__item" style="margin-top: 10%">
            <p>亲友圈    ID:135790</p>
            <p>亲友圈名称:老子的天下</p>
        </div>
        <div class="buts" style="margin-top: 100%">
            <button v-show="add" type="button" class="btn btn-primary btn-lg btn btn-warning" ng-click="addwork()">
                一键加入亲友圈
            </button>
            <button v-show="msg" onclick="window.location.href='https://a9ktpu.mlinks.cc/AeRt'" type="button"
                    class="btn btn-default btn-lg btn btn-success">      打开游戏      
            </button>
        </div>
    
    </div>
    </body>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.js"></script>
    <script src="https://cdn.bootcss.com/angular.js/1.4.6/angular.min.js"></script>
    <script>
        function GetQueryString(name)
        {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return unescape(r[2]);
            return null;
        };
        var app = angular.module('promotApp', []);
        app.controller('promotCtrl', function ($scope, $http)
        {
            $scope.errid = GetQueryString('errid');
            if ($scope.errid)
            {
                if ($scope.errid === 101)
                {
                    $scope.msg = true;
                    alert('对不起,未找到馆主(' + $scope.errid + ')!');
                } else if ($scope.errid === 102)
                {
                    $scope.msg = true;
                    alert('对不起,亲友圈已经解散(' + $scope.errid + ')!');
                } else if ($scope.errid === 103)
                {
                    $scope.msg = true;
                    alert('对不起!您没有注册,点击打开游戏注册吧(' + $scope.errid + ')!');
                }
            } else
            {
                $scope.name_obj = GetQueryString('name');
                $scope.ownerName_obj = GetQueryString('ownerName');
                $scope.clubid_obj = GetQueryString('clubid');
                $scope.ownerHeadimgurl_obj = GetQueryString('headimgurl');
                $scope.data_obj = GetQueryString('udata');
                $scope.page = false;
                $scope.msg = false;
                $scope.add = false;
                if ($scope.ownerName_obj == null || $scope.clubid_obj == null || $scope.data_obj == null)
                {
                    $scope.page = false;
                    $scope.msg = true;
                    $scope.add = false;
                    alert('对不起,亲友圈信息错误!');
                } else if ($scope.ownerHeadimgurl_obj == null)
                {
                    $scope.name = unescape($scope.name_obj);
                    $scope.ownerName = unescape($scope.ownerName_obj);
                    $scope.clubid = $scope.clubid_obj;
                    $scope.page = true;
                    $scope.add = true;
                } else
                {
                    $scope.name = unescape($scope.name_obj);
                    $scope.ownerName = unescape($scope.ownerName_obj);
                    $scope.clubid = $scope.clubid_obj;
                    $scope.ownerHeadimgurl = $scope.ownerHeadimgurl_obj;
                    $scope.page = true;
                    $scope.add = true;
                }
            }
            //$scope.showBody = false;
            //$scope.showErr = false;
            //$scope.errorText = '';
            //$scope.mid = GetQueryString('mid');
            //$scope.gameId = GetQueryString('gameid') || 'sxmj';
            //$scope.url = window.location.protocol + '//' + window.location.host;
            //$scope.href = window.location.href;
            //$scope.hrefQr = funcUrlDel('nsukey').replace(/&/g, "%26") + '%26login=1';
            //$scope.wxTip = gameNameList[$scope.gameId];
            //// $('#shareQr').attr("src","http://qr.topscan.com/api.php?text="+ $scope.hrefQr +"&logo="+ url +"/lbagent/game/images/{{gameId}}logo.png&h=1")
            //$scope.bindAgent = function ()
            //{
            //    $http.post($scope.url + '/oauth/wxuser2member', {
            //        "mid": parseInt($scope.mid)
            //    }).success(function (res)
            //    {
            //        if (res.result == 0)
            //        {
            //            $scope.showErr = false;
            //            $scope.errorText = '';
            //            window.location.href = res.data;
            //        } else
            //        {
            //            $scope.showErr = true;
            //            $scope.errorText = '不好意思 系统出错了(' + res.result + ')';
            //        }
            //    }).error(function ()
            //    {
            //        $scope.showErr = true;
            //        $scope.errorText = '当前网络不畅,请点击右上角刷新该页面';
            //    });
            //};
            //if (GetQueryString("from") || GetQueryString("login"))
            //{
            //    $scope.bindAgent();
            //    // $scope.showBody = true;
            //}
            //else
            //{
            //    $scope.showBody = true;
            //}
            //$scope.bindAgent();
        });
        function addwork()
        {
            $http.post($scope.url + '/userInfo/joinClub', {
                udata: GetQueryString('udata')
            }).success(function (resp)
            {
                if (resp.data.result === 4018)
                {
                    alert('对不起,参数错误(' + resp.data.result + ')!');
                    $scope.page = true;
                    $scope.add = false;
                    $scope.msg = true;
                } else if (resp.data.result === 4803)
                {
                    alert('您已经是亲友圈成员(' + resp.data.result + ')!');
                    $scope.page = true;
                    $scope.add = false;
                    $scope.msg = true;
                } else if (resp.data.result === 4802)
                {
                    alert('对不起,没有此亲友圈(' + resp.data.result + ')!');
                    $scope.page = true;
                    $scope.add = false;
                    $scope.msg = true;
                } else if (resp.data.result === 262)
                {
                    alert('对不起,俱乐部不存在(' + resp.data.result + ')!');
                    $scope.page = true;
                    $scope.add = false;
                    $scope.msg = true;
                } else if (resp.data.result === 263)
                {
                    alert('对不起,俱乐部停止使用(' + resp.data.result + ')!');
                    $scope.page = true;
                    $scope.add = false;
                    $scope.msg = true;
                } else if (resp.data.result === 266)
                {
                    alert('您已提交申请(' + resp.data.result + ')!');
                    $scope.page = true;
                    $scope.add = false;
                    $scope.msg = true;
                } else if (resp.data.result === 269)
                {
                    alert('您已经是亲友圈成员(' + resp.data.result + ')!');
                    $scope.page = true;
                    $scope.add = false;
                    $scope.msg = true;
                } else if (resp.data.result === 271)
                {
                    alert('对不起,玩家不在俱乐部中(' + resp.data.result + ')!');
                    $scope.page = true;
                    $scope.add = false;
                    $scope.msg = true;
                } else if (resp.data.result === 276)
                {
                    alert('对不起,数据错更新出错(' + resp.data.result + ')!');
                    $scope.page = true;
                    $scope.add = false;
                    $scope.msg = true;
                } else if (resp.data.result === 277)
                {
                    alert('对不起,俱乐部玩法已经关闭(' + resp.data.result + ')!');
                    $scope.page = true;
                    $scope.add = false;
                    $scope.msg = true;
                } else if (resp.data.result === 278)
                {
                    alert('对不起,馆主未在线(' + resp.data.result + ')!');
                    $scope.page = true;
                    $scope.add = false;
                    $scope.msg = true;
                } else if (resp.data.result === 1)
                {
                    alert('您没有授权,请下载游戏登录(' + resp.data.result + ')!');
                    $scope.page = true;
                    $scope.add = false;
                    $scope.msg = true;
                } else if (resp.data.result === 0)
                {
                    alert('加入申请成功提交,等待群主同意(' + resp.data.result + ')!');
                    $scope.page = true;
                    $scope.add = false;
                    $scope.msg = true;
                }
            }).error(function ()
            {
                alert("对不起,请求出现异常,请点击右上角刷新该页面。");
            });
    
        };
        $(document).ready(function ()
        {
            $('.shareBg').css("backgroundImage", "url(../../images/shart/shart_work.png)");
        });
    </script>
    </html>
    

      

  • 相关阅读:
    「Codeforces 724F」Uniformly Branched Trees
    「笔记」组合入门题选做
    「算法笔记」组合入门与应用
    「算法笔记」可持久化线段树
    「算法笔记」期望 DP 入门
    「NOIP 2016」换教室
    「算法笔记」基础数论
    「笔记」关于乱搞
    python 的列表遍历删除
    Python基础第三篇:函数
  • 原文地址:https://www.cnblogs.com/w-s-l123/p/10402133.html
Copyright © 2020-2023  润新知