Commit 5f41f2f2 by doszhang

dos

parent 2e645a72
......@@ -68,7 +68,7 @@ let answerArr = [];
// 已经进入的题目
let watchedQuestion = [1];
//结果
let resultType = 2;
let resultType = 3;
//提交信息按钮防抖
let submitStatus = true;
//是否已经看过规则
......@@ -305,6 +305,33 @@ function createPoster(callback) {
'height': pxToRem(canvasArr[resultType - 1][3]) / 2 + 'rem',
});
$('.posterImg').attr('src', 'http://maf.dev.izhida.cn/Public/static/image2/poster' + resultType + '.png');
switch (resultType) {
case 1:
$('.tip1,.tip6').css('top', '51.8rem');
break;
case 2:
$('.tip1,.tip6').css('top', '51.6rem');
break;
case 3:
$('.tip1,.tip6').css('top', '51.6rem');
break;
case 4:
$('.tip1,.tip6').css('top', '51.6rem');
break;
case 5:
$('.tip1,.tip6').css('top', '51.6rem');
break;
case 6:
$('.tip1,.tip6').css('top', '51.6rem');
break;
case 7:
$('.tip1,.tip6').css('top', '51.6rem');
break;
case 8:
$('.tip1,.tip6').css('top', '51.6rem');
break;
}
let posterImg = new Image();
posterImg.src = 'http://maf.dev.izhida.cn/Public/static/image2/poster' + resultType + '.png';
posterImg.onload = function () {
......
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