FuliVipAskView = FuliVipAskView or BaseClass(BaseView)
|
|
local FuliVipAskView = FuliVipAskView
|
|
--[[
|
|
FuliVipAskView.TabData = {
|
|
[1] = {name = "人物", level = MainRoleModel.TabOpenLevel[1]},
|
|
}
|
|
--]]
|
|
|
|
function FuliVipAskView:__init()
|
|
self.base_file = "fuli"
|
|
self.layout_file = "FuliVipAskView"
|
|
self.layer_name = "Top"
|
|
self.destroy_imm = true
|
|
self.use_background = true --全屏界面默认使用这个参数
|
|
--self.hide_maincancas = true --全屏界面需要放开隐藏主UI
|
|
self.change_scene_close = true
|
|
self.append_to_ctl_queue = false --是否要添加进界面堆栈
|
|
self.need_show_money = false --是否要显示顶部的金钱栏
|
|
self.blur_activity_bg = true
|
|
|
|
self.model = FuliModel:getInstance()
|
|
|
|
self.load_callback = function ()
|
|
self:LoadSuccess()
|
|
self:AddEvent()
|
|
end
|
|
self.open_callback = function ( )
|
|
self:OpenSuccess()
|
|
end
|
|
self.switch_callback = function(index)
|
|
self:SwitchTab(index)
|
|
end
|
|
self.destroy_callback = function ( )
|
|
self:DestroySuccess()
|
|
end
|
|
end
|
|
|
|
function FuliVipAskView:Open( )
|
|
--self.data = data
|
|
BaseView.Open(self)
|
|
end
|
|
|
|
function FuliVipAskView:LoadSuccess()
|
|
local nodes = {
|
|
"vip_btn:obj", "vip_text:tmp", "close_btn:obj", "sure_btn:obj","bg:raw"
|
|
}
|
|
self:GetChildren(nodes)
|
|
lua_resM:setOutsideRawImage(self, self.bg_raw, GameResPath.GetViewBigBg(self.bg_res or "tips_comm_bg6"), false)
|
|
self.vip_text_tmp.text = string.format("高级%s,%s可再次领取哦~", HtmlColorTxt("签到奖励", ColorUtil.ORANGE_DARK), HtmlColorTxt("VIP3",ColorUtil.PURPLE_DARK))
|
|
end
|
|
|
|
function FuliVipAskView:AddEvent()
|
|
local on_click = function ( click_obj )
|
|
if self.vip_btn_obj == click_obj then
|
|
OpenFun.Open(450,2)
|
|
elseif self.close_btn_obj == click_obj then
|
|
elseif self.sure_btn_obj == click_obj then
|
|
end
|
|
self:Close()
|
|
end
|
|
AddClickEvent(self.vip_btn_obj, on_click)
|
|
AddClickEvent(self.close_btn_obj, on_click)
|
|
AddClickEvent(self.sure_btn_obj, on_click)
|
|
|
|
end
|
|
|
|
function FuliVipAskView:OpenSuccess()
|
|
self:UpdateView()
|
|
end
|
|
|
|
function FuliVipAskView:UpdateView()
|
|
|
|
end
|
|
|
|
function FuliVipAskView:SwitchTab( index )
|
|
|
|
end
|
|
|
|
function FuliVipAskView:DestroySuccess( )
|
|
|
|
end
|