Commit 3f38dcdc by doszhang

dos

parent 7531c0a6
...@@ -81,11 +81,9 @@ preloadimages(preloadImageList, function () { ...@@ -81,11 +81,9 @@ preloadimages(preloadImageList, function () {
}, function (progress) {}); }, function (progress) {});
// const originalHeight = document.documentElement.clientHeight || document.body.clientHeight;
$(document).ready(function () { $(document).ready(function () {
// $('.logo').css('top', getTranslateDistance(40, true));
$("input").on("blur", function () { $("input").on("blur", function () {
window.scroll(0, 0); //失焦后强制让页面归位 window.scroll(0, 0); //失焦后强制让页面归位
}); });
...@@ -269,6 +267,15 @@ function createPoster() { ...@@ -269,6 +267,15 @@ function createPoster() {
txtDraw(posterCtx, username, '#464646', 522 * 2, 236 * 2, 45 * 2, 'bolder'); txtDraw(posterCtx, username, '#464646', 522 * 2, 236 * 2, 45 * 2, 'bolder');
txtDraw(posterCtx, '中信保诚人寿', '#464646', 522 * 2, 268 * 2, 20 * 2); txtDraw(posterCtx, '中信保诚人寿', '#464646', 522 * 2, 268 * 2, 20 * 2);
txtDraw(posterCtx, company + '分公司', '#464646', 522 * 2, 295 * 2, 20 * 2); txtDraw(posterCtx, company + '分公司', '#464646', 522 * 2, 295 * 2, 20 * 2);
var titleObj = new Image();
var jobTitle = (level == 1 || level == 2) ? level : false;
if (jobTitle) {
titleObj.src = '/Public/static/image2/job-title-' + jobTitle + '.png';
titleObj.onload = function () {
posterCtx.drawImage(titleObj, 431 * 2, 42 * 2, 168 * 2, 92 * 2);
}
}
setTimeout(function () { setTimeout(function () {
posterCtx.drawImage(logoObj, 52 * 2, 38 * 2, 243 * 2, 67 * 2); posterCtx.drawImage(logoObj, 52 * 2, 38 * 2, 243 * 2, 67 * 2);
var posterBottomObj = new Image(); var posterBottomObj = new Image();
......
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