[连冲返利]=====报错修改,名称敏感字符提示修改
parent
5fe8fec06c
commit
7f8dcf2416
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue