mzx16822 6 年之前
父节点
当前提交
4f5f86b5c8
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      public/h5/datigame/js/common.js

+ 6 - 4
public/h5/datigame/js/common.js

@@ -219,12 +219,10 @@ common={
     var _this=this;
         _this.data.isAnswer=false;
         _this.data.question_id= responsedata.info.question.question_id;
-        var animate=["zoomInDown","bounceIn","flash"];
-        var r = _this.randomNum(0,2);
+       
         
         $("#Jqtitle").html(responsedata.info.question.title );
-        $("#Jqtitle").addClass(animate[r]);
-        $("#Jqtitle").addClass("animated");
+        
         
         var question="";
         var answers = responsedata.info.options
@@ -237,6 +235,10 @@ common={
            $(".g-doc .g-inner").addClass("doing");
        // is_end = responsedata.info.question.is_end;
          this.daoshu();
+          var animate=["zoomInDown","bounceIn","flash"];
+        var r = _this.randomNum(0,2);
+         $("#Jqtitle").addClass(animate[r]);
+        $("#Jqtitle").addClass("animated");
       	$("#question .item").on("touchend",function(){
  			var l = $("#question .item.cur_answer").length;
  			if(l>0)return;