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
beb2b021ce45f783b7dbb5790c3396fc0a589316
1 parent
23ad180a
购物车功能开发
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
static/js/product/detail/like.js
static/js/shopping-cart/gift-advance.js
static/js/shopping-cart/good.js
static/js/product/detail/like.js
View file @
beb2b02
...
...
@@ -73,13 +73,13 @@ if (addToCartHammer) {
addToCartHammer
.
on
(
'tap'
,
function
(
e
)
{
chosePanel
.
show
();
//统计代码:用于统计用户加入购物车的动作
if
(
window
.
_yas
)
{
window
.
_yas
.
sendCustomInfo
({
//统计代码:用于统计用户加入购物车的动作
if
(
window
.
_yas
)
{
window
.
_yas
.
sendCustomInfo
({
pd
:
productId
,
by
:
1
},
true
);
}
}
});
}
...
...
static/js/shopping-cart/gift-advance.js
View file @
beb2b02
...
...
@@ -7,7 +7,7 @@
var
$
=
require
(
'jquery'
),
lazyLoad
=
require
(
'yoho.lazyload'
);
var
chosePanel
=
require
(
'./chose-panel'
);
//
var chosePanel = require('./chose-panel');
lazyLoad
(
$
(
'.lazy'
));
...
...
static/js/shopping-cart/good.js
View file @
beb2b02
...
...
@@ -171,3 +171,9 @@ $('.advance-buy').on('touchend', function() {
});
$
(
'.chose'
).
on
(
'touchend'
,
function
()
{
//var id = $(this).closest('.gift-advance-good').data('id');
chosePanel
.
show
();
});
...
...
Please
register
or
login
to post a comment