<!doctype html>
<html lang="zh-CN">

<head>
  <meta name="renderer" content="webkit" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta charset="UTF-8">
  <title>新建页面</title>
  <link rel="shortcut icon" href="//www.qianmi.com/r/cms/qmwww/default/img/favicon.ico" type="image/x-icon">
  <link rel="stylesheet" href='<%= bundleMap.newPage.cssFile%>' />
  <link rel="stylesheet" href="//wanmi-x-site.oss-cn-shanghai.aliyuncs.com/x-site/<%= envCode%>/public/css/index.css?t=<%= HashCodes['index.css'] %>"
  />
  <% include common-css.ejs %>
</head>

<body>
  <div id="body"></div>
  <div class="prototype_overlay" style="display: none; opacity: 0.5;"></div>
  <div class="prototype_msg" style="display: none; opacity: 1; margin-top: 300px;">
    <div class="loadingWord">
      <img src="//wanmi-x-site.oss-cn-shanghai.aliyuncs.com/x-site/public/images/images/loadingOver1.png" />
      <p style="height:30px;">您正要离开当前编辑页面</p>
      <p>确定放弃编辑而离开吗？</p>
      <div style="line-height:1;overflow:hidden;">
        <a style="margin-right:20px;" class="prototype_btn prototype_btn_left" href="javascript:void(0);">立即离开</a>
        <a class="prototype_btn prototype_btn_right" href="javascript:void(0);">继续编辑</a>
      </div>
    </div>
  </div>
  <script type="text/javascript">
    var config = {
      userId: '<%=initConfig.userId %>',
      envCode: '<%=envCode %>',
      systemCode: '<%=systemCode %>',
      systemCodeZip: '<%=systemCodeZip %>',
      systemConfig:<%- systemConfig %>,
      commonUrls:<%-JSON.stringify(commonUrls) %>,
      pageCode: '<%= initConfig.pageCode || ""%>',
      pageType: "<%= initConfig.pageType || 'index' %>",
      img_path: "<%= serviceConfig.image_server %>",
      admin_main: "<%= serviceConfig.admin_main %>",
      platform: "<%= initConfig.platForm %>",/*weixin或者pc*/
      host: '<%= initConfig.host%>'
    };
    <% if(jwtToken) {%>
        var jwtToken = '<%= jwtToken%>';
    <% }  %>
  </script>
  <% include common-js.ejs %>
    <script type="text/javascript" src="//wanmi-x-site.oss-cn-shanghai.aliyuncs.com/x-site/public/javascripts/zp/ZeroClipboard.js"></script>
    <script type="text/javascript" src='<%= bundleMap.newPage.jsFile%>'></script>
    <script type="text/javascript">
        $(function () {
          $('.prototype_btn_left').click(function () {
            var data_name = $('.prototype_msg').attr('data-name');
            if (data_name == 'back') {
              location.href = window.config.commonUrls.returnAdminConsole ?
                window.config.commonUrls.returnAdminConsole : '#';
            }
          });

          $('.prototype_btn_right').click(function () {
            $('.prototype_msg').hide();
            $('.prototype_overlay').hide();
          });
        });
    </script>
    <% include common-analysis.ejs %>
</body>

</html>
