local UIRuneShopExploreCtr = class("UIRuneShopExploreCtr", require("UICtrBase")) function UIRuneShopExploreCtr:Init(view) self.view = view end function UIRuneShopExploreCtr:SetData(data) self.asyncIdx = 0 if data == nil then return end self.data = data end function UIRuneShopExploreCtr:GetAsyncIdx() self.asyncIdx = self.asyncIdx + 1 return self.asyncIdx end function UIRuneShopExploreCtr:GetData() return self.data end function UIRuneShopExploreCtr:OnDispose() self.data = nil self.view = nil self.curRewardsData = nil end function UIRuneShopExploreCtr:InitData() self:RefreshCurRewardsData() end function UIRuneShopExploreCtr:RefreshCurRewardsData() ManagerContainer.DataMgr.RuneShopDataMgr:RefreshRewardData() self.curRewardsData = ManagerContainer.DataMgr.RuneShopDataMgr:GetRewardsData() end function UIRuneShopExploreCtr:GetRewardsRemainTime() return self.curRewardsData and self.curRewardsData:RefreshRewaradsRemainTime() or nil end --战令悬赏数据 function UIRuneShopExploreCtr:GetShowRewardsDataByIdx(idx) return self.curRewardsData and self.curRewardsData:GetGoodsDataByIdx(idx) or nil end function UIRuneShopExploreCtr:GetShowRewardsData() return self.curRewardsData:GetShowRewardsData() end function UIRuneShopExploreCtr:GetRewardsBaseData() return ManagerContainer.DataMgr.RuneShopDataMgr:GetRewardsData() --self.curRewardsData end function UIRuneShopExploreCtr:GetShowReardsNearMinCashReward(min) return self.curRewardsData and self.curRewardsData:GetShowReardsNearMinCashReward(min) or nil end function UIRuneShopExploreCtr:GetShowReardsNearMaxCashReward(max) return self.curRewardsData and self.curRewardsData:GetShowReardsNearMaxCashReward(max) or nil end function UIRuneShopExploreCtr:GetCurVipLv() return ManagerContainer.DataMgr.UserData:GetVipLv() end function UIRuneShopExploreCtr:GetOwnResCountByItemId(cfgId) return CommonUtil.GetOwnResCountByItemId(cfgId) end return UIRuneShopExploreCtr