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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <?php /* Smarty version 2.6.17, created on 2018-04-25 14:58:24
  2. compiled from bottom.html */ ?>
  3. <div class="v_block"></div>
  4. <?php if (! $this->_tpl_vars['cutScreenInfo'] && $this->_tpl_vars['display'] == 1): ?>
  5. <!--nav begin-->
  6. <div class="v_nav">
  7. <dl <?php if ($this->_tpl_vars['action'] != 'gift'): ?>class="on"<?php endif; ?>>
  8. <a href="<?php echo $this->_tpl_vars['listUrl']; ?>
  9. ">
  10. <dt>
  11. <p class="d"><img src="<?php echo $this->_tpl_vars['platform']['home_img_url']; ?>
  12. "></p>
  13. <p class="c"><img src="<?php echo $this->_tpl_vars['platform']['home_img_url_hover']; ?>
  14. "></p>
  15. </dt>
  16. <dd><?php echo $this->_tpl_vars['platform']['home_img_text']; ?>
  17. </dd>
  18. </a>
  19. </dl>
  20. <dl <?php if ($this->_tpl_vars['action'] == 'gift'): ?>class="on"<?php endif; ?>>
  21. <a href="<?php echo $this->_tpl_vars['giftsUrl']; ?>
  22. ">
  23. <dt>
  24. <p class="d"><img src="<?php echo $this->_tpl_vars['platform']['gift_img_url']; ?>
  25. "></p>
  26. <p class="c"><img src="<?php echo $this->_tpl_vars['platform']['gift_img_url_hover']; ?>
  27. "></p>
  28. </dt>
  29. <dd><?php echo $this->_tpl_vars['platform']['gift_img_text']; ?>
  30. </dd>
  31. </a>
  32. </dl>
  33. <dl>
  34. <a href="<?php echo $this->_tpl_vars['platform']['follow_url']; ?>
  35. " target="_blank">
  36. <dt>
  37. <p class="d"><img src="<?php echo $this->_tpl_vars['platform']['follow_img_url']; ?>
  38. "></p>
  39. <p class="c"><img src="<?php echo $this->_tpl_vars['platform']['follow_img_url_hover']; ?>
  40. "></p>
  41. </dt>
  42. <dd><?php echo $this->_tpl_vars['platform']['follow_img_text']; ?>
  43. </dd>
  44. </a>
  45. </dl>
  46. <!--<dl>
  47. <a href="#">
  48. <dt>
  49. <p class="d"><img src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
  50. /public/static/img/nav_icon_4.png"></p>
  51. <p class="c"><img src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
  52. /public/static/img/nav_icon_4_on.png"></p>
  53. </dt>
  54. <dd>分享</dd>
  55. </a>
  56. </dl>-->
  57. </div>
  58. <!--nav end-->
  59. <?php endif; ?>
  60. <?php if (! $this->_tpl_vars['notShowWeixinShare'] && ! $this->_tpl_vars['weixinShare']['notAllow']): ?>
  61. <script type="text/javascript">
  62. function share_button(e, title, url, img, content) {
  63. console.log(title);
  64. var u = navigator.userAgent.toLowerCase();
  65. var isApple = /iphone|ipad|ipod|ios/i.test(u);
  66. var isAndroid = /android/i.test(u);
  67. //isApple = true
  68. if (isApple || isAndroid) {
  69. e.parent().show();
  70. e.click(function()
  71. {
  72. WX_share(url, content, title, img);
  73. })
  74. } else {
  75. e.parent().hide();
  76. }
  77. }
  78. /*
  79. function share_ios(title, url, img, content) {
  80. window.location = 'myscheme://share_title/' + title + '/share_url/' + url + '/share_img/' + img + '/share_content/' + content;
  81. }
  82. function share_android(title, url, img, content) {
  83. window.AndroidBridge.openShare(title, url, img, content);
  84. }
  85. */
  86. var URL = window.location.href, site;
  87. site = 1;
  88. <?php if ($this->_tpl_vars['weixinShare']['weixinShare_title']): ?>
  89. new brickjs.MShare({
  90. website : 'sg',
  91. site: site,
  92. catalog: "",
  93. sUrl: "<?php echo $this->_tpl_vars['web_cfg']['url']; ?>
  94. ", //分享地址
  95. title: "<?php echo $this->_tpl_vars['weixinShare']['title']; ?>
  96. ",
  97. imgUrl: "<?php echo $this->_tpl_vars['weixinShare']['imgUrl']; ?>
  98. ",
  99. imgWidth: "640",
  100. imgHeight: "640",
  101. source_id : 1,
  102. source_table : 'onepage',
  103. desc: "<?php echo $this->_tpl_vars['weixinShare']['content']; ?>
  104. ",
  105. appKey: {
  106. tsina: "2412621184"
  107. },
  108. ralateUid: '1658402750',
  109. wxGuide: {
  110. imgUrl: '<?php echo $this->_tpl_vars['weixinShare']['imgUrl']; ?>
  111. ',
  112. width: 100,
  113. height: 100,
  114. style: {
  115. right: 0,
  116. top: 0
  117. }
  118. }
  119. });
  120. if ($('.share_button').length) {
  121. share_button($('.share_button'), '<?php echo $this->_tpl_vars['weixinShare']['title']; ?>
  122. ', '<?php echo $this->_tpl_vars['web_cfg']['url']; ?>
  123. ', '<?php echo $this->_tpl_vars['weixinShare']['imgUrl']; ?>
  124. ', '<?php echo $this->_tpl_vars['weixinShare']['content']; ?>
  125. ');
  126. }
  127. <?php else: ?>
  128. var url = '<?php if ($this->_tpl_vars['weixinShare']['jump_url']): ?><?php echo $this->_tpl_vars['weixinShare']['jump_url']; ?>
  129. <?php else: ?><?php echo $this->_tpl_vars['web_cfg']['url']; ?>
  130. <?php endif; ?>';
  131. var title = '<?php if ($this->_tpl_vars['weixinShare']['title']): ?><?php echo $this->_tpl_vars['weixinShare']['title']; ?>
  132. <?php else: ?><?php echo $this->_tpl_vars['platform']['weixinShare_title']; ?>
  133. <?php endif; ?>';
  134. var img = '<?php if ($this->_tpl_vars['weixinShare']['imgUrl']): ?><?php echo $this->_tpl_vars['weixinShare']['imgUrl']; ?>
  135. <?php else: ?><?php echo $this->_tpl_vars['platform']['weixinShare_img_url']; ?>
  136. <?php endif; ?>';
  137. var content = '<?php if ($this->_tpl_vars['weixinShare']['content']): ?><?php echo $this->_tpl_vars['weixinShare']['content']; ?>
  138. <?php else: ?><?php echo $this->_tpl_vars['platform']['weixinShare_content']; ?>
  139. <?php endif; ?>';
  140. if ($('.share_button').length) {
  141. share_button($('.share_button'), title, url, img, content);
  142. }
  143. new brickjs.MShare({
  144. website : 'sg',
  145. site: site,
  146. catalog: "",
  147. sUrl: url, //分享地址
  148. title: title,
  149. imgUrl: img,
  150. imgWidth: "640",
  151. imgHeight: "640",
  152. source_id : 1,
  153. source_table : 'onepage',
  154. desc: content,
  155. appKey: {
  156. tsina: "2412621184"
  157. },
  158. ralateUid: '1658402750',
  159. wxGuide: {
  160. imgUrl: img,
  161. width: 100,
  162. height: 100,
  163. style: {
  164. right: 0,
  165. top: 0
  166. }
  167. }
  168. });
  169. <?php endif; ?>
  170. </script>
  171. <?php else: ?>
  172. <script>
  173. //关闭分享按钮
  174. wx.hideOptionMenu();
  175. </script>
  176. <?php endif; ?>
  177. </body>
  178. </html>