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
Mar 14, 2018
by
yangfangfang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公告点击埋点
parent
058ccb56
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 @@
...
@@ -486,6 +486,50 @@
$
.
post
(
UtilService
.
getLogRoot
()
+
"/receive/tkio/event"
,
JSON
.
stringify
(
params
));
$
.
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
;
return
service
;
}
}
})();
})();
src/main/websrc/js/app/directive.js
View file @
97381058
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
.
directive
(
"searchGroup"
,[
searchGroup
])
.
directive
(
"searchGroup"
,[
searchGroup
])
.
directive
(
"bigTable"
,[
"$timeout"
,
"$compile"
,
bigTable
])
.
directive
(
"bigTable"
,[
"$timeout"
,
"$compile"
,
bigTable
])
.
directive
(
"dragOrder"
,[
dragOrder
])
.
directive
(
"dragOrder"
,[
dragOrder
])
.
directive
(
"notice"
,[
"HttpService"
,
"$timeout"
,
notice
]);
.
directive
(
"notice"
,[
"HttpService"
,
"
ToolService"
,
"
$timeout"
,
notice
]);
function
delTip
(){
function
delTip
(){
return
{
return
{
...
@@ -2032,7 +2032,7 @@
...
@@ -2032,7 +2032,7 @@
}
}
//消息
//消息
function
notice
(
HttpService
,
$timeout
){
function
notice
(
HttpService
,
ToolService
,
$timeout
){
return
{
return
{
restrict
:
'E'
,
restrict
:
'E'
,
replace
:
true
,
replace
:
true
,
...
@@ -2067,6 +2067,8 @@
...
@@ -2067,6 +2067,8 @@
if
(
!
news
.
isRead
){
if
(
!
news
.
isRead
){
HttpService
.
postInfo
(
"notice/saveReadLog/"
+
news
.
id
,
{});
HttpService
.
postInfo
(
"notice/saveReadLog/"
+
news
.
id
,
{});
}
}
ToolService
.
sendWhatEvtData
(
"readnotice"
,{
noticeid
:
news
.
id
,
noticetitle
:
news
.
title
});
news
.
isRead
=
true
;
news
.
isRead
=
true
;
$scope
.
curNoticeInfo
=
news
;
$scope
.
curNoticeInfo
=
news
;
$scope
.
isDetail
=
true
;
$scope
.
isDetail
=
true
;
...
...
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