container.html 1.3 KB

123456789101112131415161718192021222324252627282930313233
  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. <script>
  10. $jssdk = function(){return <?=\service\WechatService::jsSdk()?>;}
  11. window.wechat_share_title="<?=\service\SystemConfigService::get('wechat_share_title')?>";
  12. window.wechat_share_synopsis="<?=\service\SystemConfigService::get('wechat_share_synopsis')?>";
  13. window.wechat_share_img="<?=\service\SystemConfigService::get('wechat_share_img')?>";
  14. mapleWx($jssdk(), function () {
  15. this.onMenuShareAll({
  16. title: wechat_share_title || $('title').text(),
  17. desc: wechat_share_synopsis || $('title').text(),
  18. imgUrl: location.origin +wechat_share_img,
  19. link:location.href,
  20. });
  21. });
  22. </script>
  23. {include file="public/requirejs" /}
  24. {block name="head"}{/block}
  25. <script type="text/javascript" src="{__WAP_PATH}crmeb/js/common.js"></script>
  26. </head>
  27. <body>
  28. {block name="content"}{/block}
  29. {block name="foot"}{/block}
  30. {include file="public/foot" /}
  31. {include file="public/right_nav" /}
  32. </body>
  33. </html>