local this = class("pageCookGame", G_UIPageBase)
local foodCookTpl = L_GameTpl:getFoodCookTpl()

function this.bind()
  return {
    moduleCommonTop = {
      moduleName = "modulePages/moduleCommonTop"
    }
  }
end

function this.methods()
  return {
    onClick_tempStart = function(self)
    end,
    onClick_perfect = function(self)
    end,
    onClick_normal = function(self)
    end,
    onClick_fail = function(self)
    end
  }
end

function this:created(obj, config)
  this.super.created(self, obj, config)
end

function this:preOpen(options)
  this.super.preOpen(self, options)
  self.foodId = options.foodId
  local data = {
    name = L_WordsTpl:getValue("ui_systemMessage_10"),
    helpBtnBool = true,
    mainBtnBool = false,
    closeCurPage = function()
      L_UI:close(self.pageName)
    end,
    helpBtn = function()
    end,
    mainBtn = function()
      L_UI:backToRoot()
    end
  }
  self.modules.moduleCommonTop:initModule(data)
end

function this:close(options)
  this.super.close(self, options)
end

return this
