Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
chinaamc-2020flag
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ae0d745a
authored
Jan 07, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
e5059d2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
0 deletions
+54
-0
Public/static/css/index.css
+16
-0
Public/static/js/common.js
+38
-0
No files found.
Public/static/css/index.css
View file @
ae0d745a
...
@@ -55,4 +55,19 @@ input::-webkit-input-placeholder {
...
@@ -55,4 +55,19 @@ input::-webkit-input-placeholder {
font-size
:
1.3rem
;
font-size
:
1.3rem
;
line-height
:
0.85rem
;
line-height
:
0.85rem
;
color
:
#c30303
;
color
:
#c30303
;
}
.flag-no
{
font-size
:
1.3rem
;
color
:
#222222
;
line-height
:
1.85rem
;
text-align
:
center
;
padding-left
:
0.4rem
;
}
.flag-text
{
font-size
:
1.2rem
;
color
:
#222222
;
line-height
:
1.8rem
;
padding-left
:
0.5rem
;
}
}
\ No newline at end of file
Public/static/js/common.js
View file @
ae0d745a
...
@@ -52,6 +52,36 @@ preloadimages(preloadImageList, function () {
...
@@ -52,6 +52,36 @@ preloadimages(preloadImageList, function () {
// $('input[name=tel]').attr('type','tel');
// $('input[name=tel]').attr('type','tel');
// $('input[name=tel]').attr('maxlength',11);
// $('input[name=tel]').attr('maxlength',11);
let
flag
=
[
'升职加薪'
,
'早日暴富'
,
'拿到一个新项目'
,
'考过CFA'
,
'迎战CPA'
,
'读10本金融类书籍'
,
'提升工作核心技能'
,
'多赚钱,去看一看世界和远方'
,
'拿下自己的Dream car'
,
'买一套小房子'
,
'存款超过6位数'
,
'回家继承家业'
,
'结婚,靠份子钱增收'
,
'拥有苹果全家桶'
,
'坚持基金定投'
,
'坚持记账'
,
'get一项理财技能'
,
'为孩子做教育基金定投'
,
'好好存钱,认真把养老问题提上日程'
,
'投资收益超主业,躺着赚钱'
,
'靠理财收益,实现水果自由'
,
'好好理财,买全李佳琪推荐口红'
,
'理财收益多一点,猫粮争取升一级'
,
'用理财收益,来场说走就走的旅行'
];
var
flagTemplate
=
$
(
'.flag-frame'
).
find
(
'.flag-block'
).
clone
();
$
(
'.flag-frame'
).
html
();
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
$
(
"input"
).
on
(
"blur"
,
function
()
{
$
(
"input"
).
on
(
"blur"
,
function
()
{
window
.
scroll
(
0
,
0
);
//失焦后强制让页面归位
window
.
scroll
(
0
,
0
);
//失焦后强制让页面归位
...
@@ -64,6 +94,14 @@ function showFlagPage() {
...
@@ -64,6 +94,14 @@ function showFlagPage() {
$
(
'.page1'
).
hide
();
$
(
'.page1'
).
hide
();
$
(
'.flag-page'
).
show
();
$
(
'.flag-page'
).
show
();
$
(
'.flag-page .choose-num'
).
text
(
0
);
$
(
'.flag-page .choose-num'
).
text
(
0
);
createItem
(
flag
[
0
],
1
);
}
function
createItem
(
flag
,
no
)
{
let
item
=
flagTemplate
.
clone
();
item
.
find
(
'.flag-block .flag-no'
).
text
(
no
);
item
.
find
(
'.flag-block .flag-text'
).
text
(
flag
);
$
(
'.flag-frame'
).
append
(
item
);
}
}
...
...
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