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
512474ce
Commit
512474ce
authored
Nov 13, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pk列表 修改
parent
bfe7df66
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
6 deletions
+28
-6
pkListCon.html
application/index/view/pkList/pkListCon.html
+1
-4
pkList.js
public/resource/js/pkList.js
+27
-2
No files found.
application/index/view/pkList/pkListCon.html
View file @
512474ce
...
...
@@ -136,10 +136,7 @@
<div
class=
"pk-container-detail-header"
>
<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>
<select
class=
"results-pk"
id=
"realtime_city_choose"
>
<option
value=
""
>
城市筛选
</option>
<option
value=
"10001"
>
上海市
</option>
<option
value=
"10002"
>
杭州市
</option>
<select
class=
"results-pk"
>
</select>
<img
src=
"/resource/image/gold@1x.png"
class=
"img-gold"
/>
</div>
...
...
public/resource/js/pkList.js
View file @
512474ce
define
([
'doT'
,
'text!temp/pk_list_template_tpl.html.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
pkList
=
{
pageNo
:
1
,
/*第几页*/
...
...
@@ -11,6 +10,7 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
pkList
.
getCitySite
();
pkList
.
getList
(
0
);
pkList
.
event
();
},
...
...
@@ -107,7 +107,31 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
};
}
});
}
},
getCitySite
:
function
(){
//显示 隐藏城市 默认显示 当前账号 所在城市
$
.
ajax
({
url
:
'/index/getSiteList'
,
type
:
'GET'
,
async
:
true
,
data
:
{
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
console
.
log
(
88
)
var
str
=
''
;
$
.
each
(
data
.
data
.
list
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
city
+
'</option>'
;
});
$
(
".results-pk"
).
append
(
str
);
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
$
(
'.results-pk'
).
val
(
user_info_obj
.
site_id
);
}
}
});
},
};
return
pkList
;
});
\ 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