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
12ef4039
Commit
12ef4039
authored
Apr 24, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
时间初始化
parent
6f5ad834
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
houseList.js
public/resource/js/houseList.js
+15
-14
No files found.
public/resource/js/houseList.js
View file @
12ef4039
...
...
@@ -407,20 +407,21 @@ define (['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css','ckfin
var
params
=
{};
// 获取当前的时间
if
(
pageNo
!=
1
){
var
myDate
=
new
Date
();
var
y
=
myDate
.
getFullYear
();
var
m
=
myDate
.
getMonth
()
+
1
;
var
d
=
myDate
.
getDate
();
var
m1
=
m
+
1
;
if
(
m1
==
13
){
m1
=
1
;
}
var
day_start
=
y
+
'-'
+
(
m
<
10
?(
'0'
+
m
):
m
)
+
'-'
+
(
d
<
10
?(
'0'
+
d
):
d
);
var
day_end
=
y
+
'-'
+
(
m1
<
10
?(
'0'
+
m1
):
m1
)
+
'-'
+
(
d
<
10
?(
'0'
+
d
):
d
);
$
(
'#start_date'
).
val
(
day_start
);
$
(
'#end_date'
).
val
(
day_end
);
}
// if(pageNo!=1){
// var myDate = new Date();
// var y = myDate.getFullYear();
// var m = myDate.getMonth()+1;
// var d = myDate.getDate();
// var m1=m-1;
// if(m1==0){
// m1=12;
// }
// var day_end=y+'-'+(m<10?('0'+m):m)+'-'+(d<10?('0'+d):d);
// var day_start=y+'-'+(m1<10?('0'+m1):m1)+'-'+(d<10?('0'+d):d);
// $('#start_date').val(day_start);
// $('#end_date').val(day_end);
// // alert(55)
// }
params
.
pageNo
=
business
.
pageNo
;
...
...
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