mzx16822 6 years ago
parent
commit
5fda9a8dac
1 changed files with 7 additions and 4 deletions
  1. 7 4
      public/h5/datigame/js/common.js

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

@@ -131,7 +131,7 @@ common={
         $("#question").html(question);
         $("#Jpage").html(responsedata.info.questions_count+"/5")
        // is_end = responsedata.info.question.is_end;
-         daoshu();
+         this.daoshu();
       
   },listen:function(){
  		var _this=this;
@@ -154,11 +154,14 @@ common={
  		
  	},daoshu:function(argument) {
 	    clearInterval(ts);
-	     sum = 9;
-	     angle = 0;
+	    this.data.sum = 9;
+	     this.data.angle = 0;
+	   	var leftContent  = document.querySelector(".left-content");
+		var rightContent  = document.querySelector(".right-content");
+		var textCircle   = document.querySelector(".text-circle");
 	    leftContent.setAttribute('style', 'transform: rotate(0deg)');
 	    rightContent.setAttribute('style', 'transform: rotate(0deg)');
-	    ts = setInterval(function() {
+	    this.data.ts = setInterval(function() {
 	        if (sum >= 0) textCircle.innerHTML = sum;
 	        sum = sum - 1;
 	        $("#Jvs .con").show();