mm
This commit is contained in:
@@ -24,6 +24,7 @@ function TRPNewFollow:init(csObj)
|
||||
uiobjs.DetailRootTabel = uiobjs.DetailRoot:GetComponent("UITable")
|
||||
|
||||
uiobjs.ButtonSave = getChild(self.transform, "Top/ButtonSave")
|
||||
uiobjs.ButtonCustDetail = getChild(self.transform, "ButtonCustDetail")
|
||||
end
|
||||
|
||||
---public 当有通用背板显示时的回调
|
||||
@@ -130,6 +131,18 @@ end
|
||||
|
||||
-- 显示,在c#中。show为调用refresh,show和refresh的区别在于,当页面已经显示了的情况,当页面再次出现在最上层时,只会调用refresh
|
||||
function TRPNewFollow:show()
|
||||
if self.isNewFollow then
|
||||
SetActive(uiobjs.ButtonCustDetail.gameObject, false)
|
||||
else
|
||||
---@type Coolape.CLPanelLua
|
||||
local panel = CLPanelManager.getPanel("PanelCustDetail")
|
||||
if panel and panel.gameObject.activeInHierarchy then
|
||||
SetActive(uiobjs.ButtonCustDetail.gameObject, false)
|
||||
else
|
||||
SetActive(uiobjs.ButtonCustDetail.gameObject, true)
|
||||
end
|
||||
end
|
||||
|
||||
self:refreshContent()
|
||||
SetActive(uiobjs.ButtonSave.gameObject, self.isNewFollow)
|
||||
|
||||
@@ -245,6 +258,25 @@ function TRPNewFollow:setEventDelegate()
|
||||
end,
|
||||
InputTask = function()
|
||||
self:showExtentFiles(uiobjs.InputTask.value)
|
||||
end,
|
||||
ButtonCustDetail = function()
|
||||
showHotWheel()
|
||||
NetProto.send.get_customerById(
|
||||
self.mdata.custId,
|
||||
function(content)
|
||||
hideHotWheel()
|
||||
if content.success then
|
||||
local cust = content.result
|
||||
if cust then
|
||||
getPanelAsy(
|
||||
"PanelCustDetailSimple",
|
||||
onLoadedPanelTT,
|
||||
{cust = cust, isShowButtonGet = false}
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
)
|
||||
end
|
||||
}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user