ShowComment.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using LitJson;
  6. public class ShowCommentData
  7. {
  8. public int id;
  9. public string content;
  10. public AccountData accountData;
  11. public ShowCommentData(JsonData data)
  12. {
  13. id = (int) data["id"];
  14. content = (string) data["content"];
  15. long playerId = long.Parse((string) data["user_id"]);
  16. string nickname = (string) data["nickname"];
  17. accountData = new AccountData(nickname, playerId.ToString());
  18. }
  19. }
  20. public class ShowComment : BaseComment
  21. {
  22. public override void Visit()
  23. {
  24. FashionShowCommentPanel.HidePanel();
  25. FashionShowEditPage.HidePanel();
  26. FashionShowEditPage.HidePanel();
  27. DelayCall.Call(1f, () =>
  28. {
  29. //FashionShowHomePage.HideSidePanel();
  30. FashionShowHomePage.HidePanel();
  31. });
  32. //TweenVec tweenVec = FashionShowEditPage.Panel.GetTweenVec();
  33. //tweenVec.AddEventOnetime(EventType.BackwardFinish, () =>
  34. //{
  35. // FashionShowHomePage.HideSidePanel();
  36. // FashionShowHomePage.HidePanel();
  37. //});
  38. base.Visit();
  39. }
  40. }