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
9d73a55d
Commit
9d73a55d
authored
Dec 24, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
6
parent
4f2d80af
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
75 additions
and
69 deletions
+75
-69
performance_ranking.html
...n/index/view/performance_ranking/performance_ranking.html
+14
-4
main.js
public/resource/js/main.js
+3
-3
performance_ranking.js
public/resource/js/performance_ranking.js
+49
-4
public.js
public/resource/js/public.js
+0
-50
b-liu.tabs.js
public/resource/lib/js/b-liu.tabs.js
+3
-3
demo-liu.js
public/resource/lib/js/demo-liu.js
+3
-3
menu_template_tpl.html
public/resource/template/menu_template_tpl.html
+3
-2
No files found.
application/index/view/performance_ranking/performance_ranking.html
View file @
9d73a55d
...
...
@@ -181,8 +181,15 @@
}
</style>
<div
class=
"backer"
></div>
<div
id=
"page-content-wrapper"
>
<!--<div class="backer"></div>-->
<!--切换不同的页面 框架-->
<div
id=
"mainFrameTabs"
>
<ul
class=
"nav nav-tabs"
role=
"tablist"
>
<li
role=
"presentation"
class=
"active noclose"
><a
href=
"#bTabs_navTabsMainPage"
data-toggle=
"tab"
>
首页
</a></li>
</ul>
<div
class=
"tab-content"
>
<div
class=
"tab-pane active"
>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-xs-12 p-a-0"
id=
"paihang"
>
...
...
@@ -331,6 +338,10 @@
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--加载图标-->
<!--<div id="main_loading_pic">
...
...
@@ -439,4 +450,4 @@
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
\ No newline at end of file
</div>
public/resource/js/main.js
View file @
9d73a55d
...
...
@@ -81,7 +81,7 @@ require.config ({
'exports'
:
'b-liu-tabs'
},
'demo-liu'
:
{
'deps'
:
[
'jquery'
],
'deps'
:
[
'jquery'
,
'b-liu-tabs'
],
'exports'
:
'demo-liu'
}
...
...
@@ -95,4 +95,4 @@ require.config ({
}
});
require
([
'require'
,
'jquery'
,
'doT'
,
'layer'
,
"datetimepicker"
,
'bootstrapJs'
,
'pagination'
,
'paginationStart'
,
'checkLogin'
,
'photo-gallery'
,
'b-liu-tabs'
,
'demo-liu'
,
'97datePicker'
,
'app/public'
]);
\ No newline at end of file
require
([
'require'
,
'jquery'
,
'doT'
,
'layer'
,
"datetimepicker"
,
'bootstrapJs'
,
'pagination'
,
'paginationStart'
,
'checkLogin'
,
'photo-gallery'
,
'97datePicker'
,
'app/public'
,
'b-liu-tabs'
,
'demo-liu'
,]);
\ No newline at end of file
public/resource/js/performance_ranking.js
View file @
9d73a55d
define
([
'doT'
,
'ckfinder'
,
'ckfinderStart'
,
'css!style/home.css'
,
"datetimepicker"
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
)
{
define
([
'doT'
,
'text!temp/menu_template_tpl.html'
,
'ckfinder'
,
'ckfinderStart'
,
'css!style/home.css'
,
"datetimepicker"
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
var
performanceRanking
=
{
pageNo
:
1
,
/*第几页*/
...
...
@@ -24,6 +21,54 @@ define (['doT', 'ckfinder','ckfinderStart', 'css!style/home.css',"datetimepicker
event
:
function
()
{
var
that
=
this
;
that
.
initDate
();
//只在首页显示 菜单
menu_bar
(
function
(){
//回调部分
//记录tab的点击状态,对应的标签内容展开,并高亮显示
var
_hash
=
location
.
pathname
.
replace
(
'/admin.php/'
,
'/'
);
var
_tempObj
=
$
(
'[href="'
+
_hash
+
'"]'
);
_tempObj
.
addClass
(
'active-a'
).
siblings
().
removeClass
(
'active-a'
);
_tempObj
.
closest
(
'.dropdown-menu'
).
prev
().
attr
(
'aria-expanded'
,
true
).
parents
().
addClass
(
'open'
).
siblings
().
removeClass
(
'open'
);
});
function
menu_bar
(
fn
)
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
//登录时间无效 直接跳转登录页面
if
(
!
user_info_obj
){
alert
(
'登录失效,请您重新登录'
);
window
.
location
.
href
=
"login.html"
;
}
$
(
"#menu_bar"
).
append
(
template
);
if
(
user_info_obj
)
{
var
temp
=
document
.
getElementById
(
'menu_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#dropdownMenu1"
).
append
(
user_info_obj
[
'name'
]);
$
(
"#menu_bar"
).
html
(
doTtmpl
(
user_info_obj
[
'menu'
]));
//回调
fn
&&
fn
();
}
else
{
$
.
ajax
({
url
:
'/index/getMenu'
,
type
:
'POST'
,
async
:
true
,
data
:
""
,
dataType
:
'json'
,
success
:
function
(
data
)
{
var
temp
=
document
.
getElementById
(
'menu_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#menu_bar"
).
html
(
doTtmpl
(
data
.
data
.
menu
));
//回调
fn
&&
fn
();
}
});
}
}
//只在首页显示 菜单
$
(
document
).
on
(
'click'
,
'.business_more'
,
function
(
e
){
var
id
=
$
(
this
).
attr
(
"id"
);
console
.
log
(
id
);
...
...
public/resource/js/public.js
View file @
9d73a55d
...
...
@@ -24,56 +24,6 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html', 'layer'], function
dataObj
.
init
();
});
}
menu_bar
(
function
(){
//回调部分
//记录tab的点击状态,对应的标签内容展开,并高亮显示
var
_hash
=
location
.
pathname
.
replace
(
'/admin.php/'
,
'/'
);
var
_tempObj
=
$
(
'[href="'
+
_hash
+
'"]'
);
_tempObj
.
addClass
(
'active-a'
).
siblings
().
removeClass
(
'active-a'
);
_tempObj
.
closest
(
'.dropdown-menu'
).
prev
().
attr
(
'aria-expanded'
,
true
).
parents
().
addClass
(
'open'
).
siblings
().
removeClass
(
'open'
);
});
function
menu_bar
(
fn
)
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
//登录时间无效 直接跳转登录页面
if
(
!
user_info_obj
){
alert
(
'登录失效,请您重新登录'
);
window
.
location
.
href
=
"login.html"
;
}
$
(
"#menu_bar"
).
append
(
template
);
if
(
user_info_obj
)
{
var
temp
=
document
.
getElementById
(
'menu_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#dropdownMenu1"
).
append
(
user_info_obj
[
'name'
]);
$
(
"#menu_bar"
).
html
(
doTtmpl
(
user_info_obj
[
'menu'
]));
//回调
fn
&&
fn
();
}
else
{
$
.
ajax
({
url
:
'/index/getMenu'
,
type
:
'POST'
,
async
:
true
,
data
:
""
,
dataType
:
'json'
,
success
:
function
(
data
)
{
var
temp
=
document
.
getElementById
(
'menu_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#menu_bar"
).
html
(
doTtmpl
(
data
.
data
.
menu
));
//回调
fn
&&
fn
();
}
});
}
}
$
(
"#logout"
).
click
(
function
()
{
localStorage
.
removeItem
(
'pcUserInfo'
);
});
...
...
public/resource/lib/js/b-liu.tabs.js
View file @
9d73a55d
...
...
@@ -93,7 +93,7 @@
var
exist
=
false
;
//是否已存在
$
.
each
(
openTabs
,
function
(
i
,
row
){
if
(
row
==
tabId
){
exist
=
tru
e
;
exist
=
fals
e
;
return
false
;
}
});
...
...
@@ -169,7 +169,7 @@
*/
function
bTabsAdd
(
id
,
title
,
url
,
loginCheck
){
return
this
.
each
(
function
(){
if
(
!
id
||
!
title
||
!
url
)
return
;
if
(
!
title
||
!
url
)
return
;
var
$this
=
$
(
this
),
data
=
$this
.
data
(
'bTabs'
);
if
(
data
)
data
.
addTab
(
id
,
title
,
url
,
loginCheck
);
});
...
...
@@ -179,7 +179,7 @@
*/
function
bTabsClose
(
id
){
return
this
.
each
(
function
(){
if
(
!
id
||
!
title
||
!
url
)
return
;
if
(
!
title
||
!
url
)
return
;
var
$this
=
$
(
this
),
data
=
$this
.
data
(
'bTabs'
);
if
(
data
)
data
.
closeTab
(
id
);
});
...
...
public/resource/lib/js/demo-liu.js
View file @
9d73a55d
...
...
@@ -10,11 +10,11 @@ $(function(){
$
(
'div.tab-content'
,
$
(
'#mainFrameTabs'
)).
height
(
contentHeight
);
};
//菜单点击
$
(
'a'
,
$
(
'#menuSideBar'
)).
on
(
'click'
,
function
(
e
)
{
$
(
document
).
on
(
'click'
,
'.menuSideBar a'
,
function
(
e
)
{
e
.
stopPropagation
();
var
li
=
$
(
this
).
closest
(
'li'
);
var
menuId
=
$
(
li
).
attr
(
'mid'
);
var
url
=
$
(
li
).
attr
(
'funurl'
);
var
menuId
=
$
(
this
).
parent
().
attr
(
'data-funurl'
).
replace
(
/
\/
/g
,
''
)
var
url
=
$
(
li
).
attr
(
'
data-
funurl'
);
var
title
=
$
(
this
).
text
();
$
(
'#mainFrameTabs'
).
bTabsAdd
(
menuId
,
title
,
url
);
...
...
public/resource/template/menu_template_tpl.html
View file @
9d73a55d
...
...
@@ -10,9 +10,10 @@
<
span
id
=
"icon_more_menu"
>
<
/span></
a
>
<!--<
img
src
=
"/resource/image/icon_more@2x.png"
id
=
""
/>-->
<
ul
class
=
"dropdown-menu"
role
=
"menu"
>
<
ul
class
=
"dropdown-menu
menuSideBar
"
role
=
"menu"
>
[
%
for
(
var
item_menu
in
it
[
item
][
"_child"
]){
%
]
<
li
funurl
=
"users_list.html"
><
a
href
=
"/[%= it[item]['_child'][item_menu]['name'] %]"
target
=
"_blank"
class
=
"menu-sub-alink"
><
span
class
=
"glyphicon-zhanwei"
><
/span> <span class="span-list">
[
%= it[item
][
"_child"
][
item_menu
][
'title'
]
%]</
span
><
/a></
li
>
<
li
data
-
funurl
=
"/[%= it[item]['_child'][item_menu]['name'] %]"
><
a
href
=
"javascript:void(0);"
class
=
"menu-sub-alink"
><
span
class
=
"glyphicon-zhanwei"
><
/span> <span class="span-list">
[
%= it[item
][
"_child"
][
item_menu
][
'title'
]
%]</
span
><
/a></
li
>
[
%
}
%
]
<
/ul
>
[
%
}
%
]
...
...
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