Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
X
xy-ads
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tf-boys
xy-ads
Commits
220ea125
Commit
220ea125
authored
Jun 09, 2017
by
coolfish
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改样式
parent
e092b3c5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
14 deletions
+48
-14
style.css
public/css/style.css
+18
-4
qr.jpeg
public/images/qr.jpeg
+0
-0
main.js
public/js/main.js
+28
-9
index.ejs
views/index.ejs
+2
-1
No files found.
public/css/style.css
View file @
220ea125
...
@@ -426,6 +426,9 @@ input[type="number"]::-webkit-outer-spin-button {
...
@@ -426,6 +426,9 @@ input[type="number"]::-webkit-outer-spin-button {
padding-left
:
1px
;
padding-left
:
1px
;
padding-right
:
5px
;
padding-right
:
5px
;
}
}
.qr
{
width
:
120px
;
}
@media
(
max-width
:
415px
)
{
@media
(
max-width
:
415px
)
{
.top-nav-left
.font-title
{
.top-nav-left
.font-title
{
line-height
:
20px
;
line-height
:
20px
;
...
@@ -439,11 +442,10 @@ input[type="number"]::-webkit-outer-spin-button {
...
@@ -439,11 +442,10 @@ input[type="number"]::-webkit-outer-spin-button {
margin
:
0
auto
;
margin
:
0
auto
;
}
}
#section0
.section-content
{
#section0
.section-content
{
width
:
2
8
0px
;
width
:
2
9
0px
;
margin-left
:
-150px
;
margin-left
:
-150px
;
padding-left
:
10px
;
padding-left
:
5px
;
padding-right
:
10px
;
padding-right
:
5px
;
top
:
45%
;
}
}
#industry
li
{
#industry
li
{
max-width
:
inherit
;
max-width
:
inherit
;
...
@@ -451,4 +453,16 @@ input[type="number"]::-webkit-outer-spin-button {
...
@@ -451,4 +453,16 @@ input[type="number"]::-webkit-outer-spin-button {
#readCount
.section-text
.span-t
{
#readCount
.section-text
.span-t
{
display
:
none
;
display
:
none
;
}
}
.section-h1
{
font-size
:
24px
;
}
.section-h2
{
font-size
:
18px
;
}
.section-h3
{
font-size
:
14px
;
}
.section-text
{
font-size
:
24px
;
}
}
}
public/images/qr.jpeg
0 → 100644
View file @
220ea125
98 KB
public/js/main.js
View file @
220ea125
...
@@ -36,17 +36,36 @@ window.onload = function () {
...
@@ -36,17 +36,36 @@ window.onload = function () {
var
articlesPv
=
5000
;
var
articlesPv
=
5000
;
var
publishArticlesCount
=
400
;
var
publishArticlesCount
=
400
;
function
clickBtn
(
id
)
{
function
clickBtn
(
id
,
type
)
{
$
(
'#'
+
id
).
on
(
'click'
,
'.xy-btn'
,
function
()
{
if
(
type
===
'checkbox'
)
{
$
(
'#'
+
id
+
' .xy-btn'
).
removeClass
(
'on'
);
$
(
'#'
+
id
).
on
(
'click'
,
'.xy-btn'
,
function
()
{
$
(
this
).
addClass
(
'on'
);
if
(
$
(
this
).
hasClass
(
'on'
))
{
flag
[
id
]
=
true
;
$
(
this
).
removeClass
(
'on'
);
checkFlag
();
}
else
{
});
$
(
this
).
addClass
(
'on'
);
}
if
(
$
(
'#'
+
id
+
' .xy-btn.on'
).
length
>
0
)
{
flag
[
id
]
=
true
;
}
else
{
flag
[
id
]
=
false
;
}
checkFlag
();
});
}
else
{
$
(
'#'
+
id
).
on
(
'click'
,
'.xy-btn'
,
function
()
{
$
(
'#'
+
id
+
' .xy-btn'
).
removeClass
(
'on'
);
$
(
this
).
addClass
(
'on'
);
flag
[
id
]
=
true
;
checkFlag
();
});
}
}
}
function
checkFlag
()
{
function
checkFlag
()
{
if
(
flag
.
industry
&&
flag
.
platform
&&
flag
.
format
&&
flag
.
expect
)
{
if
(
flag
.
industry
&&
flag
.
platform
&&
flag
.
format
&&
flag
.
expect
)
{
compute
();
compute
();
}
else
{
$
(
'#tips'
).
show
();
$
(
'#result'
).
hide
();
}
}
}
}
function
compute
()
{
function
compute
()
{
...
@@ -62,8 +81,8 @@ window.onload = function () {
...
@@ -62,8 +81,8 @@ window.onload = function () {
flag
[
'expect'
]
=
(
!
isNaN
(
expect
)
&&
expect
>
0
);
flag
[
'expect'
]
=
(
!
isNaN
(
expect
)
&&
expect
>
0
);
checkFlag
();
checkFlag
();
}
}
clickBtn
(
'industry'
);
clickBtn
(
'industry'
,
'checkbox'
);
clickBtn
(
'platform'
);
clickBtn
(
'platform'
,
'checkbox'
);
clickBtn
(
'format'
);
clickBtn
(
'format'
);
$
(
'#expect'
).
blur
(
function
()
{
$
(
'#expect'
).
blur
(
function
()
{
changeExpect
(
+
$
(
this
).
val
());
changeExpect
(
+
$
(
this
).
val
());
...
...
views/index.ejs
View file @
220ea125
...
@@ -141,7 +141,8 @@
...
@@ -141,7 +141,8 @@
<div
class=
"section-h2"
>
我们将尽快为您定制一个展现计划
</div>
<div
class=
"section-h2"
>
我们将尽快为您定制一个展现计划
</div>
<div
class=
"section-text"
>
<div
class=
"section-text"
>
<div
class=
"section-h3"
id=
"contacts"
>
<div
class=
"section-h3"
id=
"contacts"
>
联系人:18618323889 沈小美
<img
src=
"/images/qr.jpeg"
class=
"qr"
/>
<div>
联系人:13164955640 刘煜
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
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