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
uedxwg
9 years ago
Commit
d2121f58f2148b6b6f1ceb1c7ad04c80db62ce02
2 parents
c84f5fb5
c507f262
Merge branch 'feature/cart' of
http://git.dev.yoho.cn/web/yohobuy
into feature/cart
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
44 deletions
static/js/shopping-cart/good.js
template/m.yohobuy.com/actions/index/shoppingCart/index.phtml
template/m.yohobuy.com/partials/shopping-cart/good.phtml
static/js/shopping-cart/good.js
View file @
d2121f5
...
...
@@ -79,22 +79,18 @@ $('.cart-goods').on('touchstart', '.checkbox', function() {
});
}).
on
(
'touchstart'
,
'.icon-edit'
,
function
()
{
//var $this = $(this);
//
//var $cartgood = $this.closest('.shopping-cart-good');
//
////var id = $this.closest('.shopping-cart-good').data('id');
//
//var $viewGood = $cartgood.find('.deps');
// $editGoot = $cartgood.find('.calculate-num');
//
//if ($viewGood.hasClass('show')) {
// $viewGood.removeClass('show').addClass('hide');
// $editGoot.removeClass('hide').addClass('show');
//} else {
// $viewGood.removeClass('hide').addClass('show');
// $editGoot.removeClass('show').addClass('hide');
//}
var
$this
=
$
(
this
),
$cartgood
=
$this
.
closest
(
'.shopping-cart-good'
),
$viewGood
=
$cartgood
.
find
(
'.deps'
),
$editGoot
=
$cartgood
.
find
(
'.calculate-num'
);
if
(
$viewGood
.
hasClass
(
'show'
))
{
$viewGood
.
removeClass
(
'show'
).
addClass
(
'hide'
);
$editGoot
.
removeClass
(
'hide'
).
addClass
(
'show'
);
}
else
{
$viewGood
.
removeClass
(
'hide'
).
addClass
(
'show'
);
$editGoot
.
removeClass
(
'show'
).
addClass
(
'hide'
);
}
}).
on
(
'touchstart'
,
'.icon-del'
,
function
(
e
)
{
...
...
template/m.yohobuy.com/actions/index/shoppingCart/index.phtml
View file @
d2121f5
...
...
@@ -41,23 +41,8 @@
{
{>
shopping-cart/cart-content
}
}
</div>
{
{/
preSellCart
}
}
{
{/
shoppingCart
}
}
</div>
<div
id=
"advanceBuy"
class=
"shopping-cart-page yoho-page hide"
>
{
{#
shoppingCart
}
}
{
{#
commonCart
}
}
{
{#
advanceBuy
}
}
<span>
{
{promotionTitle
}
}
</span>
{
{#
goods
}
}
{
{>
shopping-cart/gift-advance-good
}
}
{
{/
goods
}
}
{
{/
advanceBuy
}
}
{
{/
commonCart
}
}
{
{/
shoppingCart
}
}
</div>
<div
class=
"shopping-cart-zero yoho-page hide"
>
<div
class=
"cart-zero"
>
...
...
@@ -67,6 +52,5 @@
</div>
{
{>
product/recommend-for-you
}
}
</div>
{
{>
shopping-cart/chose-panel
}
}
{
{>
layout/footer
}
}
\ No newline at end of file
{
{>
shopping-cart/chose-panel
}
}
{
{>
layout/footer
}
}
...
...
template/m.yohobuy.com/partials/shopping-cart/good.phtml
View file @
d2121f5
<div class="shopping-cart-good clearfix" data-id={{id}}>
{{#if isSoldOut}}
<p class="">失效</p>
<span class="checkbox icon-cb-checked iconfont"></span>
<!-- {{#if isSoldOut}}
<p class="">失效</p>
{{^}}
{{#if isGift}}
{{^}}
<span class="checkbox icon-cb-checked iconfont"></span>
{{/if}}
{{#if isGift}}
{{^}}
<span class="checkbox icon-cb-checked iconfont"></span>
{{/if}}
<div class="">
<a class="" href="{{url}}">
{{/if}}-->
<div class="info">
<img class="thumb lazy" data-original={{thumb}}>
<!--
<a class="" href="{{url}}">
<img class="thumb lazy" data-original="{{thumb}}">
</a>
{{#if isAdvanceBuy}}
...
...
@@ -23,7 +25,8 @@
{{#if isSoldOut}}
<p class="few-tag">失效</p>
{{/if}}
</div>
-->
<div class="deps show">
<p class="name row">{{name}}</p>
...
...
Please
register
or
login
to post a comment