local UICountryForeshowState2 = UIViewClass() local RewardID = DataSheetManager.ConstData:GetDataByID("CountryForeshowWarspoilReward").IntValue function UICountryForeshowState2:OnOpened(context) local cfg = DataSheetManager.RewardClientShow:GetDataByClientShowID(RewardID) local reward = DataSheetUtil.GetRewardClientShowItemTable(cfg) for i,v in ipairs(reward) do self.ScrollView:AddData(v, 0) end end function UICountryForeshowState2:OnButtonClicked(comp) if comp == self.btn_Info then UIManager.OpenView(Const_UI_Lua.UIEnum.UICountryPopupSalary) end end function UICountryForeshowState2:OnCellInit(scrollRect, index, cellTable, data) UTL.Item.SetItemCell(cellTable.item, data.ItemID, data.ItemNum) end function UICountryForeshowState2:OnCellClicked(scrollRect, index, cellTable, target, data) UTL.ItemTips.ShowCommonTipsById(data.ItemID) end return UICountryForeshowState2