GameFriendRank.js 663 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. cc.Class({
  2. extends: cc.Component,
  3. properties: {
  4. },
  5. // LIFE-CYCLE CALLBACKS:
  6. // onLoad () {},
  7. start () {
  8. },
  9. onEnable() {
  10. if (window.wx != undefined) {
  11. window.wx.postMessage({
  12. messageType: 0
  13. });
  14. }
  15. },
  16. init() {
  17. },
  18. previousPage() {
  19. if (window.wx != undefined) {
  20. window.wx.postMessage({
  21. messageType: 1
  22. });
  23. }
  24. },
  25. nextPage() {
  26. if (window.wx != undefined) {
  27. window.wx.postMessage({
  28. messageType: 2
  29. });
  30. }
  31. }
  32. // update (dt) {},
  33. });