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
ae27c9e6
Commit
ae27c9e6
authored
Apr 25, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
481eb5d2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
58 additions
and
3 deletions
+58
-3
remark_follow_index.html
application/index/view/remark/remark_follow_index.html
+6
-0
RemarkFollowIndex.js
public/resource/js/RemarkFollowIndex.js
+8
-3
main.js
public/resource/js/main.js
+8
-0
PaginationLiu.js
public/resource/lib/js/PaginationLiu.js
+0
-0
liu.pagination.js
public/resource/lib/js/liu.pagination.js
+36
-0
No files found.
application/index/view/remark/remark_follow_index.html
View file @
ae27c9e6
{layout name="global/frame_two_tpl" /}
{layout name="global/frame_two_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"RemarkFollowIndex"
/>
<input
type=
"hidden"
class=
"page-load"
id=
"RemarkFollowIndex"
/>
<style>
<style>
.prev
{
margin-right
:
10px
;
}
.next
{
margin-left
:
10px
;
}
.follow-up-modal-list-area
{
.follow-up-modal-list-area
{
height
:
258px
;
height
:
258px
;
overflow-y
:
scroll
;
overflow-y
:
scroll
;
...
...
public/resource/js/RemarkFollowIndex.js
View file @
ae27c9e6
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
alert
(
'请清除缓存重新登录'
);
alert
(
'请清除缓存重新登录'
);
location
.
replace
(
location
.
origin
);
location
.
replace
(
location
.
origin
);
};
};
define
([
'doT'
,
'text!temp/remark_follow_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
"datetimepicker"
,
'pagination'
,
'bootstrapJs'
,
'blow-up'
],
function
(
doT
,
template
)
{
define
([
'doT'
,
'text!temp/remark_follow_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
"datetimepicker"
,
'bootstrapJs'
,
'blow-up'
,
'PaginationLiu'
,
'paginationStartLiu'
],
function
(
doT
,
template
)
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
console
.
log
(
user_info_obj
);
console
.
log
(
user_info_obj
);
var
_doc
=
$
(
document
),
var
_doc
=
$
(
document
),
...
@@ -1695,8 +1696,12 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
...
@@ -1695,8 +1696,12 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
/*分页代码*/
/*分页代码*/
add_page
(
data
.
data
.
data
.
total
,
pageNo
,
user
.
pageSize
,
user
.
getList
);
add_page
(
data
.
data
.
data
.
total
,
pageNo
,
user
.
pageSize
,
user
.
getList
);
$
(
'.hide-total-info-liu'
).
hide
();
$
(
'.hide-total-info-liu'
).
hide
();
if
(
data
.
data
.
data
.
list
.
length
<
15
){
$
(
'.next'
).
hide
();
}
else
{
$
(
'.next'
).
show
();
}
}
else
{
}
else
{
alert
(
data
[
'msg'
]);
alert
(
data
[
'msg'
]);
...
...
public/resource/js/main.js
View file @
ae27c9e6
...
@@ -23,8 +23,10 @@ require.config ({
...
@@ -23,8 +23,10 @@ require.config ({
'bootstrapJs'
:
'lib/js/bootstrap.min'
,
'bootstrapJs'
:
'lib/js/bootstrap.min'
,
// 'datetimepicker': 'lib/js/bootstrap-datetimepicker.min',
// 'datetimepicker': 'lib/js/bootstrap-datetimepicker.min',
'datetimepicker'
:
'lib/js/bootstrap-datetimepicker'
,
'datetimepicker'
:
'lib/js/bootstrap-datetimepicker'
,
'PaginationLiu'
:
'lib/js/PaginationLiu'
,
'pagination'
:
'lib/js/Pagination'
,
'pagination'
:
'lib/js/Pagination'
,
'paginationStart'
:
'lib/js/zw.pagination'
,
'paginationStart'
:
'lib/js/zw.pagination'
,
'paginationStartLiu'
:
'lib/js/liu.pagination'
,
'checkLogin'
:
'lib/js/checkLoginFailureAjax'
,
'checkLogin'
:
'lib/js/checkLoginFailureAjax'
,
'blow-up'
:
'lib/js/blow-up'
,
'blow-up'
:
'lib/js/blow-up'
,
'97datePicker'
:
'lib/js/my97datePicker/WdatePicker'
,
'97datePicker'
:
'lib/js/my97datePicker/WdatePicker'
,
...
@@ -73,6 +75,12 @@ require.config ({
...
@@ -73,6 +75,12 @@ require.config ({
'paginationStart'
:{
'paginationStart'
:{
'exports'
:
'pagination'
'exports'
:
'pagination'
},
},
'PaginationLiu'
:{
'exports'
:
'PaginationLiu'
},
'paginationStartLiu'
:{
'exports'
:
'paginationStartLiu'
},
'blow-up'
:
{
'blow-up'
:
{
'deps'
:
[
'jquery'
],
'deps'
:
[
'jquery'
],
'exports'
:
'blow-up'
'exports'
:
'blow-up'
...
...
public/resource/lib/js/PaginationLiu.js
0 → 100644
View file @
ae27c9e6
This diff is collapsed.
Click to expand it.
public/resource/lib/js/liu.pagination.js
0 → 100644
View file @
ae27c9e6
/**
* Created by zw on 2017/12/22.
*/
function
add_page
(
total_list
,
page_no
,
page_size
,
methodName
)
{
if
(
total_list
-
page_size
<
0
)
{
$
(
'#pagediv'
).
html
(
''
);
return
;
}
if
(
total_list
==
undefined
)
{
total_list
=
0
;
}
$
(
'#pagediv'
).
pagination
({
totalData
:
total_list
,
/*总条数*/
jump
:
false
,
current
:
page_no
,
/*第几页*/
showData
:
page_size
,
/*每页显示多少条*/
coping
:
false
,
homePage
:
'首页'
,
endPage
:
'末页'
,
prevContent
:
'上页'
,
nextContent
:
'下页'
,
callback
:
function
(
api
)
{
//console.log(api.getCurrent())
methodName
(
api
.
getCurrent
());
}
});
var
str
=
'<span style="float: left;min-width: 250px !important;text-align: left !important;" class ="move-block">'
+
'每页显示'
+
page_size
+
'条<span class="hide-total-info-liu"> | 共'
+
total_list
+
'条</span></span>'
;
$
(
'#pagediv'
).
append
(
str
);
};
\ No newline at end of file
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