Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
saasio
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
reyun
saasio
Commits
97381058
Commit
97381058
authored
7 years ago
by
yangfangfang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公告点击埋点
parent
058ccb56
master
…
20180326_events4track
30921_bugfix
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
2 deletions
+48
-2
ToolService.js
src/main/websrc/js/app/ToolService.js
+44
-0
directive.js
src/main/websrc/js/app/directive.js
+4
-2
No files found.
src/main/websrc/js/app/ToolService.js
View file @
97381058
...
...
@@ -486,6 +486,50 @@
$
.
post
(
UtilService
.
getLogRoot
()
+
"/receive/tkio/event"
,
JSON
.
stringify
(
params
));
}
//自定义报送
service
.
sendWhatEvtData
=
function
(
what
,
jsonparams
){
var
appkey
=
""
,
appcategory
=
""
,
appname
=
""
;
if
(
$rootScope
.
appInstance
){
appkey
=
$rootScope
.
appInstance
.
appkey
;
appcategory
=
$rootScope
.
appInstance
.
appGenreName
;
appname
=
$rootScope
.
appInstance
.
name
;
}
var
cmids
=
service
.
getCMidInfo
();
var
company
=
service
.
getUser
().
company
;
if
(
UtilService
.
isNullStr
(
company
)){
company
=
""
;
}
var
params
=
{
appid
:
UtilService
.
getTKAppkey
(),
who
:
UtilService
.
getCookie
(
"ryioUname"
),
what
:
what
,
context
:{
email
:
UtilService
.
getCookie
(
"ryioUname"
),
user_appkey
:
appkey
,
//所选APP的id,
appcategory
:
appcategory
,
//应用类型 中文名
appname
:
appname
,
//应用名称
rolename
:
service
.
getRoleName
(),
company
:
company
,
"_cid"
:
cmids
.
cid
,
"_campaignid"
:
cmids
.
campaignid
,
"_apptype"
:
"wap"
,
_deviceid
:
UtilService
.
randDeviceId
(),
//设备ID
operatesystem
:
UtilService
.
operatorSystem
(),
//操作系统 _ryos
browser
:
UtilService
.
getBrowser
()
//浏览器类型
}
};
if
(
jsonparams
){
for
(
var
k
in
jsonparams
){
params
.
context
[
k
]
=
jsonparams
[
k
];
}
}
$
.
post
(
UtilService
.
getLogRoot
()
+
"/receive/tkio/event"
,
JSON
.
stringify
(
params
));
}
return
service
;
}
})();
This diff is collapsed.
Click to expand it.
src/main/websrc/js/app/directive.js
View file @
97381058
...
...
@@ -30,7 +30,7 @@
.
directive
(
"searchGroup"
,[
searchGroup
])
.
directive
(
"bigTable"
,[
"$timeout"
,
"$compile"
,
bigTable
])
.
directive
(
"dragOrder"
,[
dragOrder
])
.
directive
(
"notice"
,[
"HttpService"
,
"$timeout"
,
notice
]);
.
directive
(
"notice"
,[
"HttpService"
,
"
ToolService"
,
"
$timeout"
,
notice
]);
function
delTip
(){
return
{
...
...
@@ -2032,7 +2032,7 @@
}
//消息
function
notice
(
HttpService
,
$timeout
){
function
notice
(
HttpService
,
ToolService
,
$timeout
){
return
{
restrict
:
'E'
,
replace
:
true
,
...
...
@@ -2067,6 +2067,8 @@
if
(
!
news
.
isRead
){
HttpService
.
postInfo
(
"notice/saveReadLog/"
+
news
.
id
,
{});
}
ToolService
.
sendWhatEvtData
(
"readnotice"
,{
noticeid
:
news
.
id
,
noticetitle
:
news
.
title
});
news
.
isRead
=
true
;
$scope
.
curNoticeInfo
=
news
;
$scope
.
isDetail
=
true
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment