Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
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
hujun
tl_estate
Commits
859dcacc
Commit
859dcacc
authored
Apr 20, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
050fbc79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
banner.js
public/resource/js/banner.js
+15
-8
No files found.
public/resource/js/banner.js
View file @
859dcacc
...
...
@@ -35,15 +35,15 @@ define (['doT', 'text!temp/banner_template_tpl.html', 'ckfinder', 'ckfinderStart
params
.
cover_image
=
$
(
"#cover_image"
).
val
();
params
.
sort
=
$
(
"#sort"
).
val
();
var
banner_type
=
$
(
"input[name=banner_type]:checked"
).
val
();
var
page_type
=
$
(
"#type"
).
val
();
if
(
page_type
==
0
&&
banner_type
==
0
)
{
var
banner_type
=
$
(
"input[name=banner_type]:checked"
).
val
();
var
page_type
=
$
(
"#type"
).
val
();
if
(
page_type
==
0
&&
banner_type
==
0
)
{
params
.
type
=
0
;
}
else
if
(
page_type
==
0
&&
banner_type
==
1
)
{
}
else
if
(
page_type
==
0
&&
banner_type
==
1
)
{
params
.
type
=
2
;
}
else
if
(
page_type
==
1
&&
banner_type
==
0
)
{
}
else
if
(
page_type
==
1
&&
banner_type
==
0
)
{
params
.
type
=
1
;
}
else
if
(
page_type
==
1
&&
banner_type
==
1
)
{
}
else
if
(
page_type
==
1
&&
banner_type
==
1
)
{
params
.
type
=
3
;
}
...
...
@@ -84,6 +84,13 @@ define (['doT', 'text!temp/banner_template_tpl.html', 'ckfinder', 'ckfinderStart
$
(
"#editor_modal_title"
).
html
(
"编辑广告"
);
var
item
=
$
(
this
).
parents
(
"tr"
).
find
(
"td"
);
$
(
"#id"
).
val
(
$
(
this
).
attr
(
"data-id"
));
var
type
=
item
.
eq
(
2
).
html
();
if
(
type
.
trim
()
==
"用户app"
)
{
$
(
"input[name='banner_type']"
).
get
(
0
).
checked
=
true
;
}
else
{
$
(
"input[name='banner_type']"
).
get
(
1
).
checked
=
true
;
}
$
(
"#title"
).
val
(
item
.
eq
(
0
).
html
());
$
(
"#url"
).
val
(
item
.
eq
(
3
).
html
());
$
(
"#cover_image"
).
val
(
item
.
eq
(
1
).
find
(
"input"
).
val
());
...
...
@@ -103,9 +110,9 @@ define (['doT', 'text!temp/banner_template_tpl.html', 'ckfinder', 'ckfinderStart
params
.
pageSize
=
banner
.
pageSize
;
var
url
=
''
;
var
requestPath
=
window
.
location
.
pathname
;
if
(
requestPath
.
indexOf
(
"advertising"
)
>
0
)
{
if
(
requestPath
.
indexOf
(
"advertising"
)
>
0
)
{
url
=
'/admin.php/index/getPopList'
;
}
else
{
}
else
{
url
=
'/admin.php/index/bannerList'
;
}
$
.
ajax
({
...
...
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