|
@@ -141,7 +141,15 @@ common={
|
|
|
$(".g-doc .g-inner").addClass("doing");
|
|
|
// is_end = responsedata.info.question.is_end;
|
|
|
this.daoshu();
|
|
|
-
|
|
|
+ $("#question .item").on("touchend",function(){
|
|
|
+ var l = $("#question .item.cur_answer").length;
|
|
|
+ if(l>0)return;
|
|
|
+ this.addClass("cur_answer");
|
|
|
+ _this.data.option_id=this.attr("data-option_id");
|
|
|
+ _this.Answer(function(){
|
|
|
+ _this.data.isAnswer=true;
|
|
|
+ });
|
|
|
+ })
|
|
|
},listen:function(){
|
|
|
var _this=this;
|
|
|
$(".rulebtn").on("touchend",function(){
|
|
@@ -153,15 +161,7 @@ common={
|
|
|
$("#start_game").on("touchend",function(){
|
|
|
_this.startGame();
|
|
|
})
|
|
|
- $("#question .item").on("touchend",function(){
|
|
|
- var l = $("#question .item.cur_answer").length;
|
|
|
- if(l>0)return;
|
|
|
- this.addClass("cur_answer");
|
|
|
- _this.data.option_id=this.attr("data-option_id");
|
|
|
- _this.Answer(function(){
|
|
|
- _this.data.isAnswer=true;
|
|
|
- });
|
|
|
- })
|
|
|
+
|
|
|
|
|
|
},daoshu:function(argument) {
|
|
|
var _this=this;
|