351035557@qq.com 5 yıl önce
ebeveyn
işleme
5927eb130f

+ 2 - 2
minigame/WebContent/index.html

@@ -116,8 +116,8 @@
         <div class="shake-dialog">
             <!-- <img src="./img/shake_fire.png"> -->
             <div class="fire anim-fire js-an" id="fire"></div>
-            <img src="./img/shake_icon.png" class="icon">
-            <img src="./img/shake_txt.png" class="txt">
+            <!-- <img src="./img/shake_icon.png" class="icon"> -->
+            <!-- <img src="./img/shake_txt.png" class="txt"> -->
         </div>
     </div>
     <script src="./js/jquery.min.js"></script>

+ 6 - 3
minigame/WebContent/js/main.js

@@ -485,6 +485,8 @@ function handleComplete(evt, comp) {
                     menuIconInAnim(exportRoot.pot.qcdf);
                 }else if(dishIndex == 3){
                     menuIconInAnim(exportRoot.pot.ymc);
+                }else{
+                    exportRoot.btn2.alpha = 1;
                 }
             });
         })
@@ -607,6 +609,7 @@ function handleComplete(evt, comp) {
                 var speed = Math.abs(x + y + z - last_x - last_y - last_z) / diffTime * 10000;
                 if (speed > SHAKE_THRESHOLD) {
                     $(".shake-mode2").hide();
+                    $(".shake-mode").show();
                     shake_cnt++;
                     if(shake_cnt>2){
                         setTimeout(function(){
@@ -636,7 +639,7 @@ function handleComplete(evt, comp) {
                                 exportRoot.pot.ymc.gotoAndStop(1);
                             }
                             $(".shake-mode").fadeOut();
-                            exportRoot.btn3.removeAllEventListeners();
+                            // exportRoot.btn3.removeAllEventListeners();
                             $(".poster-mode").fadeIn();
                         },3000)
 
@@ -652,8 +655,8 @@ function handleComplete(evt, comp) {
 
                 // 开始火的动画
                 $("#fire").removeClass("js-an");
-                $(".shake-dialog .icon").hide();
-                $(".shake-dialog .txt").hide();
+                // $(".shake-dialog .icon").hide();
+                // $(".shake-dialog .txt").hide();
             }
         }