浏览代码

解决事件穿透

linwu 1 年之前
父节点
当前提交
9494baf62f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      public/themes/default/views/mobile/app/active/deformity.blade.php

+ 2 - 2
public/themes/default/views/mobile/app/active/deformity.blade.php

@@ -147,7 +147,7 @@
         <img src="{{theme_asset('mobile/images/deformity/qrcode.png')}}?v=1" alt="">
         <img src="{{theme_asset('mobile/images/deformity/qrcode.png')}}?v=1" alt="">
     </div>
     </div>
 
 
-    <a href="javascript:void(0);" class="to_lottery" onclick="share()">就业</a>
+    <a href="javascript:void(0);" class="to_lottery" onclick="share()"></a>
 
 
     <script type="text/javascript" src="{{theme_asset('mobile/js/QSfilter.js')}}"></script>
     <script type="text/javascript" src="{{theme_asset('mobile/js/QSfilter.js')}}"></script>
     <script type="text/javascript" src="{{theme_asset('mobile/js/qsCategory.js')}}"></script>
     <script type="text/javascript" src="{{theme_asset('mobile/js/qsCategory.js')}}"></script>
@@ -221,7 +221,7 @@
             $(".alw-layer").show();
             $(".alw-layer").show();
         }
         }
         //分享按钮
         //分享按钮
-        $(".alw-layer").on("click", function() {
+        $(".alw-layer").on("touch", function() {
             $(this).hide();
             $(this).hide();
         });
         });