Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
hongweigao
8 years ago
Commit
c88de7f4b4562212d8b41255c81d0d1bcf46d252
1 parent
9388d02b
修改埋点
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
28 deletions
public/js/channel/channel.page.js
public/js/common/data-yas.js
public/js/passport/login/index.js
public/js/channel/channel.page.js
View file @
c88de7f
...
...
@@ -288,29 +288,29 @@ if (mChannel !== '') {
// 商品列表
$
(
'.commodity .goods-container'
).
on
(
'click'
,
'.good-info .good-detail-img > a,'
+
'.good-info .good-detail-text > a'
,
function
()
{
var
$header
=
$
(
'.commodity .floor-header'
),
name
=
$header
.
find
(
'.floor-title'
).
html
(),
url
=
$
(
this
).
attr
(
'href'
),
index
=
parseInt
(
$
(
this
).
closest
(
'.good-info'
).
index
(),
10
)
+
1
;
var
$navs
=
$
(
'.commodity .floor-header .header-navs li'
);
var
navsNum
=
$navs
.
length
;
$navs
.
each
(
function
()
{
var
$a
=
$
(
this
).
find
(
'a'
);
if
(
$a
.
html
()
===
'MORE'
)
{
navsNum
-=
1
;
}
});
yas
.
givePoint
(
'YB_JK_PAV_FLR_C'
,
{
F_ID
:
$header
.
attr
(
'floorid'
),
F_NAME
:
name
,
F_URL
:
url
,
F_INDEX
:
6
,
I_INDEX
:
index
+
navsNum
var
$header
=
$
(
'.commodity .floor-header'
),
name
=
$header
.
find
(
'.floor-title'
).
html
(),
url
=
$
(
this
).
attr
(
'href'
),
index
=
parseInt
(
$
(
this
).
closest
(
'.good-info'
).
index
(),
10
)
+
1
;
var
$navs
=
$
(
'.commodity .floor-header .header-navs li'
);
var
navsNum
=
$navs
.
length
;
$navs
.
each
(
function
()
{
var
$a
=
$
(
this
).
find
(
'a'
);
if
(
$a
.
html
()
===
'MORE'
)
{
navsNum
-=
1
;
}
});
yas
.
givePoint
(
'YB_JK_PAV_FLR_C'
,
{
F_ID
:
$header
.
attr
(
'floorid'
),
F_NAME
:
name
,
F_URL
:
url
,
F_INDEX
:
6
,
I_INDEX
:
index
+
navsNum
});
});
});
}
...
...
public/js/common/data-yas.js
View file @
c88de7f
...
...
@@ -100,7 +100,6 @@ function yasEvent(op, parameter) {
C_ID
:
CID
},
parameter
);
console
.
log
(
parameter
);
window
.
_yas
.
sendCustomInfo
({
op
:
op
,
param
:
JSON
.
stringify
(
parameter
)
...
...
public/js/passport/login/index.js
View file @
c88de7f
...
...
@@ -1224,11 +1224,14 @@ $qrCodeOverLayer.on('click', '#qrcode-refresh-btn', function() {
// click登录
$
(
'#login-btn'
).
on
(
'click'
,
function
()
{
//登陆埋点
var
type
=
0
;
// 登陆埋点
var
type
=
0
,
isEmail
=
$
(
'#account1'
).
val
().
indexOf
(
"@"
)
>=
0
;
if
(
currentLogin
.
type
()
===
'sms'
)
{
type
=
5
;
}
else
if
(
isEmail
)
{
type
=
8
;
}
// banner点击埋点
...
...
@@ -1240,8 +1243,8 @@ $('#login-btn').on('click', function() {
});
//第三方登陆埋点
$
(
'.third-party-login > a'
).
click
(
function
()
{
// 第三方登陆埋点
$
(
'.third-party-login > a'
).
click
(
function
()
{
var
type
=
$
(
this
).
data
(
'type'
);
// banner点击埋点
...
...
Please
register
or
login
to post a comment