[连冲返利]=====报错修改,名称敏感字符提示修改

dev_chengFeng
wangzhenxing 2022-06-21 14:40:48 +08:00
parent 5fe8fec06c
commit 7f8dcf2416
4 changed files with 17 additions and 11 deletions

View File

@ -12,6 +12,7 @@ local BTNS = {
}
local curPage = 1
local redList = {}
local gridPar
function PremiumRebatePanel:InitComponent()
this.spLoader = SpriteLoader.New()
this.backBtn = Util.GetGameObject(self.gameObject, "closeBtn")
@ -29,6 +30,7 @@ function PremiumRebatePanel:InitComponent()
this.scrollView.moveTween.Strength = 2
this.scrollView.elastic = false
this.itemViewList = {}
grid=Util.GetGameObject(self.gameObject, "Bg/scroll/ScrollCycleView/grid"):GetComponent("RectTransform")
this.sortingOrder = 0
end
@ -91,8 +93,8 @@ end
--界面打开或者重新打开后,界面刷新时调用(用于子类重写)
function PremiumRebatePanel:OnShow()
this.grid=Util.GetGameObject(self.gameObject, "Bg/scroll/ScrollCycleView/grid"):GetComponent("RectTransform")
this:Refresh(true,true)
FixedUpdateBeat:Add(this.OnUpdate,self)
this.PageTabCtrl:Init(this.tabbox.gameObject, BTNS,curPage)
end
@ -118,13 +120,17 @@ function PremiumRebatePanel:Refresh(isTop,isAni)
end
function this.OnUpdate()
if this.grid and this.grid.localPosition.y>2140 then
if gridPar~=nil then
if gridPar.localPosition and gridPar.localPosition.y>2140 then
this.jiantou:SetActive(false)
else
this.jiantou:SetActive(true)
end
end
end
function PremiumRebatePanel:SetRewardShow(isTop,isAni)
-- 显示
this.scrollView:SetData(this.actData.mission, function (index, item)
@ -224,13 +230,13 @@ function PremiumRebatePanel:SetTime()
end
function PremiumRebatePanel:OnClose()
FixedUpdateBeat:Remove(this.OnUpdate,self)
--FixedUpdateBeat:Remove(this.OnUpdate,self)
end
--界面销毁时调用(用于子类重写)
function PremiumRebatePanel:OnDestroy()
this.spLoader:Destroy()
FixedUpdateBeat:Remove(this.OnUpdate,self)
this.itemViewList = {}
for k,v in pairs(redList) do
ClearRedPointObject(k,v)

View File

@ -47,7 +47,7 @@ end
-- 请求创建公会
function GuildManager.RequestCreateGuild(name, announce, func)
if not NameManager.CheckStringRight(name) then
PopupTipPanel.ShowTip("字不合法")
PopupTipPanel.ShowTip("称含有敏感字符")
return
end
if not ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.GUILD) then

View File

@ -371,7 +371,7 @@ end
-- 请求修改公会名称
function MyGuildManager.RequestChangeGuildName(name, func)
if not NameManager.CheckStringRight(name) then
PopupTipPanel.ShowTip("字不合法")
PopupTipPanel.ShowTip("称含有敏感字符")
return
end
local pos = this.GetMyPositionInGuild()

View File

@ -1,4 +1,4 @@
local RandomName = ConfigManager.GetConfig(ConfigName.RandomName)
local RandomName = ConfigManager.GetConfig(ConfigName.RandomName)
local this = {
roleName = "",
roleSex = ROLE_SEX.BOY
@ -67,7 +67,7 @@ end
--更改玩家姓名
function this.ChangeUserName(type, name, teamPosId, sex, callBack)
if not this.CheckStringRight(name) then
PopupTipPanel.ShowTip("字不合法")
PopupTipPanel.ShowTip("称含有敏感字符")
return
end
NetManager.ChangeUserNameRequest(type, name, teamPosId, sex, function()