浏览代码

默认答案

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

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

@@ -8,7 +8,6 @@ common={
  		Answer:"Home/Game/Answer",
  		Join:"Home/Game/Join",
  		uid:"",
- 		anwser_time:10,
  		option_id:0
  	},userInfo:{
 
@@ -264,7 +263,7 @@ common={
  	},daoshu:function(argument) {
  			var _this=this;
 	    clearInterval(this.data.ts);
-	    this.data.sum = 9;
+	    this.data.sum = 10;
 	     this.data.angle = 0;
 	   	var leftContent  = document.querySelector(".left-content");
 		var rightContent  = document.querySelector(".right-content");
@@ -298,10 +297,10 @@ common={
 	        
 	        
 	        
-	        if (_this.data.sum < -1) {
+	        if (_this.data.sum < 0) {
 	        	if(!_this.data.isAnswer)
 	           	_this.Answer();
-	            _this.data.sum = 9;
+	            _this.data.sum = 10;
 	            _this.data.angle = 0;
 	            leftContent.setAttribute('style', 'transform: rotate(0deg)');
 	            rightContent.setAttribute('style', 'transform: rotate(0deg)');