Commit b210cbcd by doszhang

dos

parent 3ce8b99e
......@@ -259,6 +259,11 @@ function showRule() {
function retry() {
if (posterStatus) {
try {
MtaH5.clickStat("28");
} catch (error) {
console.log(error);
}
initQuestion();
$('.poster-page').hide();
$('.question-page').show();
......@@ -309,6 +314,12 @@ function submit() {
function tryprize() {
if (posterStatus) {
try {
MtaH5.clickStat("27");
} catch (error) {
console.log(error);
}
$('.prize-page').show();
}
}
......@@ -442,6 +453,11 @@ function drawRoundRectImg(ctx, r, x, y, w, h, img) {
function submitAnswer() {
if (nowAnswer !== '') {
try {
MtaH5.clickStat("18");
} catch (error) {
console.log(error);
}
if (answerArr[0] == 0) {
resultType = 4;
} else if (answerArr[1] == 0) {
......@@ -462,6 +478,17 @@ function submitAnswer() {
resultType = 5;
}
//进行答题统计
try {
MtaH5.clickStat(answerArr[0] + 1);
MtaH5.clickStat(answerArr[1] + 5);
MtaH5.clickStat(answerArr[2] + 8);
MtaH5.clickStat(answerArr[3] + 11);
MtaH5.clickStat(answerArr[4] + 14);
} catch (error) {
console.log(error);
}
$('.question' + nowQuestionIndex + '-block').addClass('fadeoutleft');
setTimeout(function () {
$('.dialog').show();
......
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