Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-portal-fe
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
weiqingting
2016-05-23 11:54:26 +0800
Commit
cbc245bc5220c19454809ee8d55cdc1188998513
2 parents
91d3db35
2350ef60
Merge branch 'release/qqtest' of
http://git.dev.yoho.cn/platform/yohobuy-portal-…
…fe into release/qqtest
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
client/js/activity/edit.js
client/js/market/limitcode-edit.js
server/views/pages/activity/edit.html
client/js/activity/edit.js
View file @
cbc245b
...
...
@@ -44,6 +44,11 @@ $("#beginTimeStr,#endTimeStr").change(function() {
});
e
.
init
();
e
.
on
(
"validate"
,
function
()
{
if
(
new
Date
(
$
(
"#beginTimeStr"
).
val
()).
getTime
()
>=
new
Date
(
$
(
"#endTimeStr"
).
val
()).
getTime
())
{
return
"开始时间必须小于结束时间"
;
}
});
e
.
on
(
"validate"
,
function
()
{
var
bkStyle
=
[];
...
...
client/js/market/limitcode-edit.js
View file @
cbc245b
...
...
@@ -170,7 +170,7 @@ $(document).on("click","#save_brand", function() {
if
(
e
.
validate
()
&&
(
type
==
"add"
?
(
!
editBean
.
limitSkn
||
!
Bll
.
__checkSkn
())
:
true
))
{
if
(
editBean
.
limitCodeType
==
"U"
)
{
for
(
var
i
in
editBean
.
skusInfo
)
{
if
(
!
editBean
.
skusInfo
[
i
].
skuTimes
)
{
if
(
!
editBean
.
skusInfo
[
i
].
skuTimes
||
editBean
.
skusInfo
[
i
].
skuTimes
==
"0"
)
{
common
.
util
.
__tip
(
"SKU数量不能为0"
);
return
;
}
...
...
server/views/pages/activity/edit.html
View file @
cbc245b
...
...
@@ -44,10 +44,10 @@
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
活动时间
<span
class=
"red"
>
*
</span></label>
<div
class=
"col-sm-3"
>
<input
type=
"text"
class=
"form-control"
jsaction=
"time
:end:endTimeStr
"
id=
"beginTimeStr"
required
placeholder=
"活动开始时间"
value=
"{{beginTimeStr}}"
readonly
>
<input
type=
"text"
class=
"form-control"
jsaction=
"time"
id=
"beginTimeStr"
required
placeholder=
"活动开始时间"
value=
"{{beginTimeStr}}"
readonly
>
</div>
<div
class=
"col-sm-3"
>
<input
type=
"text"
class=
"form-control"
jsaction=
"time
:start:beginTimeStr
"
id=
"endTimeStr"
required
placeholder=
"活动结束时间"
value=
"{{endTimeStr}}"
readonly
>
<input
type=
"text"
class=
"form-control"
jsaction=
"time"
id=
"endTimeStr"
required
placeholder=
"活动结束时间"
value=
"{{endTimeStr}}"
readonly
>
</div>
<div
class=
"col-sm-3"
>
<label
class=
"control-label"
id=
"totalHours"
></label>
...
...
Please
register
or
login
to post a comment