PoemGalleryView.cs 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571
  1. using System.Collections.Generic;
  2. using ET;
  3. using FairyGUI;
  4. using UI.Poem;
  5. using UnityEngine;
  6. namespace GFGGame
  7. {
  8. class TabType
  9. {
  10. /// <summary>
  11. /// 首页
  12. /// </summary>
  13. public static int RECOVER = 0;
  14. /// <summary>
  15. /// 投稿
  16. /// </summary>
  17. public static int JOIN = 1;
  18. /// <summary>
  19. /// 收藏
  20. /// </summary>
  21. public static int FAVORITES = 2;
  22. }
  23. class RecommendType
  24. {
  25. /// <summary>
  26. /// 推荐
  27. /// </summary>
  28. public static int RECOMMEND = 0;
  29. /// <summary>
  30. /// 好友
  31. /// </summary>
  32. public static int FRIEND = 1;
  33. /// <summary>
  34. /// 排行榜
  35. /// </summary>
  36. public static int RANK = 2;
  37. }
  38. class FavoritesType
  39. {
  40. /// <summary>
  41. /// 我的收藏
  42. /// </summary>
  43. public static int FAVORITE = 0;
  44. /// <summary>
  45. /// 我的作品
  46. /// </summary>
  47. public static int MY_SELF = 1;
  48. }
  49. public class PoemGalleryView : BaseWindow
  50. {
  51. private UI_PoemGalleryUI _ui;
  52. private GList _list;
  53. // private List<PoemGalleryData> _galleryDatas = new List<PoemGalleryData>();
  54. private List<long> _galleryDatas = new List<long>();
  55. private int _sortType = 0;//由GallerySortType定义
  56. private int _pageCount = 10;
  57. private int _tabIndex = 0;//当前选中大页签下标,首页0投稿1收藏2
  58. private int _subtabIndex = 0;//当前选中小页签下标,推荐0好友1排行榜2;我的收藏0我的作品1
  59. public override void Dispose()
  60. {
  61. if (_ui != null)
  62. {
  63. _ui.Dispose();
  64. _ui = null;
  65. }
  66. base.Dispose();
  67. }
  68. protected override void OnInit()
  69. {
  70. base.OnInit();
  71. packageName = UI_PoemGalleryUI.PACKAGE_NAME;
  72. _ui = UI_PoemGalleryUI.Create();
  73. this.viewCom = _ui.target;
  74. isfullScreen = true;
  75. _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("hc_bj_1");
  76. _ui.m_comNormal.m_comBoBox.items = new string[] { "推荐", "最新" };
  77. _ui.m_btnback.onClick.Add(OnBtnBackClick);
  78. _ui.m_btnRecover.onClick.Add(OnBtnRecoverClick);
  79. _ui.m_btnJoin.onClick.Add(OnBtnJoinClick);
  80. _ui.m_btnFavorites.onClick.Add(OnBtnFavoritesClick);
  81. _ui.m_comNormal.m_listRecommend.itemRenderer = RenderListItem;
  82. _ui.m_comNormal.m_listRecommend.SetVirtual();
  83. _ui.m_comNormal.m_listRecommend.scrollPane.onPullDownRelease.Add(onPullDownRelease);
  84. _ui.m_comNormal.m_listRecommend.scrollPane.onScroll.Add(onScroll);
  85. _ui.m_comNormal.m_listFriend.itemRenderer = RenderListItem;
  86. _ui.m_comNormal.m_listFriend.SetVirtual();
  87. _ui.m_comNormal.m_listFriend.scrollPane.onScroll.Add(onScroll);
  88. _ui.m_comNormal.m_listRank.itemRenderer = RenderListRankItem;
  89. _ui.m_comNormal.m_listRank.SetVirtual();
  90. _ui.m_comNormal.m_listRank.scrollPane.onScroll.Add(onScroll);
  91. _ui.m_comFavorites.m_listFavorite.itemRenderer = RenderListItem;
  92. _ui.m_comFavorites.m_listFavorite.SetVirtual();
  93. _ui.m_comFavorites.m_listFavorite.scrollPane.onScroll.Add(onScroll);
  94. _ui.m_comFavorites.m_listMySelf.itemRenderer = RenderListItem;
  95. _ui.m_comFavorites.m_listMySelf.SetVirtual();
  96. _ui.m_comFavorites.m_listMySelf.scrollPane.onScroll.Add(onScroll);
  97. _ui.m_comNormal.m_btnShop.onClick.Add(OnBtnShopClick);
  98. _ui.m_comNormal.m_btnReward.onClick.Add(OnBtnRewardClick);
  99. // _ui.m_c1.onChanged.Add(OnTabChange);
  100. _ui.m_comNormal.m_c1.onChanged.Add(OnNormalTabChange);
  101. _ui.m_comFavorites.m_c1.onChanged.Add(OnFavoritesTabChange);
  102. }
  103. protected override void AddEventListener()
  104. {
  105. base.AddEventListener();
  106. EventAgent.AddEventListener(ConstMessage.GALLERY_DATA_CHANGE, UpdateGalleryList);
  107. EventAgent.AddEventListener(ConstMessage.GALLERY_RANK_DATA_CHANGE, UpdateGalleryRankList);
  108. }
  109. protected override void OnShown()
  110. {
  111. base.OnShown();
  112. if (this.viewData != null)
  113. {
  114. _tabIndex = (int)(this.viewData as object[])[0];
  115. _subtabIndex = (int)(this.viewData as object[])[1];
  116. _ui.m_comNormal.m_comBoBox.selectedIndex = (int)(this.viewData as object[])[2];
  117. _ui.m_comNormal.m_c1.selectedIndex = _subtabIndex;
  118. _ui.m_comFavorites.m_c1.selectedIndex = _subtabIndex;
  119. _list.RefreshVirtualList();
  120. }
  121. else
  122. {
  123. _tabIndex = TabType.RECOVER;
  124. _subtabIndex = RecommendType.RECOMMEND;
  125. _ui.m_comNormal.m_comBoBox.selectedIndex = 0;
  126. _ui.m_comNormal.m_c1.selectedIndex = _subtabIndex;
  127. _ui.m_comFavorites.m_c1.selectedIndex = _subtabIndex;
  128. if (_ui.m_comNormal.m_listRecommend.numItems > 0) _ui.m_comNormal.m_listRecommend.ScrollToView(0);
  129. if (_ui.m_comNormal.m_listFriend.numItems > 0) _ui.m_comNormal.m_listFriend.ScrollToView(0);
  130. if (_ui.m_comNormal.m_listRank.numItems > 0) _ui.m_comNormal.m_listRank.ScrollToView(0);
  131. if (_ui.m_comFavorites.m_listFavorite.numItems > 0) _ui.m_comFavorites.m_listFavorite.ScrollToView(0);
  132. if (_ui.m_comFavorites.m_listMySelf.numItems > 0) _ui.m_comFavorites.m_listMySelf.ScrollToView(0);
  133. OnNormalTabChange();
  134. }
  135. _ui.m_c1.selectedIndex = _tabIndex;
  136. _ui.m_comNormal.m_listRecommend.numItems = 15;
  137. _ui.m_comNormal.m_listFriend.numItems = 15;
  138. _ui.m_comNormal.m_listRank.numItems = 15;
  139. _ui.m_comFavorites.m_listFavorite.numItems = 15;
  140. _ui.m_comFavorites.m_listMySelf.numItems = 15;
  141. _list = _ui.m_comNormal.m_listRecommend;
  142. _list.numItems = 10;
  143. // _list.RefreshVirtualList();
  144. UpdateView();
  145. }
  146. protected override void OnHide()
  147. {
  148. base.OnHide();
  149. ResetPullDownRelease();
  150. _ui.m_comNormal.m_comBoBox.selectedIndex = 0;
  151. }
  152. protected override void RemoveEventListener()
  153. {
  154. base.RemoveEventListener();
  155. EventAgent.RemoveEventListener(ConstMessage.GALLERY_DATA_CHANGE, UpdateGalleryList);
  156. EventAgent.RemoveEventListener(ConstMessage.GALLERY_RANK_DATA_CHANGE, UpdateGalleryRankList);
  157. }
  158. private void OnBtnBackClick()
  159. {
  160. ViewManager.GoBackFrom(typeof(PoemGalleryView).FullName);
  161. }
  162. /// <summary>
  163. /// 积分商店
  164. /// </summary>
  165. private void OnBtnShopClick()
  166. {
  167. object[] gobackParamDatas = new object[] { _tabIndex, _subtabIndex, _ui.m_comNormal.m_comBoBox.selectedIndex };
  168. ViewManager.Show<ClothingShopView>(new object[] { ConstStoreId.GALLERY_STORE_ID }, new object[] { typeof(PoemGalleryView).FullName, gobackParamDatas }, true);
  169. }
  170. /// <summary>
  171. /// 排行榜奖励
  172. /// </summary>
  173. private void OnBtnRewardClick()
  174. {
  175. ViewManager.Show<PoemGalleryRewardView>(null, new object[] { typeof(PoemGalleryView).FullName, this.viewData });
  176. }
  177. /********************************************************页签切换*************************************************/
  178. /// <summary>
  179. /// 首页
  180. /// </summary>
  181. private void OnBtnRecoverClick()
  182. {
  183. if (_tabIndex == TabType.RECOVER && _ui.m_comNormal.m_c1.selectedIndex == RecommendType.RECOMMEND)//当前在推荐页要刷新
  184. {
  185. PullDown();
  186. onPullDownRelease();
  187. }
  188. else//当前不在推荐页只把页签切回到推荐页,不刷新
  189. {
  190. _ui.m_comNormal.m_c1.selectedIndex = RecommendType.RECOMMEND;
  191. }
  192. _tabIndex = _ui.m_c1.selectedIndex;
  193. }
  194. /// <summary>
  195. /// 投稿
  196. /// </summary>
  197. private void OnBtnJoinClick()
  198. {
  199. // int tabIndex = _ui.m_c1.selectedIndex;
  200. // int subType = _ui.m_c1.selectedIndex
  201. object[] gobackParamDatas = new object[] { _tabIndex, _subtabIndex, _ui.m_comNormal.m_comBoBox.selectedIndex };
  202. ViewManager.Show<DressUpView>(1, new object[] { typeof(PoemGalleryView).FullName, gobackParamDatas }, true);
  203. }
  204. /// <summary>
  205. ///收藏夹
  206. /// </summary>
  207. private void OnBtnFavoritesClick()
  208. {
  209. _tabIndex = _ui.m_c1.selectedIndex;
  210. if (_ui.m_comFavorites.m_c1.selectedIndex != FavoritesType.FAVORITE)
  211. {
  212. _ui.m_comFavorites.m_c1.selectedIndex = FavoritesType.FAVORITE;
  213. }
  214. ResetPullDownRelease();
  215. }
  216. /// <summary>
  217. /// 切换首页页签
  218. /// </summary>
  219. private void OnNormalTabChange()
  220. {
  221. ResetPullDownRelease();
  222. _subtabIndex = _ui.m_comNormal.m_c1.selectedIndex;
  223. if (_ui.m_comNormal.m_c1.selectedIndex == RecommendType.RANK)//排行榜
  224. {
  225. _galleryDatas = PoemGalleryDataManager.Instance.RankDatas;
  226. ReqGalleryRankList();
  227. }
  228. else
  229. {
  230. if (_ui.m_comNormal.m_c1.selectedIndex == RecommendType.RECOMMEND)//首页
  231. {
  232. // _infoType = GalleryType.Recommend;
  233. if (_ui.m_comNormal.m_comBoBox.selectedIndex == 0)//推荐
  234. {
  235. _sortType = (int)GallerySortType.Recommend;
  236. _galleryDatas = PoemGalleryDataManager.Instance.RecommendDatas;
  237. }
  238. else//最新
  239. {
  240. _sortType = (int)GallerySortType.Newest;
  241. _galleryDatas = PoemGalleryDataManager.Instance.NewestDatas;
  242. }
  243. _list = _ui.m_comNormal.m_listRecommend;
  244. }
  245. else if (_ui.m_comNormal.m_c1.selectedIndex == RecommendType.FRIEND)//好友
  246. {
  247. _sortType = (int)GallerySortType.Friend;
  248. _galleryDatas = PoemGalleryDataManager.Instance.FrinedDatas;
  249. _list = _ui.m_comNormal.m_listFriend;
  250. }
  251. if (_list.numItems > 0) _list.ScrollToView(0);
  252. ReqGalleryList(0);
  253. }
  254. }
  255. /// <summary>
  256. /// 切换收藏页签
  257. /// </summary>
  258. private void OnFavoritesTabChange()
  259. {
  260. _subtabIndex = _ui.m_comFavorites.m_c1.selectedIndex;
  261. if (_ui.m_comFavorites.m_c1.selectedIndex == FavoritesType.FAVORITE)//我的收藏
  262. {
  263. _sortType = (int)GallerySortType.MyCollect;
  264. _galleryDatas = PoemGalleryDataManager.Instance.FrinedDatas;
  265. _list = _ui.m_comFavorites.m_listFavorite;
  266. }
  267. else if (_ui.m_comFavorites.m_c1.selectedIndex == FavoritesType.MY_SELF)//我的作品
  268. {
  269. _sortType = (int)GallerySortType.MyWorks;
  270. _galleryDatas = PoemGalleryDataManager.Instance.FrinedDatas;
  271. _list = _ui.m_comFavorites.m_listMySelf;
  272. }
  273. if (_list.numItems > 0) _list.ScrollToView(0);
  274. ReqGalleryList(0);
  275. }
  276. /********************************************************请求更新列表*************************************************/
  277. //分页刷新
  278. private void onScroll()
  279. {
  280. if (_list == null) return;
  281. int itemIndex = _list.ChildIndexToItemIndex(0);
  282. int startIndex = itemIndex + 1;
  283. if (startIndex >= _list.numItems && startIndex % _pageCount == 0)
  284. {
  285. ReqGalleryList(startIndex);
  286. }
  287. }
  288. //请求刷新
  289. private void ReqGalleryList(int startIndex)
  290. {
  291. PoemGallerySProxy.ReqGalleryList(_sortType, startIndex, _pageCount).Coroutine();
  292. }
  293. private void UpdateGalleryList()
  294. {
  295. _list.numItems = _galleryDatas.Count;
  296. UpdateView();
  297. }
  298. //请求排行榜刷新
  299. private void ReqGalleryRankList()
  300. {
  301. PoemGallerySProxy.ReqRankList().Coroutine();
  302. }
  303. private void UpdateGalleryRankList()
  304. {
  305. _ui.m_comNormal.m_listRank.numItems = _galleryDatas.Count;
  306. UpdateView();
  307. }
  308. private void RefreshList()
  309. {
  310. if (_ui.m_comNormal.m_c1.selectedIndex == RecommendType.RANK)
  311. {
  312. _ui.m_comNormal.m_listRank.RefreshVirtualList();
  313. }
  314. else
  315. {
  316. _list.RefreshVirtualList();
  317. }
  318. UpdateView();
  319. }
  320. /********************************************************界面更新*************************************************/
  321. private void UpdateView()
  322. {
  323. GalleryThemeCfg themeCfg = GalleryThemeCfgArray.Instance.GetCfg((int)PoemGalleryDataManager.Instance.ThemeId);
  324. _ui.m_comNormal.m_txtTheme.text = string.Format("本期主题:{0}", themeCfg.theme);
  325. _ui.m_comNormal.m_txtRank.text = string.Format("我的排名:{0}", PoemGalleryDataManager.Instance.MyRank);
  326. _ui.m_comNormal.m_txtRewardCount.text = string.Format("奖励次数:{0}/{1}", PoemGalleryDataManager.Instance.VoteCount, GalleryRewardCfgArray.Instance.dataArray.Length);
  327. _ui.m_comNormal.m_txtTime.text = PoemGalleryDataManager.Instance.GetThemeTime();
  328. _ui.m_comNormal.m_grpResult.visible = PoemGalleryDataManager.Instance.IsResulting();
  329. }
  330. private void RenderListItem(int index, GObject obj)
  331. {
  332. // long workId = _galleryDatas[index];
  333. // PoemGalleryData data = PoemGalleryDataManager.Instance.GetGalleryDataById(workId);
  334. UI_ListItem item = UI_ListItem.Proxy(obj);
  335. // item.m_loaIcon.height = 550 + Random.Range(40, 100);
  336. // if (index > 1)
  337. // {
  338. // item.target.y=
  339. // }
  340. // item.target.height = item.m_loaIcon.height + 80;
  341. // item.m_loaIcon.texture = data.Ntexture;
  342. // item.m_txtName.text = data.AuthorName;
  343. // item.m_btnCollect.title = data.CollectCount.ToString();
  344. // item.m_btnCollect.selected = data.CollectOrNot;
  345. // item.m_btnVote.title = data.VoteCount.ToString();
  346. // item.m_btnVote.selected = data.VoteOrNot;
  347. // if (item.m_loaIcon.data == null)
  348. // {
  349. // item.m_loaIcon.onClick.Add(OnLoaIconClick);
  350. // }
  351. // item.m_loaIcon.data = workId;
  352. // if (item.m_btnCollect.data == null)
  353. // {
  354. // item.m_btnCollect.onClick.Add(OnBtnCollectClick);
  355. // }
  356. // item.m_btnCollect.data = workId;
  357. // if (item.m_btnVote.data == null)
  358. // {
  359. // item.m_btnVote.onClick.Add(OnBtnVoteClick);
  360. // }
  361. // item.m_btnVote.data = workId;
  362. UI_ListItem.ProxyEnd();
  363. }
  364. private void RenderListRankItem(int index, GObject obj)
  365. {
  366. // long workId = _galleryDatas[index];
  367. // PoemGalleryData data = PoemGalleryDataManager.Instance.GetGalleryDataById(workId);
  368. // UI_ListRankItem item = UI_ListRankItem.Proxy(obj);
  369. // item.m_loaIcon.height = 550 + Random.Range(40, 100);
  370. // item.target.height = item.m_loaIcon.height + 80;
  371. // item.m_loaIcon.texture = data.Ntexture;
  372. // item.m_txtName.text = data.AuthorName;
  373. // item.m_btnCollect.title = data.CollectCount.ToString();
  374. // item.m_btnCollect.selected = data.CollectOrNot;
  375. // item.m_btnVote.title = data.VoteCount.ToString();
  376. // item.m_btnVote.selected = data.VoteOrNot;
  377. // item.m_c1.selectedIndex = index < 3 ? index : 3;
  378. // if (item.m_loaIcon.data == null)
  379. // {
  380. // item.m_loaIcon.onClick.Add(OnLoaIconClick);
  381. // }
  382. // item.m_loaIcon.data = workId;
  383. // if (item.m_btnCollect.data == null)
  384. // {
  385. // item.m_btnCollect.onClick.Add(OnBtnCollectClick);
  386. // }
  387. // item.m_btnCollect.data = workId;
  388. // if (item.m_btnVote.data == null)
  389. // {
  390. // item.m_btnVote.onClick.Add(OnBtnVoteClick);
  391. // }
  392. // item.m_btnVote.data = workId;
  393. // UI_ListRankItem.ProxyEnd();
  394. }
  395. private void OnLoaIconClick(EventContext context)
  396. {
  397. GObject obj = context.data as GObject;
  398. // PoemGalleryData data = obj.data as PoemGalleryData;
  399. long workId = (long)obj.data;
  400. object[] gobackParamDatas = new object[] { _tabIndex, _subtabIndex, _ui.m_comNormal.m_comBoBox.selectedIndex };
  401. ViewManager.Show<PoemGalleryPreviewView>(new object[] { _sortType, workId }, new object[] { typeof(PoemGalleryView).FullName, gobackParamDatas });
  402. }
  403. private async void OnBtnCollectClick(EventContext context)
  404. {
  405. GObject obj = context.data as GObject;
  406. long workId = (long)obj.data;
  407. PoemGalleryData galleryData = PoemGalleryDataManager.Instance.GetGalleryDataById(workId);
  408. if (galleryData.CollectOrNot)
  409. {
  410. bool result = await PoemGallerySProxy.ReqCancelCollecteGalleryWorks(workId);
  411. if (result)
  412. {
  413. // galleryData.CollectOrNot = false;
  414. // galleryData.CollectCount = galleryData.CollectCount - 1;
  415. if (_tabIndex == TabType.FAVORITES && _subtabIndex == FavoritesType.FAVORITE)
  416. {
  417. ReqGalleryList(0);//当前为收藏页要重新拉取数据
  418. }
  419. else
  420. {
  421. RefreshList();
  422. }
  423. }
  424. }
  425. else
  426. {
  427. bool result = await PoemGallerySProxy.ReqCollecteGalleryWorks(workId);
  428. if (result)
  429. {
  430. // galleryData.CollectOrNot = true;
  431. // galleryData.CollectCount = galleryData.CollectCount + 1;
  432. if (_tabIndex == TabType.FAVORITES && _subtabIndex == FavoritesType.FAVORITE)
  433. {
  434. ReqGalleryList(0);//当前为收藏页要重新拉取数据
  435. }
  436. else
  437. {
  438. RefreshList();
  439. }
  440. }
  441. }
  442. }
  443. private async void OnBtnVoteClick(EventContext context)
  444. {
  445. GObject obj = context.data as GObject;
  446. // PoemGalleryData galleryData = obj.data as PoemGalleryData;
  447. long workId = (long)obj.data;
  448. PoemGalleryData galleryData = PoemGalleryDataManager.Instance.GetGalleryDataById(workId);
  449. if (galleryData.VoteOrNot) return;
  450. bool result = await PoemGallerySProxy.ReqVoteGalleryWorks(workId);
  451. if (result)
  452. {
  453. // galleryData.VoteOrNot = true;
  454. // galleryData.CollectCount = galleryData.CollectCount + 1;
  455. RefreshList();
  456. int Count = GameGlobal.myNumericComponent.GetAsInt(NumericType.LikeGalleryWorksCountDaily);
  457. GalleryIntegralCfg integralCfg = GalleryIntegralCfgArray.Instance.GetCfg(Count);
  458. if (integralCfg != null)
  459. {
  460. ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(integralCfg.itemId);
  461. PromptController.Instance.ShowFloatTextPrompt(string.Format("{0} +{1}", itemCfg.name, integralCfg.Count));
  462. }
  463. }
  464. }
  465. /********************************************************下拉刷新*************************************************/
  466. private void PullDown()
  467. {
  468. if (_ui.m_comNormal.m_listRecommend.numItems > 0) _ui.m_comNormal.m_listRecommend.ScrollToView(0);
  469. GComponent header = _ui.m_comNormal.m_listRecommend.scrollPane.header;
  470. header.height = header.sourceHeight;
  471. }
  472. //下拉刷新
  473. private void onPullDownRelease()
  474. {
  475. // ReqGalleryList(0);
  476. GComponent header = _ui.m_comNormal.m_listRecommend.scrollPane.header;
  477. if (header.height < header.sourceHeight) return;
  478. // Transition transition = header.GetTransition("t0");
  479. // transition.Play();
  480. // controller.selectedIndex = 1;
  481. _ui.m_comNormal.m_listRecommend.scrollPane.LockHeader(header.sourceHeight);
  482. Timers.inst.Add(2, 1, OnTimeComplete);
  483. }
  484. private void OnTimeComplete(object param)
  485. {
  486. GComponent header = _ui.m_comNormal.m_listRecommend.scrollPane.header;
  487. Transition transition = header.GetTransition("t0");
  488. transition.Stop();
  489. // header.GetController("c1").selectedIndex = 2;
  490. _ui.m_comNormal.m_listRecommend.scrollPane.LockHeader(0);
  491. }
  492. /// <summary>
  493. /// 重置下拉刷新状态
  494. /// </summary>
  495. private void ResetPullDownRelease()
  496. {
  497. Timers.inst.Remove(OnTimeComplete);
  498. OnTimeComplete(null);
  499. }
  500. }
  501. }