Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
毕凯
9 years ago
Commit
ffdda0ebeeeea64196540de7dbae66b0a4e65d8a
1 parent
b968e70a
增加不使用优惠券功能
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
static/js/cart/select-coupon.js
static/sass/cart/_select-coupon.scss
template/m.yohobuy.com/actions/cart/index/select-coupon.phtml
static/js/cart/select-coupon.js
View file @
ffdda0e
...
...
@@ -55,6 +55,12 @@ $('#coupon-list').on('touchend', '.employ-main', function() {
orderInfo
(
'couponValue'
,
$this
.
data
(
'coupon-value'
));
});
$
(
'body'
).
on
(
'touchend'
,
'.not-use'
,
function
()
{
orderInfo
(
'couponCode'
,
null
);
orderInfo
(
'couponValue'
,
null
);
});
$newCoupon
.
find
(
'input'
).
on
(
'input'
,
function
()
{
if
(
$
(
this
).
val
()
!==
''
)
{
$newCoupon
.
find
(
'.submit'
).
css
(
'background'
,
'#444'
);
...
...
static/sass/cart/_select-coupon.scss
View file @
ffdda0e
...
...
@@ -46,6 +46,17 @@
height
:
0
;
}
.not-use
{
display
:
block
;
width
:
pxToRem
(
560px
);
margin
:
pxToRem
(
30px
)
auto
;
text-align
:
center
;
font-size
:
pxToRem
(
32px
);
line-height
:
2
.5
;
border
:
1px
solid
#444
;
@include
border-radius
(
4px
);
}
.not-avaliable-coupon-line
{
position
:
relative
;
margin-top
:
pxToRem
(
30px
);
...
...
template/m.yohobuy.com/actions/cart/index/select-coupon.phtml
View file @
ffdda0e
...
...
@@ -20,6 +20,7 @@
</a>
\
{
{/
notAvailable
}
}
\
{
{/coupons
}
}
<a
class=
"not-use"
href=
"/cart/index/orderEnsure"
>不使用任何优惠券</a>
</script>
<script
id=
"tmpl-coupon-not-avaliable"
type=
"text/tmpl"
>
\
{
{#
notAvailableCoupons
}
}
...
...
Please
register
or
login
to post a comment