Commit 0382028b by dos

init

parent e8b9eae0
File added

65.5 KB | W: | H:

9 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
......@@ -322,12 +322,9 @@ function createPoster() {
photo.onload = function () {
posterCtx.drawImage(photo, 0, 0, posterCanvas.width, posterCanvas.height);
var posterTopObj = new Image();
posterTopObj.src = `/Public/static/image2/poster${level}-1-${phase}.png?version=1.0.0`;
var logoObj = new Image();
logoObj.src = '/Public/static/image2/logo.png?version=1.0.0';
posterTopObj.onload = function () {
logoObj.src = '/Public/static/image2/logo.png?v=1';
logoObj.onload = function () {
// 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);
......@@ -337,20 +334,11 @@ function createPoster() {
setTimeout(function () {
posterCtx.drawImage(logoObj, 0 * 2, 40 * 2, 569 * 2, 204 * 2);
posterCtx.drawImage(posterTopObj, 35 * 2, 173 * 2, 206 * 2, 141 * 2);
posterCtx.drawImage(logoObj, 42 * 2, 41 * 2, 143 * 2, 55 * 2);
var posterBottomObj = new Image();
posterBottomObj.src = '/Public/static/image2/poster' + level + '-2.png?version=1.0.0';
posterBottomObj.src = '/Public/static/image2/poster-' + level + '.png?version=1';
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, 'FYP' + perf + '元', '#b40220', 66 * 2, 888 * 2, 53 * 2, 'bolder');
}
posterCtx.drawImage(posterBottomObj, 0, (canvasHeight - 615) * 2, posterCanvas.width, 615 * 2);
$('#notification_area').remove();
$('.upload-page').hide();
......
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