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
周少峰
8 years ago
Commit
4c922aa50c084c4401d4dde675f9a50c0ab0f3ad
1 parent
86b4fefd
cart index add point
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
10 deletions
web-static/js/cart/cart.js
web-static/js/common.js
web-static/js/cart/cart.js
View file @
4c922aa
...
...
@@ -926,4 +926,7 @@ $goodsDetail.on('selectstart', function() {
return
false
;
});
scrollToFirst
();
\ No newline at end of file
scrollToFirst
();
// 购物车埋点
window
.
addPoint
(
'YB_SC'
);
\ No newline at end of file
...
...
web-static/js/common.js
View file @
4c922aa
...
...
@@ -195,14 +195,14 @@ $.extend({
});
}());
//为您优选埋点 http://redmine.yoho.cn/issues/10117
function
givePoint
(
parameter
)
{
// 添加埋点
function
addPoint
(
operate
,
parameter
)
{
var
CID
=
1
;
if
(
!
window
.
_yas
||
!
window
.
_yas
.
sendCustomInfo
)
{
if
(
!
window
.
_yas
||
!
window
.
_yas
.
sendCustomInfo
||
!
operate
)
{
return
false
;
}
//男:1,女:2,潮童:3,创意生活:4
switch
(
cookie
(
'_Channel'
))
{
case
'boys'
:
...
...
@@ -218,6 +218,18 @@ function givePoint(parameter) {
CID
=
4
;
break
;
}
parameter
=
$
.
extend
({
'C_ID'
:
CID
,},
parameter
);
window
.
_yas
.
sendCustomInfo
({
'op'
:
operate
,
'uid'
:
getUid
(),
'param'
:
JSON
.
stringify
(
parameter
)
},
true
);
}
//为您优选埋点 http://redmine.yoho.cn/issues/10117
function
givePoint
(
parameter
)
{
parameter
=
$
.
extend
({
'REC_POSE'
:
''
,
...
...
@@ -233,11 +245,7 @@ function givePoint(parameter) {
return
true
;
}
window
.
_yas
.
sendCustomInfo
({
'op'
:
'YB_CHOOSE_FOR_YOU_Y'
,
'uid'
:
getUid
(),
'param'
:
JSON
.
stringify
(
parameter
)
},
true
);
addPoint
(
'YB_CHOOSE_FOR_YOU_Y'
,
parameter
);
}
window
.
cookie
=
cookie
;
...
...
@@ -255,3 +263,4 @@ window.getShoppingKey = getShoppingKey;
window
.
queryString
=
queryString
;
window
.
givePoint
=
givePoint
;
window
.
addPoint
=
addPoint
;
...
...
Please
register
or
login
to post a comment