| | |
| | |
|
| | | List<string> itemGuids = new List<string>();//全服拍品列表
|
| | |
|
| | | int emptyCount = 0;
|
| | |
|
| | | AuctionModel model { get { return ModelCenter.Instance.GetModel<AuctionModel>(); } }
|
| | | AuctionHelpModel auctionHelpModel { get { return ModelCenter.Instance.GetModel<AuctionHelpModel>(); } }
|
| | |
|
| | |
| | |
|
| | | private void OnCreateGridLineCellItem(ScrollerController gridCtrl)
|
| | | {
|
| | | var firstGuid = itemGuids.Count > 0 ? itemGuids[0] : string.Empty;
|
| | |
|
| | | itemGuids.Clear();
|
| | | if (!model.isLocationQuery && !model.QueryRemaining.UpBool)
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | var jumpIndex = -1;
|
| | | if (firstGuid != string.Empty && model.isQueryFront)
|
| | | {
|
| | | jumpIndex = itemGuids.IndexOf(firstGuid);
|
| | | }
|
| | |
|
| | | emptyCount = 0;
|
| | | if (jumpIndex >= itemGuids.Count - 3)
|
| | | {
|
| | | var delta = 4 - (itemGuids.Count - jumpIndex);
|
| | | for (int i = 0; i < delta; i++)
|
| | | {
|
| | | itemGuids.Add(string.Empty);
|
| | | emptyCount++;
|
| | | }
|
| | | }
|
| | |
|
| | | gridCtrl.Refresh();
|
| | | for (int i = 0; i < itemGuids.Count; i++)
|
| | | {
|
| | | gridCtrl.AddCell(ScrollerDataType.Header, i);
|
| | | }
|
| | | gridCtrl.Restart();
|
| | |
|
| | | if (jumpIndex != -1)
|
| | | {
|
| | | gridCtrl.JumpIndex(jumpIndex);
|
| | | }
|
| | |
|
| | |
|
| | | model.isQueryFront = false;
|
| | | } |
| | | |
| | | private void OnRefreshGridCellItem(ScrollerDataType type, CellView cell)
|
| | | {
|
| | | int index = cell.index;
|
| | | FullServiceAuctioncell fullServiceAuctioncell = cell.GetComponent<FullServiceAuctioncell>();
|
| | | fullServiceAuctioncell.GetFullServiceAuctionGUID(itemGuids[index], index, itemGuids.Count);
|
| | | fullServiceAuctioncell.GetFullServiceAuctionGUID(itemGuids[index], index, itemGuids.Count - emptyCount);
|
| | | } |
| | | |
| | | private void ResetServerAuctionInquiry()//重置查询
|