Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
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
王水玲
8 years ago
Commit
d6820005d50d2c6f47efbb6f869f3b3e13e04fe0
1 parent
1e89fec6
分期埋点bug修改
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
30 additions
and
31 deletions
public/js/home/account.page.js
public/js/home/burying-point.js
public/js/home/installment.order-detail.page.js
public/js/home/installment.order.page.js
public/js/home/installment.page.js
public/js/home/installment.starting-service.page.js
public/js/home/repay-record.page.js
public/js/home/repayment-list.page.js
public/js/home/account.page.js
View file @
d682000
var
$
=
require
(
'yoho-jquery'
);
var
bp
=
require
(
'./burying-point'
);
setTimeout
(
function
()
{
$
(
window
).
load
(
function
()
{
// 统计:分期首页点击账户管理进入账户管理页面时
bp
.
setContYas
(
'YB_INST_REPAYMENT'
,
{
POS_ID
:
$
(
'.account-page'
).
data
(
'posId'
)
});
}
,
3000
);
});
...
...
public/js/home/burying-point.js
View file @
d682000
require
(
'../common'
);
function
setContYas
(
op
,
params
)
{
function
setContYas
(
op
,
params
,
flag
)
{
params
=
$
.
extend
({
C_ID
:
window
.
queryString
.
yh_channel
||
window
.
cookie
(
'yhChannel'
)
},
params
);
flag
=
flag
===
false
?
flag
:
true
;
if
(
window
.
_yas
&&
window
.
_yas
.
sendCustomInfo
)
{
window
.
_yas
.
sendCustomInfo
({
op
:
op
,
param
:
JSON
.
stringify
(
params
)
},
true
);
},
flag
);
}
}
...
...
public/js/home/installment.order-detail.page.js
View file @
d682000
...
...
@@ -95,21 +95,19 @@ $(CHECKBOX_SELECTOR + ':checkbox').click(function() {
// 默认选择第一个
$
(
CHECKBOX_SELECTOR
+
':checkbox:first'
).
click
();
setTimeout
(
function
()
{
$
(
window
).
load
(
function
()
{
// 统计:进入订单详情页时
bp
.
setContYas
(
'YB_INST_ORDER_INFO'
,
{
ORDER_CODE
:
orderCode
});
},
3000
);
$
(
'.repayment-btn'
).
on
(
'click'
,
function
()
{
$
(
'.repayment-btn'
).
on
(
'click'
,
function
()
{
// 统计:点击立即还款时
bp
.
setContYas
(
'YB_INST_ORDER_TOPAY'
,
{
ORDER_CODE
:
orderCode
,
PERIODS
:
$
(
CHECKBOX_SELECTOR
+
':checked'
).
last
().
data
(
'sortId'
)
// 统计:点击立即还款时
bp
.
setContYas
(
'YB_INST_ORDER_TOPAY'
,
{
ORDER_CODE
:
orderCode
,
PERIODS
:
$
(
CHECKBOX_SELECTOR
+
':checked'
).
last
().
data
(
'sortId'
)
});
});
return
false
;
});
});
\ No newline at end of file
...
...
public/js/home/installment.order.page.js
View file @
d682000
...
...
@@ -124,20 +124,19 @@ $(window).scroll(function() {
});
})());
setTimeout
(
function
()
{
$
(
window
).
load
(
function
()
{
// 统计:分期主页点击分期订单进入订单列表页时
bp
.
setContYas
(
'YB_INST_REPAYMENT'
,
{
POS_ID
:
$
(
'.installment-order-page'
).
data
(
'posId'
)
});
},
3000
);
$
(
document
).
on
(
'click'
,
'.order-list a'
,
function
()
{
$
(
document
).
on
(
'click'
,
'.order-list a'
,
function
()
{
// 统计:点击各个订单时
bp
.
setContYas
(
'YB_INST_ORDER_CLICK'
,
{
LAB_ID
:
$
(
'.header-tab .active'
).
index
(),
ORDER_CODE
:
$
(
this
).
data
(
'code'
)
// 统计:点击各个订单时
bp
.
setContYas
(
'YB_INST_ORDER_CLICK'
,
{
LAB_ID
:
$
(
'.header-tab .active'
).
index
(),
ORDER_CODE
:
$
(
this
).
data
(
'code'
)
},
false
);
});
});
...
...
public/js/home/installment.page.js
View file @
d682000
...
...
@@ -76,9 +76,9 @@ $('.nav-bit').on('click', function() {
});
});
setTimeout
(
function
()
{
if
(
$
(
'.installment-only'
).
length
>
0
)
{
$
(
window
).
load
(
function
()
{
if
(
$
(
'.installment-only'
).
length
>
0
)
{
// 统计:进入页面时
bp
.
setContYas
(
'YB_INST_HOME'
,
{
IS_OPEN
:
$
(
'.is-open'
).
val
()
...
...
@@ -100,7 +100,7 @@ setTimeout(function() {
});
}
}
}
,
3000
);
});
window
.
setCookie
(
'installmentUid'
,
window
.
queryString
.
uid
);
window
.
setCookie
(
'yhChannel'
,
window
.
queryString
.
yh_channel
);
...
...
public/js/home/installment.starting-service.page.js
View file @
d682000
...
...
@@ -302,7 +302,7 @@ $('#agreements').click(function() {
require
(
'./overdue-notice'
);
setTimeout
(
function
()
{
$
(
window
).
load
(
function
()
{
// 统计:进入开通分期表单页面时
bp
.
setContYas
(
'YB_INST_OPEN_INFO'
,
{});
}
,
3000
);
});
...
...
public/js/home/repay-record.page.js
View file @
d682000
...
...
@@ -17,9 +17,9 @@ var listData = new ListData({
listData
.
getListData
(
0
);
setTimeout
(
function
()
{
$
(
window
).
load
(
function
()
{
// 统计:分期首页点击还款记录进入落地页时
bp
.
setContYas
(
'YB_INST_REPAYMENT'
,
{
POS_ID
:
$
(
'.repayment-list-page'
).
data
(
'posId'
)
});
}
,
3000
);
});
...
...
public/js/home/repayment-list.page.js
View file @
d682000
...
...
@@ -74,12 +74,12 @@ $(CHECKBOX_SELECTOR + ':checkbox').click(function() {
repayment
.
update
();
setTimeout
(
function
()
{
$
(
window
).
load
(
function
()
{
// 统计:各模块的落地页进入时
bp
.
setContYas
(
'YB_INST_REPAYMENT'
,
{
POS_ID
:
$
(
'.repayment-list-page'
).
data
(
'posId'
)
});
}
,
3000
);
});
// 统计yas 需要传的参数
...
...
Please
register
or
login
to post a comment