Przeglądaj źródła

Update index.html

lex 1 rok temu
rodzic
commit
5cc0df91af
1 zmienionych plików z 0 dodań i 39 usunięć
  1. 0 39
      public/roll-call/index.html

+ 0 - 39
public/roll-call/index.html

@@ -368,30 +368,6 @@
         // music.pause();
         this.ckPrice();
       },
-      // 判断是否已经得过奖
-      ckIsIn: function (img) {
-        var res = true;
-        var cps = '';
-        this.price3.map(function (v, i) {
-          if (v.img == img) {
-            res = false;
-          }
-        });
-        this.price2.map(function (v, i) {
-          if (v.img == img) {
-            res = false;
-          }
-        });
-        this.price1.map(function (v, i) {
-          if (v.img == img) {
-            res = false;
-          }
-        });
-        if (this.spic.img == img) {
-          res = false;
-        }
-        return res;
-      },
       // 储存得奖名单
       choosePerson: function () {
         var img = document.getElementById('changeImg').src;
@@ -400,21 +376,6 @@
         var img2 = document.getElementById('changeImg');
         var txt2 = document.getElementById("detailss");
 
-        // var isFalse = this.ckIsIn(img);
-        // if (!isFalse) {
-        //   //重复了···再随机一次
-        //   var nums = Math.floor(Math.random() * tableLens);
-        //   if (nums == tableLens) {
-        //     nums = tableLens - 1;
-        //   }
-        //   var src = table[nums * 2];
-        //   var txts = table[nums * 2 + 1];
-
-        //   img2.src = src;
-        //   txt2.innerHTML = txts;
-        //   this.choosePerson();
-        //   return;
-        // }
         var obj = {
           img: img,
           name: txt