Commit d0067c04 by dosZhang

use rem

parent 1c8e6d3e
......@@ -8,16 +8,16 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
{:assign var=projectId value=0}
{:assign var=rem value=false}
{:assign var=rem value=true}
{:assign var=version value='5.0.5'}
{:block name='projectx'}{:/block}
{:if $rem == true}
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1, user-scalable=no">
<script>
(function (doc, win) {
(function(doc, win) {
var docEl = doc.documentElement,
resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
recalc = function () {
recalc = function() {
window.clientWidth = docEl.clientWidth;
if (!window.clientWidth) return;
docEl.style.fontSize = 20 * (window.clientWidth / 640) + 'px';
......@@ -50,7 +50,7 @@
<script>
//判断访问终端
var browser = {
versions: function () {
versions: function() {
var u = navigator.userAgent,
app = navigator.appVersion;
return {
......@@ -73,10 +73,10 @@
</script>
<title>{:block name='title'}“惠康至诚 温暖回归”全国冠军精英荣誉海报{:/block}</title>
{:if $projectId && strpos( $smarty.server.HTTP_HOST , 'dev.iacode.cn') !== false}
<link rel="stylesheet" type="text/css" href="http://projectx.dev.iacode.cn/api/css/rem/{:$rem}/id/{:$projectId}?version={:$version}"
media="all"/>
<link rel="stylesheet" type="text/css"
href="http://projectx.dev.iacode.cn/api/css/rem/{:$rem}/id/{:$projectId}?version={:$version}" media="all" />
{:else}
<link rel="stylesheet" type="text/css" href="__CDN__/css/main.min.css" media="all"/>
<link rel="stylesheet" type="text/css" href="__CDN__/css/main.min.css" media="all" />
{:/if}
{:block name='css'}{:/block}
<link rel="stylesheet" type="text/css" href="__CDN__/css/notify.css?version={:$version}" media="all" />
......@@ -84,10 +84,10 @@
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?c8a41b65154301a2d05315d3000bf95a";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?c8a41b65154301a2d05315d3000bf95a";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
......@@ -118,13 +118,13 @@
'imgUrl': link + '/Public/static/image2/share.jpg',
'title': friend_title,
'desc': friend_desc,
success: function () {}
success: function() {}
};
window.wxTimelineData = {
'link': link,
'imgUrl': link + '/Public/static/image2/share.jpg',
'title': timeline_desc,
success: function () {}
success: function() {}
};
</script>
<script src="__CDN__/js/jquery-2.1.3.min.js"></script>
......@@ -135,7 +135,7 @@
{:block name='js'}{:/block}
<script>
window.wx && wx.ready(function () {
window.wx && wx.ready(function() {
wx.onMenuShareAppMessage(wxFriendData);
wx.onMenuShareTimeline(wxTimelineData);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment