<!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">
  <meta name="viewport" content="width=device-width">
  <title>页面预览-<%= initConfig.storeName %></title>
  <% include common-favicon.ejs %>
  <style>
    *,
    :after,
    :before {
      box-sizing: inherit;
      -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
      user-select: none;
      margin: 0;
      padding: 0;
      outline: none;
    }

    html {
      box-sizing: border-box;
    }

    iframe {
      width: 375px;
      height: 600px;
      border: 0;
    }

    .exhibition_contain {
      width: 1200px;
      margin: 0 auto;
    }

    .sortable_overlay {
      position: absolute;
      width: 320px;
      height: 600px;
      z-index: 1;
    }

    .weixin-wrapper {
      float: left;
      width: 377px;
      margin: 50px 0 0 50px;
      padding-bottom: 120px;
    }

    .weixin-wrapper * {
      pointer-events: none;
    }

    .wrapper-header {
      height: 52px;
      border-radius: 35px 35px 0 0;
      background: #222222;
    }

    .wrapper-main {
      min-height: 567px;
      border: 1px solid #222222;
      position: relative;
    }

    .wrapper-footer {
      height: 52px;
      border-radius: 0 0 35px 35px;
      background: #222222;
    }

    .xsite-wx-header {
      box-sizing: border-box;
      position: relative;
      width: 377px;
      height: 60px;
      background: url("//wanmi-x-site.oss-cn-shanghai.aliyuncs.com/x-site/public/images/weixin/iphone_title.jpg");
      background-size: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      color: #fff;
    }

    .xsite-wx-header .wx-title {
      text-align: center;
      width: 200px;
      margin-top: 25px;
      font-size: 18px;
      line-height: 1.5;
      height: 27px;
      overflow: hidden;
      text-overflow: ellipsis;
      cursor: pointer;
    }

    #sweep_code {
      position: absolute;
      margin-left: 500px;
      top: 100px;
      text-align: center;
    }

    #sweep_code h3 {
      font-size: 20px;
      margin-bottom: 14px;
    }
  </style>
</head>

<body>
  <div class="exhibition_contain">
    <div class="weixin-wrapper">
      <div class="wrapper-header"></div>
      <div class="xsite-wx-header">
        <div class="wx-title">
          <%= initConfig.userTitle%>
        </div>
      </div>
      <div id="content" class="wrapper-main">
        <iframe id="iframe" src=""></iframe>
      </div>
      <div class="wrapper-footer"></div>
    </div>
    <div id="sweep_code">
      <h3>扫描二维码，在手机上查看</h3>
      <div id="qrcode" class="ewm"></div>
    </div>
  </div>
  <% include common-js.ejs %>
    <script>
      var config = {
        userId: '<%= userId %>',
        systemCode: '<%= systemCode %>',
        systemCodeZip: '<%= systemCodeZip %>',
        commonUrls:<%- JSON.stringify(commonUrls) %>,
        systemConfig:<%- systemConfig %>,
        xsiteEnvironment: "<%= xsiteEnvironment %>",
        url: "<%= initConfig.iFrameUrl %>",
        platform: "<%= initConfig.platform %>",
        envCode: "<%= envCode %>"
      }
        <% if (jwtToken) { %>
      var jwtToken = '<%= jwtToken %>';
    <% } %>
    </script>
    <script src='<%= bundleMap.exhibition.jsFile%>'></script>
    <% include common-analysis.ejs %>
</body>

</html>
