local UIOACommonStoreBase = require("View/OperationActivity/OACommonBase/UIOACommonStoreBase") local UINewYearStorePanel = UIViewClass(UIOACommonStoreBase) function UINewYearStorePanel:OnOpened(context) UTL.Item.SetLocalizationImage(self.loc_Title, self.img_Title, "hltxtc_msz_hddp.png") CTL.NewYear.OpenCurrencyPanel(CTL.NewYear.ViewName.UINewYearStorePanel, self.activityType, self.activityId, self.currency_Info) end function UINewYearStorePanel:ShowGoodCell(cellTable, data) UIOACommonStoreBase.ShowGoodCell(self, cellTable, data) --滚动文本 if cellTable.txt_ItemNameScroll then local itemData = DataSheetManager.ItemData:GetDataByID(data.ItemID) cellTable.txt_ItemNameScroll:SetText(UIUtils.GetLocalizedTxt(Const_IDS[itemData.Name])) end end function UINewYearStorePanel:OnButtonClicked(comp) if comp == self.btn_Close then self:OnClickClose() elseif comp == self.btn_DirectGift then CTL.NewYear.OpenView(self.activityId, CTL.NewYear.ViewName.UINewYearGiftMain, {activityType = self.activityType, activityId = self.activityId, Title = "IDS_NewYearActivity_ChildTitle_5"}) end end return UINewYearStorePanel