wechat_header.htm 1.8 KB

123456789101112131415161718192021222324252627
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <meta http-equiv="Cache-control" content="{if $_G['setting']['mobile'][mobilecachetime] > 0}{$_G['setting']['mobile'][mobilecachetime]}{else}no-cache{/if}" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  7. <meta name="format-detection" content="telephone=no" />
  8. <link rel="stylesheet" href="source/plugin/wechat/template/mobile/style.css" type="text/css" media="all">
  9. <script src="source/plugin/wechat/template/mobile/jquery.min.js?{VERHASH}"></script>
  10. <script type="text/javascript">var STYLEID = '{STYLEID}', STATICURL = '{STATICURL}', IMGDIR = '{IMGDIR}', VERHASH = '{VERHASH}', charset = '{CHARSET}', discuz_uid = '$_G[uid]', cookiepre = '{$_G[config][cookie][cookiepre]}', cookiedomain = '{$_G[config][cookie][cookiedomain]}', cookiepath = '{$_G[config][cookie][cookiepath]}', showusercard = '{$_G[setting][showusercard]}', attackevasive = '{$_G[config][security][attackevasive]}', disallowfloat = '{$_G[setting][disallowfloat]}', creditnotice = '<!--{if $_G['setting']['creditnotice']}-->$_G['setting']['creditnames']<!--{/if}-->', defaultstyle = '$_G[style][defaultextstyle]', REPORTURL = '$_G[currenturl_encode]', SITEURL = '$_G[siteurl]', JSPATH = '$_G[setting][jspath]';</script>
  11. <script src="source/plugin/wechat/template/mobile/common.js?{VERHASH}" charset="{CHARSET}"></script>
  12. </head>
  13. <body class="bg">
  14. <script type="text/javascript">
  15. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  16. WeixinJSBridge.call('hideOptionMenu');
  17. });
  18. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  19. WeixinJSBridge.call('hideToolbar');
  20. });
  21. </script>
  22. <br />
  23. <br />