Commit 595d32f7 by doszhang

dos

parent 4e72512f
{:extends file="layout.tpl"} {:extends file="layout.tpl"}
{:block name='projectx'} {:block name='projectx'}
{:$projectId=376} {:$projectId=377}
{:/block} {:/block}
// css 文件导入 // css 文件导入
......

21.2 KB | W: | H:

25.5 KB | W: | H:

Public/static/image2/logo.png
Public/static/image2/logo.png
Public/static/image2/logo.png
Public/static/image2/logo.png
  • 2-up
  • Swipe
  • Onion skin

107 KB | W: | H:

103 KB | W: | H:

Public/static/image2/poster-bottom.png
Public/static/image2/poster-bottom.png
Public/static/image2/poster-bottom.png
Public/static/image2/poster-bottom.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -62,7 +62,7 @@ let canvasHeight = 0; ...@@ -62,7 +62,7 @@ let canvasHeight = 0;
let createPosterLock = false; let createPosterLock = false;
// 1 总会长 2 分会长 3 空 // 会长 2 新人十杰 3 优秀新人
let level = 0; let level = 0;
let username = ''; let username = '';
let company = ''; let company = '';
...@@ -111,14 +111,17 @@ $(document).ready(function () { ...@@ -111,14 +111,17 @@ $(document).ready(function () {
function showIcon() { function showIcon() {
if (level == 1) { if (level == 1) {
$('.mdrt-1').show(); $('.eagle-1').show();
$('.mdrt-2').hide(); $('.eagle-2').hide();
$('.eagle-3').hide();
} else if (level == 2) { } else if (level == 2) {
$('.mdrt-2').show(); $('.eagle-2').show();
$('.mdrt-1').hide(); $('.eagle-1').hide();
} else { $('.eagle-3').hide();
$('.mdrt-1').hide(); } else if (level == 3) {
$('.mdrt-2').hide(); $('.eagle-1').hide();
$('.eagle-2').hide();
$('.eagle-3').show();
} }
} }
...@@ -268,20 +271,20 @@ function createPoster() { ...@@ -268,20 +271,20 @@ function createPoster() {
txtDraw(posterCtx, '中信保诚人寿', '#464646', 522 * 2, 268 * 2, 20 * 2); txtDraw(posterCtx, '中信保诚人寿', '#464646', 522 * 2, 268 * 2, 20 * 2);
txtDraw(posterCtx, company + '分公司', '#464646', 522 * 2, 295 * 2, 20 * 2); txtDraw(posterCtx, company + '分公司', '#464646', 522 * 2, 295 * 2, 20 * 2);
var titleObj = new Image(); var titleObj = new Image();
var jobTitle = (level == 1 || level == 2) ? level : false; var jobTitle = (level == 1 || level == 2 || level == 3) ? level : false;
if (jobTitle) { if (jobTitle) {
titleObj.src = '/Public/static/image2/job-title-' + jobTitle + '.png'; titleObj.src = '/Public/static/image2/eagle-' + jobTitle + '.png';
titleObj.onload = function () { titleObj.onload = function () {
posterCtx.drawImage(titleObj, 431 * 2, 42 * 2, 168 * 2, 92 * 2); posterCtx.drawImage(titleObj, 431 * 2, 42 * 2, 168 * 2, 92 * 2);
} }
} }
setTimeout(function () { setTimeout(function () {
posterCtx.drawImage(logoObj, 52 * 2, 38 * 2, 243 * 2, 67 * 2); posterCtx.drawImage(logoObj, 52 * 2, 41 * 2, 288 * 2, 64 * 2);
var posterBottomObj = new Image(); var posterBottomObj = new Image();
posterBottomObj.src = '/Public/static/image2/poster-bottom.png'; posterBottomObj.src = '/Public/static/image2/poster-bottom.png';
posterBottomObj.onload = function () { posterBottomObj.onload = function () {
posterCtx.drawImage(posterBottomObj, 0, (canvasHeight - 521) * 2, posterCanvas.width, 521 * 2); posterCtx.drawImage(posterBottomObj, 0, (canvasHeight - 478) * 2, posterCanvas.width, 478 * 2);
$('#notification_area').remove(); $('#notification_area').remove();
$('.upload-page').hide(); $('.upload-page').hide();
$('.poster-page').show(); $('.poster-page').show();
......
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