2020-09-24 10:26:22 +08:00
|
|
|
|
<!DOCTYPE html>
|
2020-10-25 12:04:26 +08:00
|
|
|
|
<html lang="zh_CN">
|
2020-10-28 15:23:28 +08:00
|
|
|
|
|
|
|
|
|
<head>
|
2020-09-24 10:26:22 +08:00
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
|
|
|
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
|
|
|
|
<title><%= htmlWebpackPlugin.options.title %></title>
|
2020-11-13 17:36:33 +08:00
|
|
|
|
<link href="https://imgcache.qq.com/open/qcloud/video/tcplayer/tcplayer.css" rel="stylesheet">
|
2020-11-23 17:31:25 +08:00
|
|
|
|
<script data-ad-client="ca-pub-7145171713084445" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
2020-11-13 17:07:11 +08:00
|
|
|
|
<!-- 如需在IE8、9浏览器中初始化播放器,浏览器需支持Flash并在页面中引入 -->
|
|
|
|
|
<!--[if lt IE 9]>
|
|
|
|
|
<script src="//imgcache.qq.com/open/qcloud/video/tcplayer/ie8/videojs-ie8.js"></script>
|
|
|
|
|
<![endif]-->
|
|
|
|
|
<!-- 如果需要在 Chrome Firefox 等现代浏览器中通过H5播放hls,需要引入 hls.js -->
|
2020-11-13 17:36:33 +08:00
|
|
|
|
<script src="https://imgcache.qq.com/open/qcloud/video/tcplayer/lib/hls.min.0.8.8.js"></script>
|
2020-11-13 17:07:11 +08:00
|
|
|
|
<!-- 引入播放器 js 文件 -->
|
2020-11-13 17:36:33 +08:00
|
|
|
|
<script src="https://imgcache.qq.com/open/qcloud/video/tcplayer/tcplayer.min.js"></script>
|
2020-09-27 10:37:36 +08:00
|
|
|
|
<script>
|
2020-10-28 15:23:28 +08:00
|
|
|
|
//designWidth:设计稿的实际宽度值,需要根据实际设置
|
|
|
|
|
//maxWidth:制作稿的最大宽度值,需要根据实际设置
|
|
|
|
|
//这段js的最后面有两个参数记得要设置,一个为设计稿实际宽度,一个为制作稿最大宽度,例如设计稿为750,最大宽度为750,则为(750,750)
|
|
|
|
|
(function (designWidth, maxWidth) {
|
|
|
|
|
var doc = document,
|
|
|
|
|
win = window,
|
|
|
|
|
docEl = doc.documentElement,
|
|
|
|
|
remStyle = document.createElement("style"),
|
|
|
|
|
tid;
|
2020-09-27 10:37:36 +08:00
|
|
|
|
|
2020-10-28 15:23:28 +08:00
|
|
|
|
function refreshRem() {
|
2020-09-27 10:37:36 +08:00
|
|
|
|
|
2020-10-28 15:23:28 +08:00
|
|
|
|
var width = docEl.getBoundingClientRect().width;
|
|
|
|
|
// maxWidth = maxWidth || 540; //不需要判断最大宽度
|
|
|
|
|
// width > maxWidth && (width = maxWidth);
|
|
|
|
|
var rem = width * 100 / designWidth;
|
|
|
|
|
console.log(rem)
|
2020-09-27 10:37:36 +08:00
|
|
|
|
|
2020-10-28 15:23:28 +08:00
|
|
|
|
remStyle.innerHTML = 'html{font-size:' + rem + 'px;}';
|
|
|
|
|
}
|
2020-09-27 10:37:36 +08:00
|
|
|
|
|
2020-10-28 15:23:28 +08:00
|
|
|
|
if (docEl.firstElementChild) {
|
|
|
|
|
docEl.firstElementChild.appendChild(remStyle);
|
|
|
|
|
} else {
|
|
|
|
|
var wrap = doc.createElement("div");
|
|
|
|
|
wrap.appendChild(remStyle);
|
|
|
|
|
doc.write(wrap.innerHTML);
|
|
|
|
|
wrap = null;
|
|
|
|
|
}
|
|
|
|
|
//要等 wiewport 设置好后才能执行 refreshRem,不然 refreshRem 会执行2次;
|
|
|
|
|
refreshRem();
|
2020-09-27 10:37:36 +08:00
|
|
|
|
|
2020-10-28 15:23:28 +08:00
|
|
|
|
win.addEventListener("resize", function () {
|
|
|
|
|
clearTimeout(tid); //防止执行两次
|
|
|
|
|
tid = setTimeout(refreshRem, 300);
|
|
|
|
|
}, false);
|
2020-09-27 10:37:36 +08:00
|
|
|
|
|
2020-10-28 15:23:28 +08:00
|
|
|
|
win.addEventListener("pageshow", function (e) {
|
|
|
|
|
if (e.persisted) { // 浏览器后退的时候重新计算
|
|
|
|
|
clearTimeout(tid);
|
|
|
|
|
tid = setTimeout(refreshRem, 300);
|
|
|
|
|
}
|
|
|
|
|
}, false);
|
2020-09-27 10:37:36 +08:00
|
|
|
|
|
2020-10-28 15:23:28 +08:00
|
|
|
|
if (doc.readyState === "complete") {
|
|
|
|
|
doc.body.style.fontSize = "16px";
|
|
|
|
|
} else {
|
|
|
|
|
doc.addEventListener("DOMContentLoaded", function (e) {
|
|
|
|
|
doc.body.style.fontSize = "16px";
|
|
|
|
|
}, false);
|
|
|
|
|
}
|
|
|
|
|
})(1366, 1024);
|
2020-09-27 10:37:36 +08:00
|
|
|
|
</script>
|
2020-11-22 18:24:02 +08:00
|
|
|
|
<link href="/css/cropper.min.css" rel="stylesheet">
|
2020-11-02 16:11:45 +08:00
|
|
|
|
<style>
|
|
|
|
|
#make{
|
|
|
|
|
background-color: #000;
|
|
|
|
|
opacity: 0.5;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
2020-11-18 11:02:27 +08:00
|
|
|
|
z-index: 1001;
|
2020-11-02 16:11:45 +08:00
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
2020-10-28 15:23:28 +08:00
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body>
|
2020-09-24 10:26:22 +08:00
|
|
|
|
<noscript>
|
2020-10-28 15:23:28 +08:00
|
|
|
|
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
|
|
|
|
|
Please enable it to continue.</strong>
|
2020-09-24 10:26:22 +08:00
|
|
|
|
</noscript>
|
|
|
|
|
<div id="app"></div>
|
2020-11-02 16:11:45 +08:00
|
|
|
|
<div id="make"></div>
|
2020-09-24 10:26:22 +08:00
|
|
|
|
<!-- built files will be auto injected -->
|
2020-10-28 15:23:28 +08:00
|
|
|
|
<script>
|
|
|
|
|
window.fbAsyncInit = function () {
|
|
|
|
|
FB.init({
|
|
|
|
|
appId: '277826133389999',
|
|
|
|
|
autoLogAppEvents: true,
|
|
|
|
|
xfbml: true,
|
|
|
|
|
version: 'v8.0'
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js"></script>
|
2020-11-22 18:24:02 +08:00
|
|
|
|
<script src="/js/cropper.min.js"></script>
|
2020-10-28 15:23:28 +08:00
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
</html>
|