Commit 9247bd92 by kubisk

dos

parent 08d100c6
......@@ -52,6 +52,8 @@ class IndexController extends Controller
'poster' => $job_number['level'],
'msg' => '查询成功',
'branch'=> $job_number['branch'],
'fyp' => $job_number['fyp'],
'perf' => $job_number['perf'],
'step' => 1
));
return;
......
......@@ -137,7 +137,7 @@ input[name=job-number] {
.username {
font-size: 45px;
line-height: 45px;
color: #fff;
color: #464646;
text-align: right;
font-weight: bolder;
}
......@@ -148,7 +148,7 @@ input[name=job-number] {
}
.company {
color: #fff;
color: #464646;
text-align: right;
font-size: 20px;
}
......@@ -156,3 +156,12 @@ input[name=job-number] {
.home-logo {
z-index: 1;
}
.perf {
font-size: 50px;
color: #b40220;
}
.perf span {
font-size: 36px;
}
\ No newline at end of file
......@@ -66,6 +66,8 @@ let createPosterLock = false;
let level = 0;
let username = '';
let company = '';
let perf = '';
let fyp = '';
......@@ -163,9 +165,15 @@ function checkInfo() {
level = resp.poster;
username = name;
company = resp.branch;
fyp = resp.fyp;
perf = resp.perf;
toUploadPage();
$('.username').text(username);
$('.company').html('中信保诚人寿<br/>' + company + '');
if (fyp == 0) {
$('.perf').html('<span>个人累计承保</span><br/>+' + perf + '+件')
}
// setShare();
} else {
......@@ -313,9 +321,9 @@ function createPoster() {
// var logoObj = new Image();
// logoObj.src = '/Public/static/image2/logo.png?version=1.0.0';
posterTopObj.onload = function () {
txtDraw(posterCtx, username, '#fff', 215 * 2, 360 * 2, 45 * 2, 'bolder');
txtDraw(posterCtx, '中信保诚人寿', '#fff', 215 * 2, 390 * 2, 20 * 2);
txtDraw(posterCtx, company + '', '#fff', 215 * 2, 413 * 2, 20 * 2);
txtDraw(posterCtx, username, '#464646', 215 * 2, 360 * 2, 45 * 2, 'bolder');
txtDraw(posterCtx, '中信保诚人寿', '#464646', 215 * 2, 390 * 2, 20 * 2);
txtDraw(posterCtx, company + '', '#464646', 215 * 2, 413 * 2, 20 * 2);
setTimeout(function () {
// posterCtx.drawImage(logoObj, 0, 43 * 2, 640 * 2, 61 * 2);
posterCtx.drawImage(posterTopObj, 0 * 2, 0 * 2, 569 * 2, 204 * 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