Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
梁志锋
2015-12-21 21:47:36 +0800
Commit
6c3d2e82227f160c2a43baf46cb11125241d77aa
2 parents
081d551b
57686f03
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
18 deletions
static/js/cart/cart.js
static/sass/cart/_gift-advance-good.scss
static/sass/cart/_good.scss
static/sass/cart/_index.scss
static/sass/cart/_select-coupon.scss
template/m.yohobuy.com/partials/cart/good.phtml
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
static/js/cart/cart.js
View file @
6c3d2e8
...
...
@@ -49,6 +49,8 @@ if ($('.cart-nav').length > 0) {
//切换普通商品和预售商品购物车显示
$cartContent
.
toggleClass
(
'hide'
);
hasChecked
=
$
(
'.cart-content:not(.hide) .icon-cb-checked'
).
length
>
0
?
true
:
false
;
//trigger lazyload
$
(
window
).
trigger
(
'scroll'
);
});
...
...
static/sass/cart/_gift-advance-good.scss
View file @
6c3d2e8
...
...
@@ -5,15 +5,6 @@
margin-left
:
34rem
/
$pxConvertRem
;
height
:
160rem
/
$pxConvertRem
;
border-bottom
:
1px
solid
#e0e0e0
;
&
:last-child
{
border-bottom
:
none
;
}
}
.advance-block
.gift-advance-good
:last-child
{
border-bottom
:
none
;
}
.advance-block
:last-child
.gift-advance-good
:last-child
{
...
...
static/sass/cart/_good.scss
View file @
6c3d2e8
...
...
@@ -111,6 +111,11 @@
.price
{
font-size
:
0
.6rem
;
color
:
$cartRed
;
display
:
inline
;
.sale-price
{
color
:
#b0b0b0
;
text-decoration
:
line-through
;
}
}
.count
{
...
...
static/sass/cart/_index.scss
View file @
6c3d2e8
...
...
@@ -140,10 +140,11 @@
>
li
{
box-sizing
:
border-box
;
height
:
90rem
/
$pxConvertRem
;
line-height
:
90rem
/
$pxConvertRem
;
height
:
80rem
/
$pxConvertRem
;
line-height
:
80rem
/
$pxConvertRem
;
margin-bottom
:
10rem
/
$pxConvertRem
;
padding
:
0
20rem
/
$pxConvertRem
;
background
:
#f1f1f1
;
&
:last-child
{
margin-bottom
:
0
;
...
...
static/sass/cart/_select-coupon.scss
View file @
6c3d2e8
...
...
@@ -49,7 +49,7 @@
.not-use
{
display
:
block
;
width
:
pxToRem
(
560px
);
margin
:
pxToRem
(
30px
)
auto
;
margin
:
pxToRem
(
30px
)
auto
0
;
text-align
:
center
;
font-size
:
pxToRem
(
32px
);
line-height
:
2
.5
;
...
...
template/m.yohobuy.com/partials/cart/good.phtml
View file @
6c3d2e8
...
...
@@ -41,10 +41,12 @@
</p>
</div>
<p class="row">
<span class="price">
¥{{price}}
</span>
<p class="price">
<span class="market-price">¥{{price}}</span>
{{#if isAdvanceBuy}}
<span class="sale-price">¥{{salesPrice}}</span>
{{/if}}
</p>
{{#if isVipPrice}}
<span class="vip">
VIP
...
...
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
6c3d2e8
...
...
@@ -555,8 +555,8 @@ class CartModel
$notAvailableRes
=
self
::
searchCoupon
(
$uid
,
$val
[
'couponCode'
]);
// 处理可用的优惠券
if
(
$val
[
'isValidity'
]
===
'N'
||
(
isset
(
$notAvailableRes
[
'code'
])
&&
$notAvailableRes
[
'code'
]
!==
200
))
{
// $val['notAvailable'] = true;
continue
;
$val
[
'notAvailable'
]
=
true
;
// continue;
}
$result
[]
=
$val
;
}
...
...
Please
register
or
login
to post a comment