Commit c17ed73b by doszhang

dos

parent 39cc59d5
......@@ -112,7 +112,7 @@ input[name=job-number] {
width: 100%;
height: 100%;
z-index: 1;
opacity: 0;
opacity: 1;
}
.logo {
......
......@@ -71,6 +71,7 @@ let createPosterLock = false;
let level = 0;
let username = '';
......@@ -161,6 +162,7 @@ function checkInfo() {
success: function (resp) {
if (resp.status == 1) {
level = resp.poster;
username = name;
toUploadPage();
} else {
$('#notification_area').remove();
......@@ -308,6 +310,8 @@ function createPoster() {
$('.upload-page').hide();
$('.poster-page').show();
txtDraw(posterCtx, username, '#fff', 460 * 2, 472 * 2, 90 * 2);
$('.show-img').append('<img class="showimg" />');
$('.showimg').attr('src', getManBase64(uploadCanvas));
......@@ -538,7 +542,8 @@ function getX(name, business) {
};
}
function txtDraw(ctx, content, color, x, y) {
function txtDraw(ctx, content, color, x, y, fontsize) {
ctx.font = 'bolder ' + fontsize + 'px zkkh';
ctx.fillStyle = color;
ctx.fillText(content, x, y);
}
......
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