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
88b0b40f
Commit
88b0b40f
authored
Nov 13, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
07844009
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
12 deletions
+29
-12
pkListCon.html
application/index/view/pkList/pkListCon.html
+7
-4
pkList.js
public/resource/js/pkList.js
+22
-8
No files found.
application/index/view/pkList/pkListCon.html
View file @
88b0b40f
...
@@ -92,7 +92,7 @@
...
@@ -92,7 +92,7 @@
line-height
:
30px
;
line-height
:
30px
;
background-color
:
rgba
(
255
,
147
,
24
,
.1
);
background-color
:
rgba
(
255
,
147
,
24
,
.1
);
display
:
inline-block
;
display
:
inline-block
;
margin-right
:
1
5
px
;
margin-right
:
1
0
px
;
text-align
:
center
;
text-align
:
center
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
line-height
:
30px
;
line-height
:
30px
;
background-color
:
rgba
(
255
,
147
,
24
);
background-color
:
rgba
(
255
,
147
,
24
);
display
:
inline-block
;
display
:
inline-block
;
margin-right
:
1
5
px
;
margin-right
:
1
0
px
;
text-align
:
center
;
text-align
:
center
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
...
@@ -129,6 +129,7 @@
...
@@ -129,6 +129,7 @@
overflow
:
hidden
;
overflow
:
hidden
;
display
:
none
;
display
:
none
;
}
}
</style>
</style>
<div
id=
"page-content-wrapper"
>
<div
id=
"page-content-wrapper"
>
<div
class=
"container pk-container"
>
<div
class=
"container pk-container"
>
...
@@ -136,8 +137,8 @@
...
@@ -136,8 +137,8 @@
<div
class=
"pk-container-detail-header"
>
<div
class=
"pk-container-detail-header"
>
<span
class=
"margain-right-10 pk-yeji-bang"
>
业绩PK榜
</span>
<span
class=
"margain-right-10 pk-yeji-bang"
>
业绩PK榜
</span>
<span
class=
"margain-right-10 pk-yeji-time"
>
(2018.11.01-2018.11.16)
</span>
<span
class=
"margain-right-10 pk-yeji-time"
>
(2018.11.01-2018.11.16)
</span>
<select
class=
"results-pk"
>
<
!--<
select class="results-pk">
</select>
</select>
-->
<img
src=
"/resource/image/gold@1x.png"
class=
"img-gold"
/>
<img
src=
"/resource/image/gold@1x.png"
class=
"img-gold"
/>
</div>
</div>
<div
class=
"pk-container-detail-con"
>
<div
class=
"pk-container-detail-con"
>
...
@@ -177,6 +178,8 @@
...
@@ -177,6 +178,8 @@
<span
class=
"a-span ld-Marheight"
data-id=
'24'
>
X
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'24'
>
X
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'25'
>
Y
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'25'
>
Y
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'26'
>
Z
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'26'
>
Z
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'27'
>
Z1
</span>
</div>
</div>
<div
class=
"pk_list_content"
>
<div
class=
"pk_list_content"
>
<table
id=
"pk_list"
class=
"table"
>
<table
id=
"pk_list"
class=
"table"
>
...
...
public/resource/js/pkList.js
View file @
88b0b40f
...
@@ -7,6 +7,7 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
...
@@ -7,6 +7,7 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
/*每页显示多少条*/
/*每页显示多少条*/
mainTabIndex
:
1
,
mainTabIndex
:
1
,
mainTabIndexTwo
:
0
,
mainTabIndexTwo
:
0
,
mainTabArr
:
[],
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
$
(
document
.
body
).
append
(
template
);
$
(
document
.
body
).
append
(
template
);
...
@@ -24,28 +25,32 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
...
@@ -24,28 +25,32 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
_this
.
removeClass
(
'team-span'
).
addClass
(
'team-span-active'
).
siblings
().
removeClass
(
'team-span-active'
).
addClass
(
'team-span'
);
_this
.
removeClass
(
'team-span'
).
addClass
(
'team-span-active'
).
siblings
().
removeClass
(
'team-span-active'
).
addClass
(
'team-span'
);
if
(
_this
.
index
()
==
0
){
if
(
_this
.
index
()
==
0
){
pkList
.
mainTabIndex
=
1
pkList
.
mainTabIndex
=
1
}
}
;
if
(
_this
.
index
()
==
1
){
if
(
_this
.
index
()
==
1
){
pkList
.
mainTabIndex
=
2
;
pkList
.
mainTabIndex
=
2
;
}
}
;
if
(
_this
.
index
()
==
2
){
if
(
_this
.
index
()
==
2
){
pkList
.
mainTabIndex
=
3
;
pkList
.
mainTabIndex
=
3
;
}
}
;
if
(
_this
.
index
()
==
3
){
if
(
_this
.
index
()
==
3
){
pkList
.
mainTabIndex
=
4
;
pkList
.
mainTabIndex
=
4
;
}
}
;
if
(
_this
.
index
()
==
4
){
if
(
_this
.
index
()
==
4
){
pkList
.
mainTabIndex
=
0
;
pkList
.
mainTabIndex
=
0
;
}
};
$
(
".pk-container-detail-a>span"
).
eq
(
0
).
removeClass
(
'a-span'
).
addClass
(
'a-span-active'
).
siblings
().
removeClass
(
'a-span-active'
).
addClass
(
'a-span'
);
pkList
.
mainTabIndexTwo
=
0
;
pkList
.
getList
();
});
});
_doc
.
on
(
'click'
,
'.pk-container-detail-a>span'
,
function
(
e
){
_doc
.
on
(
'click'
,
'.pk-container-detail-a>span'
,
function
(
e
){
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
_this
.
removeClass
(
'a-span'
).
addClass
(
'a-span-active'
).
siblings
().
removeClass
(
'a-span-active'
).
addClass
(
'a-span'
);
_this
.
removeClass
(
'a-span'
).
addClass
(
'a-span-active'
).
siblings
().
removeClass
(
'a-span-active'
).
addClass
(
'a-span'
);
pkList
.
mainTabIndexTwo
=
_this
.
attr
(
'data-id'
);
pkList
.
mainTabIndexTwo
=
_this
.
attr
(
'data-id'
)
*
1
-
1
;
pkList
.
getList
(
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'pk_list_tpl'
).
innerHTML
);
$
(
"#pk_list"
).
html
(
doTtmpl
(
pkList
.
mainTabArr
[
pkList
.
mainTabIndexTwo
]));
});
});
$
(
"#export"
).
click
(
function
()
{
//导出列表
$
(
"#export"
).
click
(
function
()
{
//导出列表
...
@@ -72,6 +77,7 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
...
@@ -72,6 +77,7 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
},
},
getList
:
function
(
pageNo
)
{
getList
:
function
(
pageNo
)
{
$
(
".pk-container-detail-a>span"
).
hide
();
var
params
=
{};
var
params
=
{};
params
.
position
=
pkList
.
mainTabIndex
;
params
.
position
=
pkList
.
mainTabIndex
;
params
.
AuthToken
=
user_info_obj
.
AuthToken
;
params
.
AuthToken
=
user_info_obj
.
AuthToken
;
...
@@ -86,7 +92,14 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
...
@@ -86,7 +92,14 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
},
},
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
typeof
data
===
'object'
)
{
var
_length
=
data
.
data
.
length
;
if
(
_length
>=
26
){
_length
=
26
;
}
$
(
".pk-container-detail-a>span"
).
eq
(
_length
).
prevAll
().
show
();
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
pkList
.
mainTabArr
=
data
.
data
;
console
.
log
(
pkList
.
mainTabArr
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'pk_list_tpl'
).
innerHTML
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'pk_list_tpl'
).
innerHTML
);
$
(
"#pk_list"
).
html
(
doTtmpl
(
data
.
data
[
pkList
.
mainTabIndexTwo
]));
$
(
"#pk_list"
).
html
(
doTtmpl
(
data
.
data
[
pkList
.
mainTabIndexTwo
]));
add_page
(
data
.
data
.
total
,
pageNo
,
pkList
.
pageSize
,
pkList
.
getList
);
add_page
(
data
.
data
.
total
,
pageNo
,
pkList
.
pageSize
,
pkList
.
getList
);
...
@@ -108,6 +121,7 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
...
@@ -108,6 +121,7 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
}
}
});
});
},
},
getCitySite
:
function
(){
getCitySite
:
function
(){
//显示 隐藏城市 默认显示 当前账号 所在城市
//显示 隐藏城市 默认显示 当前账号 所在城市
$
.
ajax
({
$
.
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