Files
tianrunCRM/Assets/CoolapeFrame/Templates/DataCfg/ReadMe.md
2020-07-04 14:41:25 +08:00

62 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- xx界面
do
ReadMe.md = {}
local csSelf = nil;
local transform = nil;
-- 初始化,只会调用一次
function ReadMe.md.init(csObj)
csSelf = csObj;
transform = csObj.transform;
--[[
上的组件:getChild(transform, "offset", "Progress BarHong"):GetComponent("UISlider");
--]]
end
-- 设置数据
function ReadMe.md.setData(paras)
end
-- 显示,在c#中。show为调用refresh,show和refresh的区别在于,当页面已经显示了的情况,当页面再次出现在最上层时,只会调用refresh
function ReadMe.md.show()
end
-- 刷新
function ReadMe.md.refresh()
end
-- 关闭页面
function ReadMe.md.hide()
end
-- 网络请求的回调;cmd:指命,succ:成功失败,msg:消息;paras:服务器下行数据
function ReadMe.md.procNetwork (cmd, succ, msg, paras)
--[[
if(succ == 0) then
if(cmd == "xxx") then
-- TODO:
end
end
--]]
end
-- 处理ui上的事件,例如点击等
function ReadMe.md.uiEventDelegate( go )
local goName = go.name;
--[[
if(goName == "xxx") then
--TODO:
end
--]]
end
-- 当按了返回键时,关闭自己(返值为true时关闭)
function ReadMe.md.hideSelfOnKeyBack( )
return true;
end
--------------------------------------------
return ReadMe.md;
end