Commit fe5f8a30 by doszhang

dos

parent a83ec63d
......@@ -71,7 +71,7 @@
language: (navigator.browserLanguage || navigator.language).toLowerCase()
}
</script>
<title>{:block name='title'}2021年度MDRT注册会员荣誉海报{:/block}</title>
<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"/>
......@@ -104,15 +104,15 @@
</div>
</div>
<script type="text/javascript" src="http://third.iacode.cn/js?app_id=wx8e5787326363f877&v=1.2.0"></script>
<script type="text/javascript" src="http://third.iacode.cn/js?app_id=wxe6ed02ca70d0eaea"></script>
<script>
window.base_resource_url = '__CDN__';
window.num = '{:$num}';
var link = location.origin;
var friend_title = '2021年度MDRT注册会员荣誉海报';
var friend_desc = '你是中信保诚营销队伍的领军者,是站在世界寿险业顶峰的引路人,top of the world,为你骄傲!';
var timeline_desc = '你是中信保诚营销队伍的领军者,是站在世界寿险业顶峰的引路人,top of the world,为你骄傲!';
var friend_title = '“惠康至诚 温暖回归”营销员竞赛荣誉海报';
var friend_desc = '榜样之火把,光耀神州,至诚至信。';
var timeline_desc = '榜样之火把,光耀神州,至诚至信。';
window.wxFriendData = {
'link': link,
'imgUrl': link + '/Public/static/image2/share.jpg',
......
......@@ -159,11 +159,11 @@ input[name=job-number] {
.perf {
font-weight: bolder;
font-size: 60px;
font-size: 53px;
color: #b40220;
line-height: 72px;
line-height: 58px;
}
.perf span {
font-size: 50px;
font-size: 40px;
}
\ No newline at end of file
......@@ -172,6 +172,8 @@ function checkInfo() {
$('.company').html('中信保诚人寿<br/>' + company + '');
if (fyp == 0) {
$('.perf').html('<span>个人累计承保</span><br/>' + perf + '件')
} else {
$('.perf').html('<span>个人累计承保</span><br/>YFP' + perf + '元')
}
// setShare();
......@@ -324,13 +326,24 @@ function createPoster() {
txtDraw(posterCtx, username, '#464646', 215 * 2, 360 * 2, 45 * 2, 'bolder');
txtDraw(posterCtx, '中信保诚人寿', '#464646', 215 * 2, 390 * 2, 20 * 2);
txtDraw(posterCtx, company + '', '#464646', 215 * 2, 413 * 2, 20 * 2);
setTimeout(function () {
posterCtx.drawImage(logoObj, 0 * 2, 0 * 2, 569 * 2, 204 * 2);
posterCtx.drawImage(posterTopObj, 80 * 2, 270 * 2, 206 * 2, 65 * 2);
posterCtx.drawImage(logoObj, 0 * 2, 40 * 2, 569 * 2, 204 * 2);
posterCtx.drawImage(posterTopObj, 35 * 2, 250 * 2, 206 * 2, 65 * 2);
var posterBottomObj = new Image();
posterBottomObj.src = '/Public/static/image2/poster' + level + '-2.png?version=1.0.0';
posterBottomObj.onload = function () {
posterCtx.drawImage(posterBottomObj, 0, (canvasHeight - 370) * 2, posterCanvas.width, 370 * 2);
if (fyp == 0) {
txtDrawLeft(posterCtx, '个人累计承保', '#b40220', 66 * 2, 837 * 2, 40 * 2, 'bolder');
txtDrawLeft(posterCtx, perf + '件', '#b40220', 66 * 2, 888 * 2, 53 * 2, 'bolder');
} else {
txtDrawLeft(posterCtx, '个人累计承保', '#b40220', 66 * 2, 837 * 2, 40 * 2, 'bolder');
txtDrawLeft(posterCtx, 'YFP' + perf + '元', '#b40220', 66 * 2, 888 * 2, 53 * 2, 'bolder');
}
$('#notification_area').remove();
$('.upload-page').hide();
$('.poster-page').show();
......@@ -580,6 +593,13 @@ function txtDraw(ctx, content, color, x, y, fontsize, fontWeight = 'normal') {
ctx.fillText(content, cx, y);
}
function txtDrawLeft(ctx, content, color, x, y, fontsize, fontWeight = 'normal') {
ctx.font = fontWeight + ' ' + fontsize + 'px zkkh';
var cx = x;
ctx.fillStyle = color;
ctx.fillText(content, cx, y);
}
function getManBase64(canvas) {
return canvas.toDataURL('image/png');
}
......
<?php /* Smarty version Smarty-3.1.6, created on 2021-04-30 10:53:10
compiled from "Application/Home/View/default/Index_index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:4876646036088c82d758e93-18897134%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'a8175b67d5aa9cac954251197f9ffb6c6442a1c9' =>
array (
0 => 'Application/Home/View/default/Index_index.tpl',
1 => 1619576604,
2 => 'file',
),
'526b6e8e6609f50ea93c8658e68e6ae8c9981bc5' =>
array (
0 => 'Application/Home/View/default/layout.tpl',
1 => 1619751162,
2 => 'file',
),
),
'nocache_hash' => '4876646036088c82d758e93-18897134',
'function' =>
array (
),
'version' => 'Smarty-3.1.6',
'unifunc' => 'content_6088c82d84c8d',
'variables' =>
array (
'rem' => 0,
'projectId' => 0,
'version' => 0,
'num' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6088c82d84c8d')) {function content_6088c82d84c8d($_smarty_tpl) {?><!DOCTYPE html>
<html>
<head>
<meta http-equiv="imagetoolbar" content="no">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<?php $_smarty_tpl->tpl_vars['projectId'] = new Smarty_variable(0, null, 0);?>
<?php $_smarty_tpl->tpl_vars['rem'] = new Smarty_variable(false, null, 0);?>
<?php $_smarty_tpl->tpl_vars['version'] = new Smarty_variable('5.0.4', null, 0);?>
<?php $_smarty_tpl->tpl_vars['projectId'] = new Smarty_variable(404, null, 0);?>
<?php if ($_smarty_tpl->tpl_vars['rem']->value==true){?>
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1, user-scalable=no">
<script>
(function (doc, win) {
var docEl = doc.documentElement,
resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
recalc = function () {
window.clientWidth = docEl.clientWidth;
if (!window.clientWidth) return;
docEl.style.fontSize = 20 * (window.clientWidth / 640) + 'px';
window.base = 20 * (window.clientWidth / 640);
};
recalc();
// Abort if browser does not support addEventListener
if (!doc.addEventListener) return;
win.addEventListener(resizeEvt, recalc, false);
doc.addEventListener('DOMContentLoaded', recalc, false);
})(document, window);
</script>
<?php }else{ ?>
<script>
if (/Android (\d+\.\d+)/.test(navigator.userAgent)) {
var version = parseFloat(RegExp.$1);
if (version > 2.3) {
var phoneScale = parseInt(window.screen.width) / 640;
document.write('<meta name="viewport" content="width=640, minimum-scale = ' + phoneScale +
', maximum-scale = ' + phoneScale + ', target-densitydpi=device-dpi ,viewport-fit=cover">');
} else {
document.write('<meta name="viewport" content="width=640, target-densitydpi=device-dpi">');
}
} else {
document.write(
'<meta name="viewport" content="width=640, user-scalable=no, target-densitydpi=device-dpi">');
}
</script>
<?php }?>
<script>
//判断访问终端
var browser = {
versions: function () {
var u = navigator.userAgent,
app = navigator.appVersion;
return {
trident: u.indexOf('Trident') > -1, //IE内核
presto: u.indexOf('Presto') > -1, //opera内核
webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核
mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
android: u.indexOf('Android') > -1 || u.indexOf('Adr') > -1, //android终端
iPhone: u.indexOf('iPhone') > -1, //是否为iPhone或者QQHD浏览器
iPad: u.indexOf('iPad') > -1, //是否iPad
webApp: u.indexOf('Safari') == -1, //是否web应该程序,没有头部与底部
weixin: u.indexOf('MicroMessenger') > -1, //是否微信 (2015-01-22新增)
qq: u.match(/\sQQ/i) == " qq" //是否QQ
};
}(),
language: (navigator.browserLanguage || navigator.language).toLowerCase()
}
</script>
<title>“惠康至诚 温暖回归”营销员竞赛荣誉海报</title>
<?php if ($_smarty_tpl->tpl_vars['projectId']->value&&strpos($_SERVER['HTTP_HOST'],'dev.iacode.cn')!==false){?>
<link rel="stylesheet" type="text/css" href="http://projectx.dev.iacode.cn/api/css/rem/<?php echo $_smarty_tpl->tpl_vars['rem']->value;?>
/id/<?php echo $_smarty_tpl->tpl_vars['projectId']->value;?>
?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
"
media="all"/>
<?php }else{ ?>
<link rel="stylesheet" type="text/css" href="__CDN__/css/main.min.css" media="all"/>
<?php }?>
<style>
</style>
<link rel="stylesheet" type="text/css" href="__CDN__/css/notify.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
" media="all" />
<link rel="stylesheet" type="text/css" href="__CDN__/css/index.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
" media="all" />
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?24f55c033cb4f0f53569de145e3336c4";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body>
<div class="wrap">
<div class="wrap-inner">
<?php if ($_smarty_tpl->tpl_vars['projectId']->value&&strpos($_SERVER['HTTP_HOST'],'dev.iacode.cn')!==false){?>
<?php echo file_get_contents("http://projectx.dev.iacode.cn/api/html/id/".($_smarty_tpl->tpl_vars['projectId']->value));?>
<?php }else{ ?>
<?php }?>
</div>
</div>
<script type="text/javascript" src="http://third.iacode.cn/js?app_id=wxe6ed02ca70d0eaea"></script>
<script>
window.base_resource_url = '__CDN__';
window.num = '<?php echo $_smarty_tpl->tpl_vars['num']->value;?>
';
var link = location.origin;
var friend_title = '“惠康至诚 温暖回归”营销员竞赛荣誉海报';
var friend_desc = '榜样之火把,光耀神州,至诚至信。';
var timeline_desc = '榜样之火把,光耀神州,至诚至信。';
window.wxFriendData = {
'link': link,
'imgUrl': link + '/Public/static/image2/share.jpg',
'title': friend_title,
'desc': friend_desc,
success: function () {}
};
window.wxTimelineData = {
'link': link,
'imgUrl': link + '/Public/static/image2/share.jpg',
'title': timeline_desc,
success: function () {}
};
</script>
<script src="__CDN__/js/jquery-2.1.3.min.js"></script>
<script src="__CDN__/js/jquery-notify.min.js"></script>
<script src="__CDN__/js/hammer.min.js"></script>
<script src="__CDN__/js/lrz.mobile.min.js"></script>
<script src="__CDN__/js/common.js?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
"></script>
<script>
window.wx && wx.ready(function () {
wx.onMenuShareAppMessage(wxFriendData);
wx.onMenuShareTimeline(wxTimelineData);
});
</script>
</body>
</html><?php }} ?>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
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