Commit cb0aab80 by doszhang

dos

parent 2292c330
......@@ -130,6 +130,8 @@ function checkInfo() {
}
function createPoster(name, business) {
$('.page1').hide();
$('.poster-page').show();
let oldPosterIndex = nowPosterIndex;
nowPosterIndex = RandomNumBoth(1, 3, oldPosterIndex);
console.log('nowPosterIndex:', nowPosterIndex);
......@@ -141,11 +143,11 @@ function createPoster(name, business) {
var posterObj = new Image();
posterObj.src = '/Public/static/image2/poster' + nowPosterIndex + '.jpg';
posterObj.onload = function () {
posterctx.drawImage(posterObj, 0, 0, posterCanvas.width, posterCanvas.height);
posterCtx.drawImage(posterObj, 0, 0, posterCanvas.width, posterCanvas.height);
var headimgObj = new Image();
headimgObj.src = getManBase64(uploadCanvas);
headimgObj.onload = function () {
posterctx.drawImage(headimgObj, 170 * 2, 402 * 2, 87 * 2, 87 * 2);
posterCtx.drawImage(headimgObj, 170 * 2, 402 * 2, 87 * 2, 87 * 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