| | |
| | | m_HighestPriceImage.SetActive(false);
|
| | | m_EquipmentScoreObj.SetActive(false);
|
| | | var indexList = model.FullServiceAuctionList.FindIndex((x) => { return x.ItemGUID == GUID; });
|
| | | if (indexList == -1)
|
| | | if (indexList == -1 && !model.BiddingItemInfoDic.ContainsKey(GUID))
|
| | | {
|
| | | DebugEx.Log("未查找到相应的列表数据");
|
| | | return;
|
| | | }
|
| | | var fullServiceAuction = model.FullServiceAuctionList[indexList];
|
| | | AuctionItemClass fullServiceAuction = new AuctionItemClass();
|
| | | if (indexList != -1)
|
| | | {
|
| | | fullServiceAuction = model.FullServiceAuctionList[indexList];
|
| | | }
|
| | | else if (model.BiddingItemInfoDic.ContainsKey(GUID))
|
| | | {
|
| | | fullServiceAuction = model.BiddingItemInfoDic[GUID];
|
| | | }
|
| | | if (index < 5)
|
| | | {
|
| | | var sendNumber = AuctionInquiry.Instance.GetSendNumber();
|
| | |
| | | {
|
| | | m_BiddingText.text = Language.Get("PMH_05");
|
| | | }
|
| | | |
| | |
|
| | | ItemCellModel cellModel = new ItemCellModel(fullServiceAuction.ItemID, true, (ulong)fullServiceAuction.ItemCount);
|
| | | m_ItemCell.Init(cellModel);
|
| | | m_ItemCell.button.SetListener(()=> |
| | | m_ItemCell.button.SetListener(() =>
|
| | | {
|
| | | ItemAttrData attrData = new ItemAttrData(fullServiceAuction.ItemID, true, (ulong)1);
|
| | | itemTipsModel.SetItemTipsModel(attrData);
|
| | |
| | | m_Score.text = cellModel.score.ToString();
|
| | | var equipScore = auctionHelpModel.GetEquipScore(itemConfig.LV, itemConfig.EquipPlace);
|
| | | m_StateIcon.SetActive(cellModel.score > equipScore && jobBool);
|
| | | m_DeclineIcon.SetActive(equipScore> cellModel.score && jobBool);
|
| | | m_DeclineIcon.SetActive(equipScore > cellModel.score && jobBool);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | if (AuctionItem != null && FullServiceAuction != null)
|
| | | {
|
| | | var timeNow = TimeUtility.ServerNow;
|
| | | TimeSpan timeSpan = timeNow - FullServiceAuction.Time; |
| | | TimeSpan timeSpan = timeNow - FullServiceAuction.Time;
|
| | | int minute = (int)timeSpan.TotalMinutes;
|
| | |
|
| | | DateTime extensionTime = FullServiceAuction.TimeEnd.AddSeconds(auctionHelpModel.ExtensionTime);
|
| | |
| | | int seconds = AuctionItem.WorldSaleMinutes * 60 - ((int)timeSpan.TotalSeconds - AuctionItem.NoticeSaleMinutes * 60);
|
| | | m_TimeText.text = Language.Get("PMH_04", TimeUtility.SecondsToHMS(seconds));
|
| | | }
|
| | | else if(timeNow< extensionTime)
|
| | | else if (timeNow < extensionTime)
|
| | | {
|
| | | m_TimeText.text = Language.Get("PMH_04",0);
|
| | | m_TimeText.text = Language.Get("PMH_04", 0);
|
| | | TimeSpan timeSpan2 = extensionTime - timeNow;
|
| | | int timeSeconds = (int)timeSpan2.TotalSeconds;
|
| | | DebugEx.LogError(Language.Get("PMH_04", TimeUtility.SecondsToHMS(timeSeconds)));
|