Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
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
Email Patches
Plain Diff
Browse Files
Authored by
梁志锋
9 years ago
Commit
8eee9974992e7487e0ff8d5589f225a5345c1151
1 parent
021a15af
master
...
beta
develop
购物车路由修改
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
12 deletions
static/js/cart/cart.js
static/js/cart/good.js
static/js/cart/cart.js
View file @
8eee997
...
...
@@ -8,8 +8,7 @@ var $ = require('jquery'),
lazyLoad
=
require
(
'yoho.lazyload'
),
Hammer
=
require
(
'yoho.hammer'
);
var
chosePanel
=
require
(
'./chose-panel'
),
cartInfo
=
require
(
'./cart-info'
).
cartInfo
;
var
chosePanel
=
require
(
'./chose-panel'
);
var
$cartContent
=
$
(
'.cart-content'
);
...
...
@@ -41,7 +40,7 @@ navHammer.on('tap', function(e) {
$
(
'.btn-balance'
).
on
(
'touchend'
,
function
()
{
window
.
location
.
href
=
'/
shoppingCart
/orderEnsure?cartType='
+
cartType
;
window
.
location
.
href
=
'/
cart/index
/orderEnsure?cartType='
+
cartType
;
});
//$('.advance-buy').on('touchend', function() {
...
...
static/js/cart/good.js
View file @
8eee997
...
...
@@ -44,7 +44,7 @@ $('.cart-goods').on('touchstart', '.checkbox', function() {
$
.
ajax
({
type
:
'GET'
,
url
:
'/
shoppingCart
/select'
,
url
:
'/
cart/index
/select'
,
data
:
{
id
:
id
}
...
...
@@ -58,7 +58,7 @@ $('.cart-goods').on('touchstart', '.checkbox', function() {
}
$
.
ajax
({
type
:
'GET'
,
url
:
'/
shoppingCart
/getCartData'
,
url
:
'/
cart/index
/getCartData'
,
data
:
{
id
:
id
},
...
...
@@ -120,7 +120,7 @@ $('.cart-goods').on('touchstart', '.checkbox', function() {
$
.
ajax
({
method
:
'post'
,
url
:
'/
shoppingCart
/del'
,
url
:
'/
cart/index
/del'
,
data
:
{
id
:
id
}
...
...
@@ -167,11 +167,6 @@ $('.cart-goods').on('touchstart', '.checkbox', function() {
// });
//})
$
(
'.btn-balance'
).
on
(
'touchend'
,
function
()
{
window
.
location
.
href
=
'/shoppingCart/orderEnsure?cartType='
+
'ordinary'
;
});
$
(
'.down'
).
on
(
'touchend'
,
function
()
{
chosePanel
.
show
();
});
...
...
@@ -180,7 +175,7 @@ $('.cut').on('touchend', function() {
$
.
ajax
({
type
:
'GET'
,
url
:
'/
shoppingCart
/modify'
,
url
:
'/
cart/index
/modify'
,
data
:
{
old_product_sku
:
id
,
new_product_sku
:
id
,
...
...
Please
register
or
login
to post a comment