Commit 9247bd92 by kubisk

dos

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