فهرست منبع

增加百度事件统计

Michael Wang 6 سال پیش
والد
کامیت
8d80397faa

+ 1 - 0
src/features/OnlineExam/Examing/BooleanQuestionView.vue

@@ -94,6 +94,7 @@ export default {
         (["INPUT"].includes(document.activeElement.tagName) &&
           ["checkbox", "radio"].includes(document.activeElement.type))
       ) {
+        window._hmt.push(["_trackEvent", "正在考试页面", "快捷键", "YN"]);
         if ("KeyY" === e.code) {
           this.answerQuestion("true");
         }

+ 1 - 0
src/features/OnlineExam/Examing/MultipleQuestionView.vue

@@ -107,6 +107,7 @@ export default {
             .slice(0, this.question.questionOptionList.length)
             .includes(e.code)
         ) {
+          window._hmt.push(["_trackEvent", "正在考试页面", "快捷键", "ABCDE"]);
           const selectedOldIndex =
             "" +
             this.newQuestionOptions.find(v => v.name == e.code[3]).oldIndex;

+ 1 - 0
src/features/OnlineExam/Examing/SingleQuestionView.vue

@@ -109,6 +109,7 @@ export default {
             .slice(0, this.question.questionOptionList.length)
             .includes(e.code)
         ) {
+          window._hmt.push(["_trackEvent", "正在考试页面", "快捷键", "ABCDE"]);
           this.studentAnswer = this.newQuestionOptions.find(
             v => v.name == e.code[3]
           ).oldIndex;

+ 1 - 0
src/store.js

@@ -52,6 +52,7 @@ const examingHomeModule = {
       state = Object.assign(state, { examResult: payload });
     },
     updateQuestionFilter(state, type) {
+      window._hmt.push(["_trackEvent", "正在考试页面", "筛选问题"]);
       state.questionFilterType = type;
     },
     updateQuestionAudioPlayTimes(state, payload) {