Commit c7318756 by doszhang

dos

parent d78a521c
...@@ -67,7 +67,7 @@ let watchedQuestion = [1]; ...@@ -67,7 +67,7 @@ let watchedQuestion = [1];
//结果 //结果
let resultType = 8; let resultType = 8;
//提交信息按钮防抖 //提交信息按钮防抖
let submit = true; let submitStatus = true;
//记录初始状态下fontsize //记录初始状态下fontsize
const fontSize = parseFloat($('html').css('fontSize')); const fontSize = parseFloat($('html').css('fontSize'));
...@@ -148,8 +148,8 @@ $(document).ready(function () { ...@@ -148,8 +148,8 @@ $(document).ready(function () {
}); });
function submit() { function submit() {
if (submit) { if (submitStatus) {
submit = false; submitStatus = false;
const name = $('input[name=name]').val(); const name = $('input[name=name]').val();
const tel = $('input[name=tel]').val(); const tel = $('input[name=tel]').val();
...@@ -178,7 +178,7 @@ function submit() { ...@@ -178,7 +178,7 @@ function submit() {
$('.poster-page').show(); $('.poster-page').show();
$('input[name=name]').val(''); $('input[name=name]').val('');
$('input[name=tel]').val(''); $('input[name=tel]').val('');
submit = true; submitStatus = true;
}, 1500); }, 1500);
} }
......
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