Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

52 строки
1.7 KiB

  1. -- 战绩界面
  2. local ClubZhanJiTongJiView = class("ClubZhanJiTongJiView", require("core.luaScript.Views.Club.ClubZhanJiTongJiView"))
  3. function ClubZhanJiTongJiView:ctor(list)
  4. ClubZhanJiTongJiView.super.ctor(self,list)
  5. end
  6. function ClubZhanJiTongJiView:onEnter()
  7. ClubZhanJiTongJiView.super.onEnter(self)
  8. end
  9. --战绩统计查询成功
  10. function ClubZhanJiTongJiView:updateList()
  11. local uiScrollView = self.ui.Items.ScrollView--self.ui.Items.ScrollView_TongJi
  12. uiScrollView:getInnerContainer():setAutoSize(true)
  13. uiScrollView:removeAllChildren();
  14. --战绩统计内容
  15. local uiTemplate = self.ui.Items.Layout_tongji_content;
  16. for k, tongjiInfo in pairsByKeysEx(self.list) do
  17. local uiItem = uiTemplate:getCopied()
  18. uiItem.Items = getUIItems(uiItem)
  19. --名字
  20. --local gameName = getSubGameName(tongjiInfo.game_id) or ("未知游戏"..tongjiInfo.game_id)
  21. local gameName = getSubGameRuleName(tongjiInfo.game_id, tongjiInfo.gamerule) or getSubGameName(tongjiInfo.game_id) or ("未知游戏"..tongjiInfo.game_id)
  22. uiItem.Items.Text_data:setText(gameName)
  23. --开房成局
  24. uiItem.Items.Text_chengju_count:setText(tonumber(tongjiInfo.openhouse_count))
  25. --扣卡局
  26. uiItem.Items.Text_kouka_count:setText(tonumber(tongjiInfo.owner_openhouse_count or 0))
  27. --未扣卡局
  28. uiItem.Items.Text_weikouka_count:setText(tonumber(tongjiInfo.owner_unconsume_count or 0))
  29. --馆主消耗
  30. uiItem.Items.Text_xiaohao_count:setText(tonumber(tongjiInfo.owner_card_consume_count))
  31. --馆主专属房卡/房卡消耗
  32. uiItem.Items.Text_zhuanshu_xiaohao:setText(tonumber(tongjiInfo.owner_props_card_count))
  33. uiScrollView:addChild(uiItem)
  34. end
  35. uiScrollView:jumpToTopOnSizeChanged()
  36. end
  37. return ClubZhanJiTongJiView