소스 검색

修改红包下载地址

stanley-king 8 년 전
부모
커밋
45a52e28e2
2개의 변경된 파일20개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      mobile/control/bonusex.php
  2. 19 0
      mobile/templates/default/bonus/content.php

+ 1 - 1
mobile/control/bonusex.php

@@ -410,7 +410,7 @@ function bonus_output_mine($output)
         echo('<input type="hidden" id="mine_bonus" value=' ."{$bonus->bonus_sn()}>");
 
         if($bonus->isBinded()) {
-            echo('<div class="link" id="link">');
+            echo('<div class="link" id="links">');
             echo('<p style="margin: 20px 0"><a href="javascript:void(0)">请下载熊猫美妆APP,享用红包</a></p>');
             echo('</div>');
         }

+ 19 - 0
mobile/templates/default/bonus/content.php

@@ -29,5 +29,24 @@
         ?>
     </div>
 </div>
+<script type="text/javascript">
+    $(function(){
+        function navigator(){
+            var ua = navigator.userAgent.toLowerCase(),
+                downInstall=$('#links a');
+            if (/iphone|ipad|ipod/.test(ua)) {
+                downInstall.attr('href','http://a.app.qq.com/o/simple.jsp?pkgname=com.lrlz.beautyshop');
+            } else if (/android/.test(ua)) {
+                downInstall.attr('href','http://p.lrlz.com/data/upload/package/xmmz_release.apk');
+            }
+            else {
+                downInstall.attr('href','#');
+            }
+        }
+        navigator();
+    });
+
+
+</script>
 </body>
 </html>