| | |
| | | [SerializeField] Button m_TypeTipBtn;
|
| | | [SerializeField] Text m_JobTipText;
|
| | | [SerializeField] Text m_TypeTipText;
|
| | | List<AuctionItemClass> FullServiceAuctionListSort = new List<AuctionItemClass>();//全服拍品列表
|
| | | List<AuctionItem> FullServiceAuctionListSort = new List<AuctionItem>();//全服拍品列表
|
| | | AuctionInquiryModel model { get { return ModelCenter.Instance.GetModel<AuctionInquiryModel>(); } }
|
| | | AuctionHelpModel auctionHelpModel { get { return ModelCenter.Instance.GetModel<AuctionHelpModel>(); } }
|
| | |
|
| | |
| | | for (int i = 0; i < model.FullServiceAuctionList.Count; i++)
|
| | | {
|
| | | var FullServiceAuction = model.FullServiceAuctionList[i];
|
| | | var index = FullServiceAuctionListSort.FindIndex((x) => { return x.ItemGUID == FullServiceAuction.ItemGUID; });
|
| | | var index = FullServiceAuctionListSort.FindIndex((x) => { return x.itemGuid == FullServiceAuction.itemGuid; });
|
| | | if (index == -1)
|
| | | {
|
| | | FullServiceAuctionListSort.Add(FullServiceAuction);
|
| | |
| | | gridCtrl.Refresh();
|
| | | for (int i = 0; i < FullServiceAuctionListSort.Count; i++)
|
| | | {
|
| | | var GUID = FullServiceAuctionListSort[i].ItemGUID;
|
| | | var indexList = model.FullServiceAuctionList.FindIndex((x) => { return x.ItemGUID == GUID; });
|
| | | var GUID = FullServiceAuctionListSort[i].itemGuid;
|
| | | var indexList = model.FullServiceAuctionList.FindIndex((x) => { return x.itemGuid == GUID; });
|
| | | if (indexList == -1 && !model.BiddingItemInfoDic.ContainsKey(GUID))//未查找到相应的列表数据(防范)
|
| | | {
|
| | | continue;
|
| | |
| | | {
|
| | | int index = cell.index;
|
| | | FullServiceAuctioncell fullServiceAuctioncell = cell.GetComponent<FullServiceAuctioncell>();
|
| | | AuctionItemClass auctionItemClass = FullServiceAuctionListSort[index];
|
| | | fullServiceAuctioncell.GetFullServiceAuctionGUID(auctionItemClass.ItemGUID, index);
|
| | | AuctionItem auctionItemClass = FullServiceAuctionListSort[index];
|
| | | fullServiceAuctioncell.GetFullServiceAuctionGUID(auctionItemClass.itemGuid, index);
|
| | | } |
| | | |
| | | private void Reset()//重置查询
|
| | |
| | | int num = 0;
|
| | | if (sendNumber != 0)
|
| | | {
|
| | | var auctionItem = AuctionItemConfig.Get(vlaue.ItemID);
|
| | | var auctionItem = AuctionItemConfig.Get(vlaue.itemId);
|
| | | num = sendNumber / 1000;
|
| | | num -= 1;
|
| | | if (model.FamilyAuctionItemDic.ContainsKey(vlaue.ItemGUID)
|
| | | && model.FamilyAuctionItemDic[vlaue.ItemGUID].AuctionType != 0)//如果存在仙盟拍品且不是全服拍品过滤掉
|
| | | if (model.FamilyAuctionItemDic.ContainsKey(vlaue.itemGuid)
|
| | | && model.FamilyAuctionItemDic[vlaue.itemGuid].auctionType != 0)//如果存在仙盟拍品且不是全服拍品过滤掉
|
| | | {
|
| | | continue;
|
| | | }
|
| | |
| | | }
|
| | | FullServiceAuctionListSort.Sort(Compare);
|
| | | }
|
| | | int Compare(AuctionItemClass x, AuctionItemClass y)//数组排列
|
| | | int Compare(AuctionItem x, AuctionItem y)//数组排列
|
| | | {
|
| | | bool havex = IsHighestPrice(x.ItemGUID);
|
| | | bool havey = IsHighestPrice(y.ItemGUID);
|
| | | bool havex = IsHighestPrice(x.itemGuid);
|
| | | bool havey = IsHighestPrice(y.itemGuid);
|
| | | if (havex.CompareTo(havey) != 0)//是否最高价
|
| | | {
|
| | | return -havex.CompareTo(havey);
|
| | | }
|
| | | bool havex1 = IsParticipate(x.ItemGUID);
|
| | | bool havey1 = IsParticipate(y.ItemGUID);
|
| | | bool havex1 = IsParticipate(x.itemGuid);
|
| | | bool havey1 = IsParticipate(y.itemGuid);
|
| | | if (havex1.CompareTo(havey1) != 0)//是否参与
|
| | | {
|
| | | return -havex1.CompareTo(havey1);
|
| | |
| | | if (model.BiddingItemInfoDic.ContainsKey(GUID))
|
| | | {
|
| | | var biddingItemInfo = model.BiddingItemInfoDic[GUID];
|
| | | isBool = biddingItemInfo.BidderID == playerId;
|
| | | isBool = biddingItemInfo.biddingPlayer == playerId;
|
| | | }
|
| | | return isBool;
|
| | | }
|