Commit 5472c659 by doszhang

dos

parent dff61c75
...@@ -164,7 +164,7 @@ function createPoster(name, business) { ...@@ -164,7 +164,7 @@ function createPoster(name, business) {
posterCtx.closePath(); posterCtx.closePath();
posterCtx.drawImage(headimgObj, 170 * 2, 402 * 2, 88 * 2, 88 * 2); posterCtx.drawImage(headimgObj, 170 * 2, 402 * 2, 88 * 2, 88 * 2);
drawUserInfo(name, business, 20, 'bolder'); drawUserInfo(name, business, 20, 'bolder');
drawNum(); // drawNum();
setTimeout(function () { setTimeout(function () {
$('.posterimg').attr('src', getManBase64(posterCanvas)); $('.posterimg').attr('src', getManBase64(posterCanvas));
$('.page1').hide(); $('.page1').hide();
...@@ -336,7 +336,7 @@ function drawUserInfo(name, business, fontsize, fontweight) { ...@@ -336,7 +336,7 @@ function drawUserInfo(name, business, fontsize, fontweight) {
let idObj = new Image(); let idObj = new Image();
idObj.src = '/Public/static/image2/id.png'; idObj.src = '/Public/static/image2/id.png';
idObj.onload = function () { idObj.onload = function () {
posterCtx.drawImage(idObj, idX, 497 * 2, idInfo.width * 4, idInfo.height * 4); posterCtx.drawImage(idObj, idX, 497 * 2, idInfo.width * 2, idInfo.height * 2);
txtDraw(posterCtx, name, '#fff', nameX, 512 * 2); txtDraw(posterCtx, name, '#fff', nameX, 512 * 2);
let noObj = new Image(); let noObj = new Image();
noObj.src = '/Public/static/image2/no.png'; noObj.src = '/Public/static/image2/no.png';
......
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