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
13026a05
Commit
13026a05
authored
Dec 21, 2017
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
ad334230
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
57 deletions
+11
-57
transfer.js
public/resource/js/transfer.js
+9
-1
zw.pagination.js
public/resource/js/zw.pagination.js
+0
-52
banner_template_tpl.html
public/resource/template/banner_template_tpl.html
+2
-4
No files found.
public/resource/js/transfer.js
View file @
13026a05
define
([
'doT'
,
'text!temp/transfer_template_tpl.html'
,
'ckfinder'
,
'ckfinderStart'
,
'css!style/home.css'
,
"datetimepicker"
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
define
([
'doT'
,
'text!temp/transfer_template_tpl.html'
,
'css!style/home.css'
,
"datetimepicker"
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
user
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
10
,
/*每页显示多少条*/
...
...
@@ -21,6 +21,14 @@ define (['doT', 'text!temp/transfer_template_tpl.html','ckfinder','ckfinderStart
$
(
"#submit_follow"
).
click
(
function
()
{
user
.
addFollow
();
});
$
(
'#datetimepicker'
).
datetimepicker
({
format
:
'yyyy-MM-dd'
,
language
:
'zh-CN'
,
pickTime
:
false
}).
on
(
'changeDate'
,
function
(){
$
(
this
).
datetimepicker
(
'hide'
);
});
},
getList
:
function
(
pageNo
)
{
user
.
pageNo
=
pageNo
;
...
...
public/resource/js/zw.pagination.js
deleted
100644 → 0
View file @
ad334230
/**
* Created by zw on 2017/12/18.
*/
var
pagination_page_no
=
1
;
//页码
var
pagination_pages
=
1
;
//总页数
var
pagination_totals
=
0
;
//总条数
var
pagination_pagesize
=
15
;
//每页显示多少条
function
addpage
(
methodName
)
{
if
(
pagination_page_no
>
pagination_pages
)
pagination_page_no
=
pagination_pages
;
$
(
'.pageinfo'
).
pagination
({
pages
:
pagination_pages
,
//总页数
//styleClass: ['pagination-large'],
showCtrl
:
true
,
displayPage
:
6
,
currentPage
:
pagination_page_no
,
//当前页码
onSelect
:
function
(
num
)
{
pagination_page_no
=
num
;
if
(
typeof
methodName
===
"function"
){
methodName
();
}
}
});
/* $('.pageinfo').find('span:contains(共)').append("(" + pagination_totals + "条记录)");
var pageselect = ' <select class="page_size_select" style="width:80px;">';
var pagearr = [15,30,50,100];
$.each(pagearr, function () {
if (this == pagination_pagesize) {
pageselect = pageselect + '<option value="' + this + '" selected>' + this + '</option>';
} else {
pageselect = pageselect + '<option value="' + this + '" >' + this + '</option>';
}
});
pageselect = pageselect + '</select> ';
if( !$('.page_size_select').val()){
$('.pageinfo').find('span:contains(共)').prepend(pageselect);
}
$('.page_size_select').one('change',function(){
pagination_pagesize = $(this).val();
methodName();
});*/
};
\ No newline at end of file
public/resource/template/banner_template_tpl.html
View file @
13026a05
...
...
@@ -98,13 +98,11 @@
<input
type=
"text"
class=
"form-control btn6"
name=
"title"
id=
"sort"
autocomplete=
"off"
placeholder=
"请输入排序"
>
</div>
</div>
</form>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
Close
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"save_banner"
>
Save changes
</button>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"save_banner"
>
保存修改
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
...
...
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