Toggle navigation
Toggle navigation
This project
Loading...
Sign in
liuloulou
/
yohobuy-portal-fe2
·
Commits
Go to a project
GitLab
Go to dashboard
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
Email Patches
Plain Diff
Browse Files
Authored by
pangjie
9 years ago
Commit
8825201c11b725ad836a15d981ca6a68fabb037a
1 parent
ce857747
有效状态优惠券编辑
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
code/apps/marketing/views/CouponList/AddOrUpdate.html
code/static/js.jquery/module/marketing/CouponList/AddOrUpdate.js
code/apps/marketing/views/CouponList/AddOrUpdate.html
View file @
8825201
...
...
@@ -44,9 +44,9 @@
<
div
class
=
"form-group"
>
<
label
class
=
"col-sm-2 control-label"
>
类型
<
span
class
=
"red"
>*<
/span></
label
>
<
div
class
=
"col-sm-8"
>
<
div
class
=
"col-sm-8"
>
<
select
id
=
"filter-couponType"
tabindex
=
"-1"
class
=
"select2-offscreen brandBtn-group observe"
value
=
"[[couponType]]"
data
-
field
=
"couponType"
required
>
value
=
"[[couponType]]"
data
-
field
=
"couponType"
required
[[
if
status
==
1
]]
disabled
[[
/if]]
>
<
option
value
=
"-1"
>
优惠券类型
<
/option
>
<
option
value
=
"1"
>
A
券
<
/option
>
<
option
value
=
"2"
>
B
券
<
/option
>
...
...
@@ -242,7 +242,7 @@
<
div
class
=
"col-sm-4"
>
<
input
type
=
"text"
match
=
"numbers"
class
=
"form-control observe "
data
-
field
=
"couponAmount"
value
=
"[[couponAmount]]"
required
placeholder
=
"面额"
>
value
=
"[[couponAmount]]"
[[
if
status
==
1
]]
disabled
[[
/if]]
required placeholder="面额"
>
<
/div
>
<
label
class
=
"col-sm-1 control-label"
>
元
<
/label
>
<
/div
>
...
...
code/static/js.jquery/module/marketing/CouponList/AddOrUpdate.js
View file @
8825201
...
...
@@ -94,14 +94,14 @@ var Bll = {
}
}
},
//modified by jie.pang@yoho.cn:20160812 去掉隐藏的功能
checkSortNum
:
function
()
{
if
(
$
(
'.sort-wrap'
).
find
(
'.row'
).
size
()
>
1
)
{
$
(
'.sort-wrap'
).
find
(
'.row'
).
find
(
'.add-sort-btn'
).
hide
().
end
().
find
(
'.del-sort-btn'
).
show
();
$
(
'.sort-wrap'
).
find
(
'.row:last'
).
find
(
'.add-sort-btn'
).
show
().
end
().
find
(
'.del-sort-btn'
).
show
();
}
else
{
$
(
'.sort-wrap'
).
find
(
'.row:first'
).
find
(
'.add-sort-btn'
).
show
().
end
().
find
(
'.del-sort-btn'
).
hide
();
}
// if ($('.sort-wrap').find('.row').size() > 1) {
// $('.sort-wrap').find('.row').find('.add-sort-btn').hide().end().find('.del-sort-btn').show();
// $('.sort-wrap').find('.row:last').find('.add-sort-btn').show().end().find('.del-sort-btn').show();
// } else {
// $('.sort-wrap').find('.row:first').find('.add-sort-btn').show().end().find('.del-sort-btn').hide();
// }
},
setTabTree
:
function
()
{
//分类数据,设置tabTree
var
data
=
{},
NUMN
=
{};
...
...
@@ -247,6 +247,8 @@ var initSort = function () {//初始化分类弹框
}
couponBean
.
sortLimit
=
ids
.
join
(
','
);
}
else
{
couponBean
.
sortLimit
=
""
;
}
if
(
Bll
.
selectSorts
.
length
>
0
)
{
var
sorts
=
[],
sortList
=
[];
...
...
@@ -262,6 +264,9 @@ var initSort = function () {//初始化分类弹框
couponBean
.
sortsList
=
sortList
.
join
(
";"
);
Bll
.
__render
(
couponBean
,
type
);
}
else
{
couponBean
.
sortsList
=
""
;
Bll
.
__render
(
couponBean
,
type
);
}
},
css
:
"btn btn-primary"
...
...
Please
register
or
login
to post a comment