%%48^48D^48DE5A4F%%bottom.html.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. <?php /* Smarty version 2.6.17, created on 2018-05-29 14:27:24
  2. compiled from bottom.html */ ?>
  3. <section class="toast" style="display:none;">错误信息</section>
  4. <?php if (! $this->_tpl_vars['cutScreenInfo'] && $this->_tpl_vars['display'] == 1): ?>
  5. <footer>
  6. <ul>
  7. <li <?php if ($this->_tpl_vars['action'] != 'gift'): ?>class="active"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['listUrl']; ?>
  8. "><i class="icon"><img src="<?php echo $this->_tpl_vars['platform']['home_img_url']; ?>
  9. "></i><span><?php echo $this->_tpl_vars['platform']['home_img_text']; ?>
  10. </span></a></li>
  11. <li <?php if ($this->_tpl_vars['action'] == 'gift'): ?>class="active"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['giftsUrl']; ?>
  12. "><i class="icon"><img src="<?php echo $this->_tpl_vars['platform']['gift_img_url']; ?>
  13. "></i><span><?php echo $this->_tpl_vars['platform']['gift_img_text']; ?>
  14. </span></a></li>
  15. <?php if ($this->_tpl_vars['platform']['zs_img_link']): ?>
  16. <li><a href="<?php echo $this->_tpl_vars['platform']['zs_img_link']; ?>
  17. "><i class="icon"><img src="<?php echo $this->_tpl_vars['platform']['zs_img_url']; ?>
  18. "></i><span><?php echo $this->_tpl_vars['platform']['zs_img_text']; ?>
  19. </span></a></li>
  20. <?php endif; ?>
  21. <li class="bottom_follow"><a href="<?php echo $this->_tpl_vars['platform']['follow_url']; ?>
  22. " target="_blank"><i class="icon"><img src="<?php echo $this->_tpl_vars['platform']['follow_img_url']; ?>
  23. "></i><span><?php echo $this->_tpl_vars['platform']['follow_img_text']; ?>
  24. </span></a></li>
  25. <li style="display:none"><a class="bottom_share" href="<?php echo $this->_tpl_vars['platform']['share_url']; ?>
  26. " ><i class="icon"><img src="<?php echo $this->_tpl_vars['platform']['share_img_url']; ?>
  27. "></i><span><?php echo $this->_tpl_vars['platform']['share_img_text']; ?>
  28. </span></a></li>
  29. </ul>
  30. </footer>
  31. <?php endif; ?>
  32. <script type="text/javascript">
  33. function loadLogin()
  34. {
  35. <?php if ($this->_tpl_vars['applogin'] && $this->_tpl_vars['applogin'] == 1): ?>
  36. istoken('<?php echo $this->_tpl_vars['info']['thisUrl']; ?>
  37. ');
  38. <?php else: ?>
  39. $('#loginbox').show();
  40. <?php endif; ?>
  41. /*
  42. app = checkApp();
  43. if (app) {
  44. istoken('<?php echo $this->_tpl_vars['info']['thisUrl']; ?>
  45. ');
  46. } else {
  47. $('#loginbox').show();
  48. }
  49. */
  50. }
  51. function toast(content, url)
  52. {
  53. var e = $(".toast");
  54. e.html(content).show();
  55. var func = function(url)
  56. {
  57. e.hide();
  58. if (url == 1) {
  59. return;
  60. } else if (url) {
  61. location.href = url;
  62. } else {
  63. location.reload();
  64. }
  65. };
  66. setTimeout(function(){func(url)}, 1000);
  67. }
  68. function checkApp() {
  69. var u = navigator.userAgent.toLowerCase();
  70. var isApple = /iphone|ipad|ipod|ios|android/i.test(u);
  71. var isAndroid = /android/i.test(u);
  72. var isWeixin = /micromessenger/i.test(u);
  73. if (!isWeixin) {
  74. return true;
  75. } else {
  76. return false;
  77. }
  78. }
  79. function share_button(e, title, url, img, content) {
  80. console.log(title);
  81. if (checkApp()) {
  82. //e.parent().show();
  83. e.show();
  84. e.click(function()
  85. {
  86. WX_share(url, content, title, img);
  87. })
  88. } else {
  89. //e.parent().hide();
  90. e.hide();
  91. }
  92. }
  93. function buy_button()
  94. {
  95. if ($('.buy_button').length) {
  96. var buy = $('.buy_button');
  97. if (checkApp()) {
  98. buy.attr('href', 'javascript:;');
  99. var app = buy.attr('data-app');
  100. buy.click(function() {
  101. //app内链接
  102. })
  103. } else {
  104. buy.attr('href', buy.attr('data-weixin'));
  105. }
  106. }
  107. }
  108. function yaoqing()
  109. {
  110. if ($(".yaoqing").length) {
  111. var app = checkApp();
  112. if (app) {
  113. $(".yaoqing").addClass('share_button');
  114. } else {
  115. $(".yaoqing").removeClass('share_button');
  116. $(".yaoqing").click(function()
  117. {
  118. toast('点击右上角,分享邀请好友为你加油!', 1);
  119. });
  120. }
  121. }
  122. }
  123. </script>
  124. <?php if (! $this->_tpl_vars['notShowWeixinShare'] && ! $this->_tpl_vars['weixinShare']['notAllow']): ?>
  125. <script type="text/javascript">
  126. var URL = window.location.href, site;
  127. site = 1;
  128. console.log(share_url);
  129. new brickjs.MShare({
  130. website : 'sg',
  131. site: site,
  132. catalog: "",
  133. sUrl: share_url, //分享地址
  134. title: share_title,
  135. imgUrl: share_img,
  136. imgWidth: "640",
  137. imgHeight: "640",
  138. source_id : 1,
  139. source_table : 'onepage',
  140. desc: share_content,
  141. appKey: {
  142. tsina: "2412621184"
  143. },
  144. ralateUid: '1658402750',
  145. wxGuide: {
  146. imgUrl: share_img,
  147. width: 100,
  148. height: 100,
  149. style: {
  150. right: 0,
  151. top: 0
  152. }
  153. }
  154. });
  155. function init()
  156. {
  157. yaoqing();
  158. buy_button();
  159. if ($('.share_button').length) {
  160. share_button($('.share_button'), share_title, share_url, share_img, share_content);
  161. }
  162. if (checkApp()) {
  163. if ($('.bottom_share').length) {
  164. $('.bottom_follow').hide();
  165. share_button($('.bottom_share'), share_title, share_url, share_img, share_content);
  166. }
  167. }
  168. }
  169. $(function()
  170. {
  171. init();
  172. })
  173. </script>
  174. <?php else: ?>
  175. <script>
  176. //关闭分享按钮
  177. wx.hideOptionMenu();
  178. </script>
  179. <?php endif; ?>
  180. </body>
  181. </html>