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
7dae6862
Commit
7dae6862
authored
May 10, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台编辑轮播图 优化
parent
faaacde6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
banner.js
public/resource/js/banner.js
+14
-2
No files found.
public/resource/js/banner.js
View file @
7dae6862
...
...
@@ -61,7 +61,13 @@ define (['doT', 'text!temp/banner_template_tpl.html', 'ckfinder', 'ckfinderStart
var
params
=
{};
params
.
title
=
$
(
"#title"
).
val
();
params
.
url
=
$
(
"#url"
).
val
()
+
"?title="
+
$
(
"#title"
).
val
()
;
//轮播 首页弹窗
if
(
$
(
"#url"
).
val
().
indexOf
(
"title"
)
>
-
1
){
params
.
url
=
$
(
"#url"
).
val
()
;
//轮播 首页弹窗
}
else
{
params
.
url
=
$
(
"#url"
).
val
()
+
"?title="
+
$
(
"#title"
).
val
()
;
//轮播 首页弹窗
}
params
.
cover_image
=
banner
.
imageName
;
//$ ("#cover_image").val ();
params
.
sort
=
$
(
"#sort"
).
val
();
...
...
@@ -123,7 +129,13 @@ define (['doT', 'text!temp/banner_template_tpl.html', 'ckfinder', 'ckfinderStart
$
(
"input[name='banner_type']"
).
get
(
1
).
checked
=
true
;
}
$
(
"#title"
).
val
(
item
.
eq
(
0
).
html
());
$
(
"#url"
).
val
(
item
.
eq
(
3
).
html
());
if
(
item
.
eq
(
3
).
html
().
indexOf
(
"title"
)
>
-
1
){
var
num_
=
item
.
eq
(
3
).
html
().
indexOf
(
"?"
);
$
(
"#url"
).
val
(
item
.
eq
(
3
).
html
().
substring
(
0
,
num_
));
}
else
{
$
(
"#url"
).
val
(
item
.
eq
(
3
).
html
());
}
// $ ("#cover_image").val (item.eq (1).find ("input").val ());
var
pic_path
=
$
(
this
).
attr
(
"data-pic"
);
...
...
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