Commit c17ed73b by doszhang

dos

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