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
毕凯
2015-12-12 14:17:56 +0800
Commit
a68cc5afd6b10fc936eefb42cb2a3d99454b8525
1 parent
a58ff0a1
添加优惠券搜索
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
static/js/shopping-cart/select-coupon.js
static/sass/shopping-cart/_select-coupon.scss
template/m.yohobuy.com/actions/index/shoppingCart/select-coupon.phtml
static/js/shopping-cart/select-coupon.js
View file @
a68cc5a
...
...
@@ -19,7 +19,14 @@ $('#new-coupon').on('submit', function() {
url
:
''
,
data
:
$
(
this
).
serialize
()
}).
then
(
function
(
res
)
{
if
(
res
.
avaliable
)
{
$
(
'#coupon-list'
).
html
(
conponTmpl
({
coupons
:
res
.
coupons
}));
$
(
'#coupon-list-not'
).
html
(
''
);
}
else
{
tip
.
show
(
res
.
msg
);
}
});
return
false
;
});
...
...
static/sass/shopping-cart/_select-coupon.scss
View file @
a68cc5a
...
...
@@ -9,7 +9,7 @@
input
{
padding
:
0
pxToRem
(
12px
);
width
:
pxToRem
(
38
0
px
);
width
:
pxToRem
(
38
4
px
);
height
:
pxToRem
(
80px
);
border
:
1px
solid
#b0b0b0
;
border-radius
:
.1rem
;
...
...
@@ -18,7 +18,7 @@
.submit
{
margin-left
:
pxToRem
(
30px
);
width
:
pxToRem
(
1
2
0px
);
width
:
pxToRem
(
1
3
0px
);
height
:
pxToRem
(
80px
);
color
:
#fff
;
background
:
#b0b0b0
;
...
...
template/m.yohobuy.com/actions/index/shoppingCart/select-coupon.phtml
View file @
a68cc5a
{
{>
layout/header
}
}
<div
class=
"yoho-page select-coupon-page my-coupon-page"
>
<form
id=
"new-coupon"
method=
"POST"
action=
""
>
<input
type=
"text"
name=
"coupon-code"
value=
""
placeholder=
"输入优惠券
号
码"
>
<input
type=
"text"
name=
"coupon-code"
value=
""
placeholder=
"输入优惠券码"
>
<button
type=
"submit"
class=
"submit"
>确定</button>
</form>
<div
id=
"coupon-list"
class=
"coupon-list"
></div>
...
...
Please
register
or
login
to post a comment