Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
citic-mdrt4
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9247bd92
authored
Apr 29, 2021
by
kubisk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
08d100c6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
5 deletions
+25
-5
Application/Home/Controller/IndexController.class.php
+2
-0
Public/static/css/index.css
+12
-2
Public/static/js/common.js
+11
-3
No files found.
Application/Home/Controller/IndexController.class.php
View file @
9247bd92
...
@@ -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
;
...
...
Public/static/css/index.css
View file @
9247bd92
...
@@ -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
Public/static/js/common.js
View file @
9247bd92
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment