|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/>
|
|
|
|
<meta http-equiv="Pragma" content="no-cache"/>
|
|
|
|
<meta http-equiv="Expires" content="0"/>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
|
<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, width=device-width">
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
<meta content="black" name="apple-mobile-web-app-status-bar-style">
|
|
|
|
<meta name="format-detection" content="telephone=no">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
|
<title>北京燕园</title>
|
|
|
|
<script src="../js/flexible.js"></script>
|
|
|
|
<script src="../js/jquery.js"></script>
|
|
|
|
<script src="../js/swiper.min.js"></script>
|
|
|
|
<link rel="stylesheet" href="../css/swiper.min.css">
|
|
|
|
<link rel="stylesheet" type="text/css" href="../css/style.css"/>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="iphone4 swiper-container" id="indexSwiper">
|
|
|
|
<div class="swiper-wrapper">
|
|
|
|
<div class="swiper-slide">
|
|
|
|
<section class="sectionBox">
|
|
|
|
<div class="wrapper" id="wrapperIndex">
|
|
|
|
<div class="scroller">
|
|
|
|
<!-- 头部 -->
|
|
|
|
|
|
|
|
<div class="header mt">
|
|
|
|
<div class="return"><img src="../images/return.png" width="100%"></div>
|
|
|
|
<div class="title">脑力测评</div>
|
|
|
|
</div>
|
|
|
|
<div class="question">
|
|
|
|
<div class="basicinfo">
|
|
|
|
<h2>30.请记住以下数字:</h2>
|
|
|
|
</div>
|
|
|
|
<div class="basicinfo">
|
|
|
|
<p style="font-size: 60px;font-weight: bold;letter-spacing: 60px">3846</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="resulttip" style="display: none;"><!--style="display: none;"-->
|
|
|
|
<div class="basicinfo">
|
|
|
|
<h2>请问,刚才出现的数字从大到小排列是:</h2>
|
|
|
|
<ul>
|
|
|
|
<li>3 4 6 8</li>
|
|
|
|
<li>3 4 8 9</li>
|
|
|
|
<li class="right">8 6 4 3</li>
|
|
|
|
<li>8 6 4 1</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<button class="nextstep answer">答题</button>
|
|
|
|
<button class="nextstep nextquestion" style="display: none;">查看测评结果</button>
|
|
|
|
|
|
|
|
<form name="firstBasicForm" onsubmit="return false;">
|
|
|
|
<input type="hidden" name="chooseIds">
|
|
|
|
<input type="hidden" name="type">
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script src="../js/swiper.animate.min.js"></script>
|
|
|
|
<script src="../js/iscroll.js"></script>
|
|
|
|
<script src="../js/main.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 配置滚动条 -->
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function () {
|
|
|
|
// setTimeout(function(){ // loadedScroll("#wrapperIndex",false,true); // },500);
|
|
|
|
if (sessionStorage.choose.indexOf("30") != -1) {
|
|
|
|
sessionStorage.choose = sessionStorage.choose.replace("30,", "");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
$(".nextquestion").click(function () {
|
|
|
|
if ($(".basicinfo .active").length == 0) {
|
|
|
|
alert("请选择");
|
|
|
|
return;
|
|
|
|
} else {
|
|
|
|
if (typeof (Storage) !== "undefined") {
|
|
|
|
|
|
|
|
$("input[name='type']").val(sessionStorage.type);
|
|
|
|
|
|
|
|
if ($(".active").hasClass("right")) {
|
|
|
|
if (sessionStorage.choose.indexOf("30") == -1) {
|
|
|
|
sessionStorage.choose = "30" + "," + sessionStorage.choose;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
if (sessionStorage.choose.indexOf("30") != -1) {
|
|
|
|
sessionStorage.choose = sessionStorage.choose.replace("30,", "");
|
|
|
|
}
|
|
|
|
sessionStorage.choose = sessionStorage.choose;
|
|
|
|
}
|
|
|
|
$("input[name='chooseIds']").val(sessionStorage.choose);
|
|
|
|
|
|
|
|
console.log($("input[name='chooseIds']").val());
|
|
|
|
var href = window.location.href;
|
|
|
|
var contextPath = href.substring(0, href.indexOf("static"));
|
|
|
|
$.ajax({
|
|
|
|
url: contextPath + "/wx/mental/submitMental",
|
|
|
|
type: 'post',
|
|
|
|
data: $("form[name='firstBasicForm']").serialize(),
|
|
|
|
success: function (result) {
|
|
|
|
if (result.code == 0) {
|
|
|
|
window.location.href = contextPath + "/wx/mental/mentalResult";
|
|
|
|
} else if (result.code == 1) {
|
|
|
|
window.location.href = contextPath + "/wx/core/index";
|
|
|
|
} else {
|
|
|
|
alert(result.message);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
error: function () {
|
|
|
|
alert("系统异常");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
document.getElementById("result").innerHTML = "抱歉!您的浏览器不支持 Web Storage ...";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|