Commit b44f3076 by kubisk

dos

parent 4c9f55f0
...@@ -54,6 +54,7 @@ class IndexController extends Controller ...@@ -54,6 +54,7 @@ class IndexController extends Controller
'branch'=> $job_number['branch'], 'branch'=> $job_number['branch'],
'fyp' => $job_number['fyp'], 'fyp' => $job_number['fyp'],
'perf' => $job_number['perf'], 'perf' => $job_number['perf'],
'phase' => $job_number['phase']
'step' => 1 'step' => 1
)); ));
return; return;
......
...@@ -68,6 +68,7 @@ let username = ''; ...@@ -68,6 +68,7 @@ let username = '';
let company = ''; let company = '';
let perf = ''; let perf = '';
let fyp = ''; let fyp = '';
let phase = '';
...@@ -167,6 +168,7 @@ function checkInfo() { ...@@ -167,6 +168,7 @@ function checkInfo() {
company = resp.branch; company = resp.branch;
fyp = resp.fyp; fyp = resp.fyp;
perf = resp.perf; perf = resp.perf;
phase = resp.phase;
toUploadPage(); toUploadPage();
$('.username').text(username); $('.username').text(username);
$('.company').html('中信保诚人寿<br/>' + company + ''); $('.company').html('中信保诚人寿<br/>' + company + '');
...@@ -319,7 +321,7 @@ function createPoster() { ...@@ -319,7 +321,7 @@ function createPoster() {
posterCtx.drawImage(photo, 0, 0, posterCanvas.width, posterCanvas.height); posterCtx.drawImage(photo, 0, 0, posterCanvas.width, posterCanvas.height);
var posterTopObj = new Image(); var posterTopObj = new Image();
posterTopObj.src = '/Public/static/image2/poster' + level + '-1.png?version=1.0.0'; posterTopObj.src = `/Public/static/image2/poster${level}-1-${phase}.png?version=1.0.0`;
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 () {
...@@ -333,7 +335,7 @@ function createPoster() { ...@@ -333,7 +335,7 @@ function createPoster() {
setTimeout(function () { setTimeout(function () {
posterCtx.drawImage(logoObj, 0 * 2, 40 * 2, 569 * 2, 204 * 2); posterCtx.drawImage(logoObj, 0 * 2, 40 * 2, 569 * 2, 204 * 2);
posterCtx.drawImage(posterTopObj, 35 * 2, 250 * 2, 206 * 2, 65 * 2); posterCtx.drawImage(posterTopObj, 35 * 2, 173 * 2, 206 * 2, 65 * 2);
var posterBottomObj = new Image(); var posterBottomObj = new Image();
posterBottomObj.src = '/Public/static/image2/poster' + level + '-2.png?version=1.0.0'; posterBottomObj.src = '/Public/static/image2/poster' + level + '-2.png?version=1.0.0';
posterBottomObj.onload = function () { posterBottomObj.onload = function () {
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com> // | Author: liu21st <liu21st@gmail.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
die(); // die();
if(version_compare(PHP_VERSION,'5.3.0','<')) die('require PHP > 5.3.0 !'); if(version_compare(PHP_VERSION,'5.3.0','<')) die('require PHP > 5.3.0 !');
define('WEB_ROOT_PATH', realpath(dirname(__FILE__))); define('WEB_ROOT_PATH', realpath(dirname(__FILE__)));
......
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