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
d2827232
Commit
d2827232
authored
Jul 13, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
约带看修改
parent
adaea21e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
19 deletions
+27
-19
users_list.html
application/index/view/member/users_list.html
+1
-1
user.js
public/resource/js/user.js
+26
-18
No files found.
application/index/view/member/users_list.html
View file @
d2827232
...
@@ -801,7 +801,7 @@
...
@@ -801,7 +801,7 @@
</div>-->
</div>-->
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
<span
class=
"fore-span ld-Marheight"
>
预计到场时间:
</span>
<span
class=
"fore-span ld-Marheight"
>
预计到场时间:
</span>
<
input
class=
"form-control btn6 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
""
name=
" "
type=
"datetime-local"
>
<
!--<input class="form-control btn6 ld-Marheight" value="" data-rule-phoneus="false" data-rule-required="false" id="" name=" " type="datetime-local">--
>
<!--datetime-local-->
<!--datetime-local-->
<!--bootstrap 时间控件-->
<!--bootstrap 时间控件-->
<input
type=
"text"
value=
""
class=
"form_datetime form-control btn6 ld-Marheight"
id=
"look_shop_date"
readonly=
"readonly"
>
<input
type=
"text"
value=
""
class=
"form_datetime form-control btn6 ld-Marheight"
id=
"look_shop_date"
readonly=
"readonly"
>
...
...
public/resource/js/user.js
View file @
d2827232
...
@@ -16,19 +16,30 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
...
@@ -16,19 +16,30 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
user
.
getList
();
user
.
getList
();
user
.
event
();
user
.
event
();
//时间控件初始化
//时间控件初始化
// $('#datetimepicker').datetimepicker({
// format: 'yyyy-MM-dd',
// language: 'zh-CN',
// pickTime: false
// }).on('changeDate',function(){
// $(this).datetimepicker('hide');
// });
//bootstrap 时间控件选择
//bootstrap 时间控件选择
//汉化实现
;(
function
(
$
){
$
.
fn
.
datetimepicker
.
dates
[
'zh-CN'
]
=
{
days
:
[
"星期日"
,
"星期一"
,
"星期二"
,
"星期三"
,
"星期四"
,
"星期五"
,
"星期六"
,
"星期日"
],
daysShort
:
[
"周日"
,
"周一"
,
"周二"
,
"周三"
,
"周四"
,
"周五"
,
"周六"
,
"周日"
],
daysMin
:
[
"日"
,
"一"
,
"二"
,
"三"
,
"四"
,
"五"
,
"六"
,
"日"
],
months
:
[
"01"
,
"02"
,
"03"
,
"04"
,
"05"
,
"06"
,
"07"
,
"08"
,
"09"
,
"10"
,
"11"
,
"12"
],
monthsShort
:
[
"01"
,
"02"
,
"03"
,
"04"
,
"05"
,
"06"
,
"07"
,
"08"
,
"09"
,
"10"
,
"11"
,
"12"
],
today
:
"今日"
,
suffix
:
[],
meridiem
:
[
"am"
,
"pm"
],
weekStart
:
1
,
};
}(
jQuery
));
$
(
".form_datetime"
).
datetimepicker
({
$
(
".form_datetime"
).
datetimepicker
({
format
:
'yyyy-MM-dd HH:mm
'
,
format
:
'yyyy-mm-dd hh:ii:ss
'
,
autoclose
:
true
,
autoclose
:
true
,
language
:
'zh-CN'
,
language
:
'zh-CN'
,
minuteStep
:
1
minView
:
0
,
minuteStep
:
5
});
});
},
},
event
:
function
()
{
event
:
function
()
{
...
@@ -296,7 +307,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
...
@@ -296,7 +307,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
arr_look
[
i
]
=
$
(
'.look-shop'
).
eq
(
i
).
attr
(
'data-id'
);
arr_look
[
i
]
=
$
(
'.look-shop'
).
eq
(
i
).
attr
(
'data-id'
);
}
}
}
}
// if(user_info_obj.id==1){
// if(user_info_obj.id==1){
// alert('当前用户没有权限提交约带看');
// alert('当前用户没有权限提交约带看');
...
@@ -306,18 +316,16 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
...
@@ -306,18 +316,16 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
if
(
arr_look
.
length
<
0
||
arr_look
.
length
==
0
){
if
(
arr_look
.
length
<
0
||
arr_look
.
length
==
0
){
alert
(
'请选择约带看商铺'
);
alert
(
'请选择约带看商铺'
);
return
false
;
return
false
;
}
}
if
(
$
(
"#look_shop_date"
).
val
()
==
''
){
var
look_shop_date_val
=
$
(
"#look_shop_date"
).
val
();
if
(
look_shop_date_val
==
''
){
alert
(
'请选择预计到场时间'
);
alert
(
'请选择预计到场时间'
);
return
false
;
return
false
;
}
}
var
start_
=
$
(
"#look_shop_date"
).
val
()
+
":00"
;
var
_temp_date
=
new
Date
(
look_shop_date_val
+
':000'
);
//格式为2018-07-14 10:30:05:000
var
start_a
=
start_
.
replace
(
'T'
,
' '
);
console
.
log
(
_temp_date
);
console
.
log
(
start_a
);
var
start_time
=
_temp_date
.
getTime
();
date_start
=
new
Date
(
Date
.
parse
(
start_a
.
replace
(
/-/g
,
"/"
)));
console
.
log
(
start_time
);
var
start_time
=
date_start
.
getTime
()
*
0.001
;
// 2018-07-14T09:06 00:00:00
if
(
!
user
.
isAjaxSaving
){
if
(
!
user
.
isAjaxSaving
){
user
.
isAjaxSaving
=
true
;
user
.
isAjaxSaving
=
true
;
$
.
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