AndroidGroupItem.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. cc.Class({
  2. extends: cc.BaseClass,
  3. properties: {
  4. },
  5. InitPre: function () {
  6. this.m_LbIndex = this.$('LbIndex@Label');
  7. this.m_LbGameName = this.$('LbGameName@Label');
  8. this.m_LbPlayCnt = this.$('LbPlayCnt@Label');
  9. this.m_LbTableCnt1 = this.$('LbTableCnt1@Label');
  10. this.m_LbTableCnt2 = this.$('LbTableCnt2@Label');
  11. this.m_LbTableCnt3 = this.$('LbTableCnt3@Label');
  12. this.m_LbMaxAndroidCnt = this.$('LbMaxAndroidCnt@Label');
  13. this._GroupID = 0;
  14. },
  15. SetPreInfo: function (arr) {
  16. this._GroupID = arr[1].dwGroupID;
  17. this.m_LbIndex.string = parseInt(arr[0]) +1;
  18. this.m_LbGameName.string = window.GameList[arr[1].dwKindID];
  19. this.m_LbPlayCnt.string = arr[1].wAndroidCount;
  20. this.m_LbTableCnt1.string = arr[1].wTotalTimes;
  21. this.m_LbTableCnt2.string = arr[1].wMaxPlayingTable;
  22. this.m_LbTableCnt3.string = arr[1].wCompleteCnt;
  23. this.m_LbMaxAndroidCnt.string = arr[1].wMaxSitCount;
  24. },
  25. OnClicked_Del: function() {
  26. if(this._GroupID == 0) return ;
  27. window.gClubClientKernel.onSendDelAndroidGroup(this.m_Hook,g_ShowClubInfo.dwClubID,this._GroupID);
  28. },
  29. });