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
321cb0fb
Commit
321cb0fb
authored
Jun 14, 2017
by
coolfish
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
9be118d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
main.js
public/js/main.js
+3
-1
index.ejs
views/index.ejs
+4
-4
No files found.
public/js/main.js
View file @
321cb0fb
...
@@ -37,6 +37,7 @@ window.onload = function () {
...
@@ -37,6 +37,7 @@ window.onload = function () {
var
cpm
=
0
;
var
cpm
=
0
;
var
articlesPv
=
5000
;
var
articlesPv
=
5000
;
var
publishArticlesCount
=
400
;
var
publishArticlesCount
=
400
;
var
scale
=
0
;
function
clickBtn
(
id
,
type
)
{
function
clickBtn
(
id
,
type
)
{
if
(
type
===
'checkbox'
)
{
if
(
type
===
'checkbox'
)
{
...
@@ -73,7 +74,8 @@ window.onload = function () {
...
@@ -73,7 +74,8 @@ window.onload = function () {
function
compute
()
{
function
compute
()
{
articles
=
Math
.
ceil
(
expect
/
articlesPv
);
articles
=
Math
.
ceil
(
expect
/
articlesPv
);
days
=
Math
.
ceil
(
articles
/
publishArticlesCount
);
days
=
Math
.
ceil
(
articles
/
publishArticlesCount
);
cpm
=
$
(
'#industry .xy-btn.on'
).
data
(
'cpm'
);
scale
=
$
(
'#format .xy-btn.on'
).
data
(
'scale'
);
cpm
=
$
(
'#industry .xy-btn.on'
).
data
(
'cpm'
)
*
(
scale
/
10
);
money
=
expect
/
1000
*
Math
.
ceil
(
cpm
);
money
=
expect
/
1000
*
Math
.
ceil
(
cpm
);
$
(
'#money'
).
html
(
money
);
$
(
'#money'
).
html
(
money
);
$
(
'#cpm'
).
html
(
cpm
);
$
(
'#cpm'
).
html
(
cpm
);
...
...
views/index.ejs
View file @
321cb0fb
...
@@ -100,21 +100,21 @@
...
@@ -100,21 +100,21 @@
<div
class=
"section-h2"
>
第三步,请选择广告展现形式
</div>
<div
class=
"section-h2"
>
第三步,请选择广告展现形式
</div>
<ul
class=
"xy-btn-group clearfix"
>
<ul
class=
"xy-btn-group clearfix"
>
<li>
<li>
<a
href=
"javascript:;"
class=
"xy-btn"
>
<a
href=
"javascript:;"
class=
"xy-btn"
data-scale=
"6"
>
<img
class=
"image-format"
src=
"/images/format/2.png"
>
<img
class=
"image-format"
src=
"/images/format/2.png"
>
<span
class=
"image-title"
>
小编推荐
</span>
<span
class=
"image-title"
>
小编推荐
</span>
<span
class=
"image-info"
>
适合品牌信息植入
</span>
<span
class=
"image-info"
>
适合品牌信息植入
</span>
</a>
</a>
</li>
</li>
<li>
<li>
<a
href=
"javascript:;"
class=
"xy-btn"
>
<a
href=
"javascript:;"
class=
"xy-btn"
data-scale=
"10"
>
<img
class=
"image-format"
src=
"/images/format/1.png"
>
<img
class=
"image-format"
src=
"/images/format/1.png"
>
<span
class=
"image-title"
>
文章发布
</span>
<span
class=
"image-title"
>
文章发布
</span>
<span
class=
"image-info"
>
适合品牌EPR宣推
</span>
<span
class=
"image-info"
>
适合品牌EPR宣推
</span>
</a>
</a>
</li>
</li>
<li>
<li>
<a
href=
"javascript:;"
class=
"xy-btn"
>
<a
href=
"javascript:;"
class=
"xy-btn"
data-scale=
"6"
>
<img
class=
"image-format"
src=
"/images/format/3.png"
>
<img
class=
"image-format"
src=
"/images/format/3.png"
>
<span
class=
"image-title"
>
贴片广告
</span>
<span
class=
"image-title"
>
贴片广告
</span>
<span
class=
"image-info"
>
适合商品推荐
</span>
<span
class=
"image-info"
>
适合商品推荐
</span>
...
@@ -141,7 +141,7 @@
...
@@ -141,7 +141,7 @@
请完成以上四步
请完成以上四步
</div>
</div>
<div
id=
"result"
class=
"hide"
>
<div
id=
"result"
class=
"hide"
>
<p>
预计
发布
<font
id=
"articles"
></font>
篇文章
,
<font
id=
"days"
></font>
天完成发布任务。
</p>
<p>
预计
总共发布
<font
id=
"articles"
></font>
篇
,
<font
id=
"days"
></font>
天完成发布任务。
</p>
<p
style=
"padding-top: 10px;"
>
预计预算
<font
id=
"money"
></font>
元,预计千次展现(CPM)
<font
id=
"cpm"
></font>
元
</p>
<p
style=
"padding-top: 10px;"
>
预计预算
<font
id=
"money"
></font>
元,预计千次展现(CPM)
<font
id=
"cpm"
></font>
元
</p>
</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