diff --git a/lua/app/common/bi_report.lua b/lua/app/common/bi_report.lua index 3c71f1a9..e6f697e1 100644 --- a/lua/app/common/bi_report.lua +++ b/lua/app/common/bi_report.lua @@ -196,6 +196,11 @@ BIReport.DIALY_CHALLENGE_OPT_TYPE = { TASK_STATE = "TaskState", } +BIReport.MISCELLANEOUS_OPT_TYPE = { + EVALUATE_OPEN = "EvaluateOpen", + EVALUATE_CLOSE = "EvaluateClose", +} + -- b6 local EVENT_NAME_EXIT = "client_exit" local EVENT_NAME_FIGHT = "client_fight" @@ -222,6 +227,7 @@ local EVENT_NAME_BOUNTY_OPT = "client_bounty_opt" -- 战令事件 local EVENT_NAME_NETWORK_OPT = "client_network_opt" -- 网络操作 local EVENT_NAME_APPLOVIN_AD_REVENUE = "client_applovin_ad_revenue" -- applovin广告收入 local EVENT_NAME_DAILY_CHALLENGE_OPT = "client_daily_challenge_opt" +local EVENT_NAME_MISCELLANEOUS_OPT = "event_name_miscellaneous_opt" -- 一些杂项 function BIReport:setIsNewPlayer(isNewPlayer) self.isNewPlayer = isNewPlayer @@ -1017,4 +1023,19 @@ function BIReport:postPbDecodefailed(pbName, reqData) self:report(EVENT_NAME_NETWORK_OPT, args) end +function BIReport:postRateClose(rateStar) + local args = { + event_type = BIReport.MISCELLANEOUS_OPT_TYPE.EVALUATE_CLOSE, + rate_star = rateStar, + } + self:report(EVENT_NAME_MISCELLANEOUS_OPT, args) +end + +function BIReport:postRateOpen() + local args = { + event_type = BIReport.MISCELLANEOUS_OPT_TYPE.EVALUATE_OPEN, + } + self:report(EVENT_NAME_MISCELLANEOUS_OPT, args) +end + return BIReport \ No newline at end of file diff --git a/lua/app/ui/game_setting/rate_ui.lua b/lua/app/ui/game_setting/rate_ui.lua index 0b16934c..a11baebc 100644 --- a/lua/app/ui/game_setting/rate_ui.lua +++ b/lua/app/ui/game_setting/rate_ui.lua @@ -3,8 +3,8 @@ local RateUI = class("RateUI", BaseUI) local COLOR = BF.Color(1, 1, 1, 1) local BTN_ICON = { - "common_btn_blue_1", - "common_btn_grey_1" + "common_btn_green_2", + "common_btn_grey_2" } function RateUI:isFullScreen() @@ -23,6 +23,13 @@ function RateUI:ctor() self.curStar = 0 end +function RateUI:onClose() + if self.starSeq then + self.starSeq:Kill() + self.starSeq = nil + end +end + function RateUI:onLoadRootComplete() self:_display() self:_addListeners() @@ -76,7 +83,7 @@ function RateUI:_addListeners() return end - -- BIReport:postRateClose(self.curStar) + BIReport:postRateClose(self.curStar) self:closeUI() if self.curStar > 3 then @@ -91,7 +98,7 @@ function RateUI:_addListeners() uiMap["rate_ui.later_tx"]:addClickListener(function() self:closeUI() end) - -- BIReport:postRateOpen() + BIReport:postRateOpen() end function RateUI:onClickStar(star)