container.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. {include file="public/head" /}
  5. <title>{block name="title"}{/block}</title>
  6. {include file="public/style" /}
  7. {block name="head_top"}{/block}
  8. <script type="text/javascript" src="{__PLUG_PATH}wxApi.js"></script>
  9. <?php
  10. $wechat_share_img = app\core\util\SystemConfigService::get('wechat_share_img');
  11. $wechat_share_img = str_replace('\\','/',$wechat_share_img);
  12. ?>
  13. <script>
  14. $jssdk = function(){return <?=\app\core\util\WechatService::jsSdk()?>;}
  15. window.wechat_share_title="<?=\app\core\util\SystemConfigService::get('wechat_share_title')?>";
  16. window.wechat_share_synopsis="<?=\app\core\util\SystemConfigService::get('wechat_share_synopsis')?>";
  17. window.wechat_share_img="<?=$wechat_share_img?>";
  18. mapleWx($jssdk(), function () {
  19. this.onMenuShareAll({
  20. title: wechat_share_title || $('title').text(),
  21. desc: wechat_share_synopsis || $('title').text(),
  22. imgUrl: wechat_share_img.indexOf(location.origin) === -1 ? location.origin + wechat_share_img : wechat_share_img,
  23. link:location.href,
  24. });
  25. });
  26. </script>
  27. {include file="public/requirejs" /}
  28. {block name="head"}{/block}
  29. <script type="text/javascript" src="{__WAP_PATH}crmeb/js/common.js"></script>
  30. </head>
  31. <body>
  32. {block name="content"}{/block}
  33. {block name="foot"}{/block}
  34. {include file="public/foot" /}
  35. {include file="public/right_nav" /}
  36. </body>
  37. </html>