Commit fd3eab40 by dos

init

parent 959a1fa1
......@@ -329,15 +329,15 @@ 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);
txtDraw(posterCtx, username, '#ffffff', 350 * 2, canvasHeight - username_bottom * 2, 45 * 2, 'bolder');
txtDraw(posterCtx, '中信保诚人寿 ' + company, '#ffffff', 350 * 2, canvasHeight - company_bottom * 2, 20 * 2);
txtDraw(posterCtx, username, '#ffffff', 350 * 2, (canvasHeight - username_bottom) * 2, 45 * 2, 'bolder');
txtDraw(posterCtx, '中信保诚人寿 ' + company, '#ffffff', 350 * 2, (canvasHeight - company_bottom) * 2, 20 * 2);
// txtDraw(posterCtx, company + '', '#ffffff', 215 * 2, 308 * 2, 20 * 2);
setTimeout(function () {
posterCtx.drawImage(logoObj, 42 * 2, 41 * 2, 143 * 2, 55 * 2);
var posterBottomObj = new Image();
posterBottomObj.src = '/Public/static/image2/poster-' + level + '.png?version=1';
posterBottomObj.src = '/Public/static/image2/poster-' + level + '.png?version=2';
posterBottomObj.onload = function () {
posterCtx.drawImage(posterBottomObj, 0, (canvasHeight - 615) * 2, posterCanvas.width, 615 * 2);
......
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