Commit a858ae37 by doszhang

dos

parent 70e4a018
......@@ -20,12 +20,12 @@ class IndexController extends Controller
public function index()
{
$user = $this->get_user_info_from_cookie();
// 如果没有获取到用户信息,引导用户授权
if (!$user) {
$this->request_auth($this->get_url());
return;
}
// $user = $this->get_user_info_from_cookie();
// // 如果没有获取到用户信息,引导用户授权
// if (!$user) {
// $this->request_auth($this->get_url());
// return;
// }
session_start();
$_SESSION['joinTime'] = time();
......
......@@ -61,9 +61,25 @@ $(document).ready(function () {
$("input").on("blur", function () {
window.scroll(0, 0); //失焦后强制让页面归位
});
//显示答题页面
$('.home-page .btn-next').on('click', showQuestion);
});
function showQuestion() {
initQuestion();
$('.home-page').hide();
$('.question-page').show();
}
function initQuestion() {
$('.answer-active').hide();
$('.question-block').hide();
$('.question1-block').show();
$('.btn-submit').hide();
$('.btn-nextquestion').show();
}
function initCanvas(target, id, canvasWidth, canvasHeight, useRem = false) {
if (useRem) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment