AgreeMent.js 879 B

123456789101112131415161718192021222324252627282930313233
  1. cc.Class({
  2. extends: cc.BaseClass,
  3. properties: {
  4. text:cc.Label,
  5. },
  6. // LIFE-CYCLE CALLBACKS:
  7. ctor: function () {
  8. this.m_Key = [];
  9. this.m_Text = [];
  10. this.m_nNeedUpdate = 0;
  11. },
  12. start: function () {
  13. // let webUrl = window.PHP_HOME + '/Rules.php?&GetMark=101';
  14. // WebCenter.GetData(webUrl, null, function (data) {
  15. // if (data == null) return;
  16. // //let Res = JSON.parse(data);
  17. // // console.log('获取规则--', data)
  18. // this.text.string = data;
  19. // }.bind(this));
  20. },
  21. OnShowView: function () {
  22. this.m_nNeedUpdate = 0;
  23. ShowO2I(this.node);
  24. },
  25. OnHideView: function () {
  26. this.unschedule(this.OnTimer_DelayShow);
  27. this.m_nNeedUpdate = 0;
  28. HideI2O(this.node);
  29. },
  30. });