question_info.html 5.6 KB
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <title>{$title}</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <meta http-equiv="Access-Control-Allow-Origin" content="*" />
    <link rel="stylesheet" href="__CDN__/assets/share/js/jquery.min.js" />
    <script src="__CDN__/assets/share/js/base.js"></script>
    <style>
        body,
        html {
            margin: 0;
        }
        
        .quesbox {
            padding: 0.5rem 0.32rem;
            box-sizing: border-box;
            width: 6.86rem;
            background: #ffffff;
            border-radius: 0.24rem;
            box-shadow: 0 0.12rem 0.24rem 0.06rem rgba(0, 0, 0, 0.05);
            margin: 0.4rem auto 0;
        }
        
        .questitle {
            color: #06121f;
            font-size: 0.32rem;
            font-weight: bold;
        }
        
        .qieskey {
            width: 0.48rem;
            height: 0.48rem;
            border: 0.02rem solid #979797;
            color: 0.28rem;
            text-align: center;
            line-height: 0.48rem;
            margin-right: 0.24rem;
            font-size: 0.32rem;
            border-radius: 50%;
        }
        
        .queskeytitle {
            color: #06121f;
            font-size: 0.32rem;
        }
        
        .quesitembox {
            margin-top: 1.5rem;
        }
        
        .quesitem {
            display: flex;
            align-items: center;
            margin-top: 0.48rem;
        }
        
        .questype {
            display: flex;
            align-items: center;
            color: #06121f;
            font-size: 0.32rem;
            padding: 0.32rem;
            box-sizing: border-box;
            font-weight: bold;
        }
        
        .selectimg {
            width: 0.48rem;
            height: 0.48rem;
            margin-right: 0.12rem;
        }
        
        .topbox {
            width: 100%;
            background: rgba(255, 255, 255, 0.9);
            box-shadow: 0px 0.04rem 0.08rem 0px rgba(0, 0, 0, 0.13);
            display: flex;
            padding: 0.25rem 0.32rem;
            box-sizing: border-box;
        }
        
        .logoimg {
            width: 1.28rem;
            height: 1.28rem;
            font-size: 0;
            margin-bottom: 0.14rem;
            margin-right: 0.28rem;
        }
        
        .logoimg img {
            width: 100%;
            height: 100%;
        }
        
        .appintro {
            color: #06121f;
            font-size: 0.28rem;
        }
        
        .topboxright {
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            align-items: flex-end;
        }
        
        .openapp {
            width: 1.78rem;
            height: 0.6rem;
            background: #fd7a3e;
            border-radius: 0.42rem;
            color: #fff;
            font-size: 0.28rem;
            text-align: center;
            line-height: 0.6rem;
        }
        
        .logoname {
            color: #06121f;
            font-size: 0.24rem;
            text-align: center;
            width: 1.28rem;
        }
    </style>
</head>

<body>
    <div class="topbox">
        <div class="topboxleft">
            <div class="logoimg">
                <img src="__CDN__/assets/share/images/app_icon.png" alt="" />
            </div>
            <div class="logoname">精工筑匠</div>
        </div>
        <div class="topboxright">
            <div class="appintro">
                此处为APP简介,文案待客户确定,此处为APP简介,文案待客户确定,
            </div>
            <div class="openapp">打开APP</div>
        </div>
    </div>
    <!-- <div class="questype">
        <img src="images/qiandao.png" alt="" class="selectimg" /> 单选题
    </div> -->
    <div class="quesbox">
        <div class="questitle">
            下面项目目标动态控制措施中,属于管理措施的是( )
        </div>
        <div class="quesitembox">
            <div class="quesitem">
                <div class="qieskey">A</div>
                <div class="queskeytitle">强化合同管理</div>
            </div>
            <div class="quesitem">
                <div class="qieskey">B</div>
                <div class="queskeytitle">调整职能分工</div>
            </div>
            <div class="quesitem">
                <div class="qieskey">C</div>
                <div class="queskeytitle">优化组织结构</div>
            </div>
            <div class="quesitem">
                <div class="qieskey">D</div>
                <div class="queskeytitle">改进施工工艺</div>
            </div>
        </div>
    </div>
</body>
<script src="__CDN__/assets/share/js/jquery.min.js"></script>
<script>
    var question_id = getQueryVariable("question_id");
    var type = getQueryVariable("type");

    function getdetail() {
        var url = "/almighty/questionInfo";
        var params = {
            question_id: 88,
        };
        ajaxsend(url, params, function(res) {
            /*console.log(JSON.stringify(res))*/
            console.log(res);
        });
    }
    getdetail();

    // var xhr = new XMLHttpRequest();
    // xhr.open(
    //     "GET",
    //     "http://enterprise.t.brotop.cn/mobile?question_id=88",
    //     true
    // );
    // xhr.withCredentials = true;
    // xhr.onload = function() {
    //     alert(xhr.response); //reposHTML;
    // };
    // xhr.onerror = function() {
    //     alert("error making the request.");
    // };
    // xhr.send();
</script>

</html>