| | |
| | | } |
| | | |
| | | scroller.Refresh(); |
| | | int jumpIndex = -1; |
| | | var list = StoreModel.Instance.storeTypeDict[(int)StoreModel.Instance.selectStoreFuncType]; |
| | | for (int i = 0; i < list.Count; i++) |
| | | { |
| | |
| | | { |
| | | scroller.AddCell(ScrollerDataType.Header, i); |
| | | } |
| | | if (jumpIndex == -1 && list[i].shopId == StoreModel.Instance.jumpShopID) |
| | | { |
| | | jumpIndex = i / 3; |
| | | } |
| | | } |
| | | scroller.Restart(); |
| | | scroller.lockType = EnhanceLockType.KeepVertical; |
| | | if (StoreModel.Instance.jumpShopID != 0) |
| | | { |
| | | scroller.JumpIndex(jumpIndex); |
| | | StoreModel.Instance.jumpShopID = 0; |
| | | } |
| | | } |
| | | |
| | | |