|
@@ -869,6 +869,11 @@ export function replyHandle(params) {
|
|
if (tweetReply) {
|
|
if (tweetReply) {
|
|
tweetReply.addEventListener('click', function () {
|
|
tweetReply.addEventListener('click', function () {
|
|
// 详情页回复按钮点击
|
|
// 详情页回复按钮点击
|
|
|
|
+ Report.reportLog({
|
|
|
|
+ pageSource: Report.pageSource.mainPage,
|
|
|
|
+ businessType: Report.businessType.buttonClick,
|
|
|
|
+ objectType: Report.objectType.replyClickByDetailPage
|
|
|
|
+ });
|
|
|
|
|
|
let eleList = tweetReply.parentNode.parentNode.parentNode.parentNode.parentNode.querySelectorAll('span[data-text="true"]');
|
|
let eleList = tweetReply.parentNode.parentNode.parentNode.parentNode.parentNode.querySelectorAll('span[data-text="true"]');
|
|
reportReplyResult(eleList, params, () => {
|
|
reportReplyResult(eleList, params, () => {
|
|
@@ -920,7 +925,11 @@ function onReplyDialogOpen(params, iframe) {
|
|
if (dialog && replyBtn) {
|
|
if (dialog && replyBtn) {
|
|
replyBtn.addEventListener('click', function () {
|
|
replyBtn.addEventListener('click', function () {
|
|
// 推文页回复按钮点击
|
|
// 推文页回复按钮点击
|
|
-
|
|
|
|
|
|
+ Report.reportLog({
|
|
|
|
+ pageSource: Report.pageSource.mainPage,
|
|
|
|
+ businessType: Report.businessType.buttonClick,
|
|
|
|
+ objectType: Report.objectType.replyClickByTwitterList
|
|
|
|
+ });
|
|
|
|
|
|
let eleList = dialog.querySelector('div[contenteditable="true"]').querySelectorAll('span[data-text="true"]');
|
|
let eleList = dialog.querySelector('div[contenteditable="true"]').querySelectorAll('span[data-text="true"]');
|
|
reportReplyResult(eleList, params, () => {
|
|
reportReplyResult(eleList, params, () => {
|
|
@@ -935,6 +944,13 @@ function onReplyDialogOpen(params, iframe) {
|
|
|
|
|
|
const reportReplyResult = throttle(function (eleList, params, cb) {
|
|
const reportReplyResult = throttle(function (eleList, params, cb) {
|
|
//未过滤的回复文本
|
|
//未过滤的回复文本
|
|
|
|
+ Report.reportLog({
|
|
|
|
+ pageSource: Report.pageSource.mainPage,
|
|
|
|
+ businessType: Report.businessType.buttonClick,
|
|
|
|
+ objectType: Report.objectType.replyInputTextGet
|
|
|
|
+ }, {
|
|
|
|
+ replyStr: eleList
|
|
|
|
+ });
|
|
|
|
|
|
if (eleList && eleList.length) {
|
|
if (eleList && eleList.length) {
|
|
let atList = [];
|
|
let atList = [];
|
|
@@ -951,9 +967,23 @@ const reportReplyResult = throttle(function (eleList, params, cb) {
|
|
// 去重过滤文本
|
|
// 去重过滤文本
|
|
atList = Array.from(new Set(atList));
|
|
atList = Array.from(new Set(atList));
|
|
|
|
|
|
|
|
+ Report.reportLog({
|
|
|
|
+ pageSource: Report.pageSource.mainPage,
|
|
|
|
+ businessType: Report.businessType.buttonClick,
|
|
|
|
+ objectType: Report.objectType.replyFilterTextGet
|
|
|
|
+ }, {
|
|
|
|
+ replyStr: atList
|
|
|
|
+ });
|
|
|
|
|
|
if (atList.length >= 3) {
|
|
if (atList.length >= 3) {
|
|
//真实上报
|
|
//真实上报
|
|
|
|
+ Report.reportLog({
|
|
|
|
+ pageSource: Report.pageSource.mainPage,
|
|
|
|
+ businessType: Report.businessType.buttonClick,
|
|
|
|
+ objectType: Report.objectType.replyReport
|
|
|
|
+ }, {
|
|
|
|
+ replyStr: atList
|
|
|
|
+ });
|
|
|
|
|
|
fetchAddFinishEvent({
|
|
fetchAddFinishEvent({
|
|
eventType: params.type,
|
|
eventType: params.type,
|