Browse Source

add download

stanley-king 7 years ago
parent
commit
d11b426158
2 changed files with 14 additions and 11 deletions
  1. 13 0
      mobile/control/invite_friend.php
  2. 1 11
      mobile/templates/default/invite_friend/invite.php

+ 13 - 0
mobile/control/invite_friend.php

@@ -149,6 +149,19 @@ class tpl_invite_friend
         }
         echo "</div>";
     }
+
+    public function show_open()
+    {
+        if(!session_helper::isapp())
+        {
+            echo "<div class=\"fixed_bottom\">
+                    <span class=\"logo\"></span>
+                    <a href=\"#\" class=\"download_app_btn\" id=\"download_app\">打开APP</a>
+                    <a href=\"#\" class=\"h5_shop_btn\" id=\"h5_mshop\">进入商城</a>
+                  </div>";
+        }
+    }
+
     public function bonus_url() {
         $url = BASE_SITE_URL . "/mobile/index.php?act=bonusex&op=grab&client_type=wap&type_sn={$this->mTypesn}";
         return $url;

+ 1 - 11
mobile/templates/default/invite_friend/invite.php

@@ -53,17 +53,7 @@
             <span class="close_btn" id="close_btn">确定</span>
         </div>
     </div>
-
-
-<!--    下载和logo 开始-->
-    <div class="fixed_bottom">
-        <span class="logo"></span>
-        <a href="#" class="download_app_btn" id="download_app">打开APP</a>
-        <a href="#" class="h5_shop_btn" id="h5_mshop">进入商城</a>
-    </div>
-<!--    下载和logo 结束    -->
-
-
+    <?php $output['tpl']->show_open(); ?>
 </div>
 <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/mobile/bonus/js/zepto.min.js?<?php echo bonus_version(); ?>"></script>
 <script type="text/javascript">