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
dc7600855ab9a8d53c939708a27cbd1f12279805
1 parent
c4f013fe
购物车功能
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
23 deletions
static/js/shopping-cart/good.js
static/sass/shopping-cart/_good.scss
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 @
dc76008
...
...
@@ -78,6 +78,23 @@ $('.cart-goods').on('touchstart', '.checkbox', function() {
tip
.
show
(
'网络错误'
);
});
}).
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');
//}
}).
on
(
'touchstart'
,
'.icon-del'
,
function
(
e
)
{
var
$this
=
$
(
this
);
...
...
@@ -151,7 +168,7 @@ $('.cart-goods').on('touchstart', '.checkbox', function() {
$
(
'.btn-balance'
).
on
(
'touchend'
,
function
()
{
window
.
location
.
href
=
'/shoppingCart/orderEnsure?cartType='
;
window
.
location
.
href
=
'/shoppingCart/orderEnsure?cartType='
+
'ordinary'
;
});
$
(
'.down'
).
on
(
'touchend'
,
function
()
{
...
...
static/sass/shopping-cart/_good.scss
View file @
dc76008
...
...
@@ -199,25 +199,13 @@
font-size
:
52em
/
$pxConvertRem
;
font-weight
:
bold
;
}
.count
{
.count
{
position
:
absolute
;
right
:
20rem
/
$pxConvertRem
;;
top
:
20rem
/
$pxConvertRem
;;
font-size
:
52em
/
$pxConvertRem
;
.good-detail-img
{
.few-tag
{
position
:
absolute
;
bottom
:
0
;
width
:
100%
;
height
:
28rem
/
$pxConvertRem
;
background
:
#ffac5b
;
font-size
:
18rem
/
$pxConvertRem
;
color
:
#fff
;
line-height
:
28rem
/
$pxConvertRem
;
text-align
:
center
;
}
}
}
...
...
template/m.yohobuy.com/actions/index/shoppingCart/index.phtml
View file @
dc76008
...
...
@@ -66,7 +66,6 @@
<a
href=
""
>随便逛逛</a>
</div>
{
{>
product/recommend-for-you
}
}
{
{>
shopping-cart/chose-panel
}
}
</div>
{
{>
shopping-cart/chose-panel
}
}
...
...
template/m.yohobuy.com/partials/shopping-cart/good.phtml
View file @
dc76008
...
...
@@ -9,10 +9,6 @@
{{/if}}
<div class="info">
<img class="thumb lazy" data-original={{thumb}}>
<!-- <div class="deps">
<div class="">
<a class="" href="{{url}}">
<img class="thumb lazy" data-original="{{thumb}}">
...
...
@@ -29,7 +25,7 @@
{{/if}}
</div>
<div class="deps">
<div class="deps
show
">
<p class="name row">{{name}}</p>
<p class="row">
{{#if color}}
...
...
@@ -76,8 +72,8 @@
</span>
{{/if}}
</p>
</div> -->
<div class="calculate-num">
</div>
<div class="calculate-num hide">
<div class="calculate">
<p><i class="iconfont cut"></i><span>{{count}}</span><i class="iconfont add"></i></p>
<p><span>颜色:{{color}}尺码:{{size}}{{name}}</span><i class="iconfont down"></i></p>
...
...
Please
register
or
login
to post a comment