Commit 5bcd4b63 by doszhang

dos

parent e374c690
......@@ -295,39 +295,45 @@ function createPoster() {
posterCanvas = canvasinfo[0];
posterCtx = canvasinfo[1];
var posterObj = new Image();
posterObj.src = '/Public/static/image2/poster' + level + '.jpg';
posterObj.onload = function () {
posterCtx.drawImage(posterObj, 0, 0, posterCanvas.width, posterCanvas.height);
$('#notification_area').remove();
$('.upload-page').hide();
$('.poster-page').show();
// var headimgObj = new Image();
// headimgObj.src = getManBase64(uploadCanvas);
// headimgObj.onload = function () {
// posterCtx.beginPath();
// posterCtx.arc(214 * 2, 446 * 2, 46 * 2, 0, 2 * Math.PI);
// posterCtx.fillStyle = "#fff"; //填充颜色,默认是黑色
// posterCtx.fill(); //画实心圆
// posterCtx.closePath();
// posterCtx.drawImage(headimgObj, 170 * 2, 402 * 2, 88 * 2, 88 * 2);
// drawUserInfo(name, business, 20, 'bolder');
// setTimeout(function () {
// drawNum();
// }, 200);
// setTimeout(function () {
// $('.poster-canvas .posterimg').remove();
// $('.poster-canvas').append('<img class="posterimg" />');
// $('.posterimg').attr('src', getManBase64(posterCanvas));
// $('.page1').hide();
// $('.poster-page').show();
// $('#notification_area').remove();
// createPosterLock = false;
// }, 500);
// }
var photo = new Image();
photo.src = getManBase64(uploadCanvas);
photo.onload = function () {
posterCtx.drawImage(photo, 0, 0, posterCanvas.width, posterCanvas.height);
}
// var posterObj = new Image();
// posterObj.src = '/Public/static/image2/poster' + level + '.jpg';
// posterObj.onload = function () {
// posterCtx.drawImage(posterObj, 0, 0, posterCanvas.width, posterCanvas.height);
// $('#notification_area').remove();
// $('.upload-page').hide();
// $('.poster-page').show();
// // var headimgObj = new Image();
// // headimgObj.src = getManBase64(uploadCanvas);
// // headimgObj.onload = function () {
// // posterCtx.beginPath();
// // posterCtx.arc(214 * 2, 446 * 2, 46 * 2, 0, 2 * Math.PI);
// // posterCtx.fillStyle = "#fff"; //填充颜色,默认是黑色
// // posterCtx.fill(); //画实心圆
// // posterCtx.closePath();
// // posterCtx.drawImage(headimgObj, 170 * 2, 402 * 2, 88 * 2, 88 * 2);
// // drawUserInfo(name, business, 20, 'bolder');
// // setTimeout(function () {
// // drawNum();
// // }, 200);
// // setTimeout(function () {
// // $('.poster-canvas .posterimg').remove();
// // $('.poster-canvas').append('<img class="posterimg" />');
// // $('.posterimg').attr('src', getManBase64(posterCanvas));
// // $('.page1').hide();
// // $('.poster-page').show();
// // $('#notification_area').remove();
// // createPosterLock = false;
// // }, 500);
// // }
// }
}
function confirmAvatar() {
......
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